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 4 of 6: Digit sums preserve residues modulo 9
Detailed analysis
Every power of is , so a number and its digit sum are always congruent modulo : writing , we get . Applying this three times, .