Cycle of Numbers

Consider the following function f defined for any natural number:

f(n) is the number obtained by summing up the squares of the digits in decimal (or base-ten).


This is a companion discussion topic for the original entry at https://toph.co/p/cycle-of-numbers