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 3 of 6: Bound S(B)S(B) by maximizing the digit sum over B≤45B \le 45
B≤45  ⟹  S(B)≤S(39)=12B \le 45 \implies S(B) \le S(39) = 12
Detailed analysis

Among the integers from 11 to 4545, the largest digit sum belongs to 3939 (since a two-digit number tu‾≤45\overline{tu} \le 45 has t≤3t \le 3 except when t=4t=4 forces u≤5u \le 5, and 3+9=12>4+5=93+9=12 > 4+5=9), giving S(39)=12S(39) = 12. Hence S(B)≤12S(B) \le 12.