Problem:
For any positive integer k, let f1β(k) denote the square of the sum of the digits of k. For nβ₯2, let fnβ(k)=f1β(fnβ1β(k)). Find f1988β(11).
Solution:
First we observe that, perhaps after a nonrepeating initial segment, the sequence f1β(11),f2β(11),β¦ is periodic. To see this, it suffices to note that, for k<1000,
f1β(k)β€f1β(999)=(9+9+9)2=729<1000
Next we compute fnβ(11) for the first few values of n, in the hope that the length of the period is short. This expectation is reasonable since the terms of the sequence are perfect squares, and since there are only 31 perfect squares less than 1000. We find that
f1β(11)f2β(11)f3β(11)f4β(11)f5β(11)f6β(11)β=(1+1)2=4,=f1β(f1β(11))=f1β(4)=42=16,=f1β(f2β(11))=f1β(16)=(1+6)2=49,=f1β(f3β(11))=f1β(49)=(4+9)2=169,=f1β(f4β(11))=f1β(169)=(1+6+9)2=256=f1β(f5β(11))=f1β(256)=(2+5+6)2=169β
We stop at this point, since fnβ(11) depends only on fnβ1β(11), and hence the numbers 256 and 169 will continue to alternate. More precisely, for nβ₯4,
fnβ(11)={169, if n is even 256, if n is odd β
Since 1988 is even, it follows that f1988β(11)=169β.
The problems on this page are the property of the MAA's American Mathematics Competitions