Problem:
Find the sum of all positive integers n such that when 13+23+33+β―+n3 is divided by n+5, the remainder is 17.
Solution:
We are told the remainder when 13+23+β―+n3 is divided by n+5 is 17. Recall Nicomachusβs Theorem, which states the following:
13+23+β―+n3=(2n(n+1)β)2
Let S=(2n(n+1)β)2. We want Sβ‘17(modn+5). Let m=n+5, so n=mβ5. Substituting into the expression:
S=(2(mβ5)(mβ4)β)2
We want:
(2(mβ5)(mβ4)β)2β‘17(modm)βmβ£(2(mβ5)(mβ4)β)2β17
Try small values of m such that m>17. Check m=83:
n=78,S=(278β
79β)2=30812=9481961
Then 9481961Γ·83=114211 remainder 17, so this works.
Check m=166, so n=161:
S=(2161β
162β)2=130412=170070081
Then 170070081Γ·166=1024681 remainder 17, so this works.
Check m=332, so n=327:
S=(2327β
328β)2=536282=2876029584
Then 2876029584Γ·332 leaves remainder 64, so this does not work.
Thus, the valid values of n are 78 and 161, and the requested sum is:
239β
The problems on this page are the property of the MAA's American Mathematics Competitions