For any positive integer let denote the sum of the squares of the digits of (when written in decimal), and for define iteratively by .
Find .
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Starting from k = 2 0 1 6 and iterating the map “sum of squares of the digits” we obtain the chain 2 0 1 6 → 4 1 → 1 7 → 5 0 → 2 5 → 2 9 → 8 5 → 8 9 → 1 4 5 → 4 2 → 2 0 → 4 → 1 6 → 3 7 → 5 8 → 8 9 , after which the sequence repeats itself, with period 8 .
Thus, f 1 ( 2 0 1 6 ) = 4 1 , f 2 ( 2 0 1 6 ) = 1 7 , etc., and f n + 8 ( 2 0 1 6 ) = f n ( 2 0 1 6 ) for all integers n ≥ 7 .
Since 2 0 1 7 = 8 . 2 5 1 + 9 , it follows that follows that f 2 0 1 7 ( 2 0 1 6 ) = f 9 ( 2 0 1 6 ) = 4 2 .