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 5 of 6: Compute the residue of 444444444444^{4444} modulo 9
4444≡7, 73≡1(mod9), 4444=3⋅1481+1  ⟹  44444444≡7(mod9)4444 \equiv 7,\ 7^3\equiv 1 \pmod 9,\ 4444=3\cdot1481+1 \implies 4444^{4444}\equiv 7 \pmod 9
Detailed analysis

Since 4444=9⋅493+74444 = 9 \cdot 493 + 7, 4444≡7(mod9)4444 \equiv 7 \pmod 9. Powers of 77 modulo 99 cycle with period 33: 71≡77^1 \equiv 7, 72≡47^2 \equiv 4, 73≡1(mod9)7^3 \equiv 1 \pmod 9. Writing 4444=3⋅1481+14444 = 3 \cdot 1481 + 1, we get 44444444≡74444=(73)1481⋅7≡11481⋅7=7(mod9)4444^{4444} \equiv 7^{4444} = \left(7^3\right)^{1481} \cdot 7 \equiv 1^{1481} \cdot 7 = 7 \pmod 9.