OFFSET
2,6
COMMENTS
If b>=2 and a>=b^2 then S(a,2,b)<a. For each positive integer a, there is an positive integer m such that S^m(a,2,b)<b^2. (Grundman/Teeple, 2001, Lemma 6 and Corollary 7).
LINKS
Martin Renner, Table of n, a(n) for n = 2..300
H. G. Grundman, E. A. Teeple, Generalized Happy Numbers, Fibonacci Quarterly 39 (2001), nr. 5, p. 462-466.
EXAMPLE
In the decimal system all integers go to (1) or (4, 16, 37, 58, 89, 145, 42, 20) under the iteration of sum of squares of digits, hence there is one fixed point and one cycle. Therefore a(10) = 1.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Martin Renner, Jul 31 2011
STATUS
approved