Problem 4
When is written in decimal notation, the sum of its digits is . Let be the sum of the digits of . Find the sum of the digits of . ( and are written in decimal notation.)
Step 1 of 6: Bound the number of digits of
In plain words
Chasing the exact value of is hopeless (it has tens of thousands of digits), so the trick is to never compute it: bound how large its digit sum can possibly be, then bound the digit sum of that, and finally pin down the last digit sum using arithmetic modulo 9, which digit sums always respect.
Detailed analysis
Since , raising to the th power gives . A positive integer less than has at most digits, and each digit is at most , so its digit sum satisfies .