MathLabs

Problem 4

When 444444444444^{4444} is written in decimal notation, the sum of its digits is AA. Let BB be the sum of the digits of AA. Find the sum of the digits of BB. (AA and BB are written in decimal notation.)
Step 6 of 6: Combine the bound and the residue to pin down S(B)S(B)
S(B)≤12, S(B)≡7(mod9), S(B)≥1  ⟹  S(B)=7S(B)\le 12,\ S(B)\equiv 7\pmod 9,\ S(B)\ge 1 \implies S(B)=7
Detailed analysis

From Step 4, S(B)≡44444444≡7(mod9)S(B) \equiv 4444^{4444} \equiv 7 \pmod 9 (Step 5). From Steps 2–3, 1≤S(B)≤121 \le S(B) \le 12 (it is a digit sum of a positive integer, so at least 11). The only integer in {1,…,12}\{1, \ldots, 12\} congruent to 77 modulo 99 is 77 itself (the next candidate, 1616, already exceeds the bound). Therefore S(B)=7S(B) = 7. ■\blacksquare