For a positive integer , let be the square of the sum of the digits of . (For example .) Let . Determine the value of . Justify your claim.
China Hong Kong Mathematical Olympiad
Solution
Firstly, since , we have
Secondly, this implies
Similarly, we find that
and
It follows that the sum of digits of cannot exceed 27 for .
Next, since and , we have
We easily find that for odd and for even . Thus, the sum of digits of can only be 7, 16, 25. This yields and hence $f_{2007}(2^{2006}) = 169.
Want a route through all this instead of an archive? The track
puts 2,604 problems in a working order, from Junior Challenge level to the IMO shortlist.