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.
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,000 problems in a working order, from AMC 10 level to the IMO shortlist.