MathLabs

Problem 4

Determine, with proof, the greatest number which is the product of positive integers whose sum is 19761976.
Step 6 of 6: Use the remainder modulo 33
In plain words

The remainder 22 modulo 33 selects one 22 rather than zero or two; all remaining mass is spent on the most efficient factor, 33.

1976=3⋅658+2,f(S)=2⋅36581976=3\cdot658+2,\quad f(S)=2\cdot3^{658}
Detailed analysis

Since 1976=3⋅658+21976=3\cdot658+2, and the number of 22's is at most two, the number of 22's must be exactly one: two 22's would contribute 4≡1(mod3)4\equiv1\pmod3, while one contributes 2(mod3)2\pmod3. The remaining sum is 1974=3⋅6581974=3\cdot658, so the maximizing multiset is one 22 and 658658 copies of 33, with product 2⋅3658\boxed{2\cdot3^{658}}.