Maths Olympiad Prep

Library / /4 of 24

, 2016

Number theory Difficulty 5.7 AIME, harder Prove it Argentina

Let SnS_n be the digit sum of 199n199^n, n=1,2,n=1, 2, \ldots. Find the minimum value of SnS_n.

Solution

The minimum of SnS_n is 1919, attained already for n=1n=1.

Since 1991(mod9)199 \equiv 1 \pmod{9} we have 199n1(mod9)199^n \equiv 1 \pmod{9}, and so Sn199n1(mod9)S_n \equiv 199^n \equiv 1 \pmod{9} for n=1,2,n=1, 2, \ldots. Thus SnS_n is among the numbers 1,10,19,28,1, 10, 19, 28, \ldots Clearly Sn=1S_n = 1 never holds, so to prove minSn=19\min S_n = 19 it suffices to show that Sn=10S_n = 10 is also impossible.

Suppose on the contrary that Sn=10S_n = 10 holds for some nn. Consider the number 199n1199^n - 1. Because 199n199^n ends in 11 or 99, the digit sum of 199n1199^n - 1 is Sn1=101=9S_n - 1 = 10 - 1 = 9. Now observe that 1991(mod11)199 \equiv 1 \pmod{11} (198=1811198 = 18 \cdot 11), hence 199n1(mod11)199^n \equiv 1 \pmod{11}; thus 199n1199^n - 1 is divisible by 1111. Let its digits at odd (respectively even) positions have sum aa (respectively bb). Then ab(mod11)a \equiv b \pmod{11}. On the other hand a+ba+b equals the digit sum of 199n1199^n - 1. Hence 0a,b90 \le a, b \le 9, implying that ab(mod11)a \equiv b \pmod{11} is possible only if a=ba=b. However then 2a=92a=9, which is a contradiction. The solution is complete.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement and solution reproduced as published; topic and difficulty added by this site.