Maths Olympiad Prep

Library / Argentine National Olympiad /3 of 23

Argentine National Olympiad, 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 199≡1(mod9)199 \equiv 1 \pmod{9} we have 199n≡1(mod9)199^n \equiv 1 \pmod{9}, and so Sn≡199n≡1(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 min⁡Sn=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 199n−1199^n - 1. Because 199n199^n ends in 11 or 99, the digit sum of 199n−1199^n - 1 is Sn−1=10−1=9S_n - 1 = 10 - 1 = 9. Now observe that 199≡1(mod11)199 \equiv 1 \pmod{11} (198=18⋅11198 = 18 \cdot 11), hence 199n≡1(mod11)199^n \equiv 1 \pmod{11}; thus 199n−1199^n - 1 is divisible by 1111. Let its digits at odd (respectively even) positions have sum aa (respectively bb). Then a≡b(mod11)a \equiv b \pmod{11}. On the other hand a+ba+b equals the digit sum of 199n−1199^n - 1. Hence 0≤a,b≤90 \le a, b \le 9, implying that a≡b(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,604 problems in a working order, from Junior Challenge level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.