OFFSET
0,1
COMMENTS
Obviously if the digits of m and n have the same parity then a(m) = a(n). E.g. a(334) = a(110). In other words, a(n) = a(A065031(n)).
It is easy to show that (i) the trajectory of every number under f eventually reaches 123 (if s has more than three digits then f(s) has fewer digits than s) and (ii) since each string ijk has only finitely many preimages, a(n) is unbounded.
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 0..10000
EXAMPLE
n=0: s=0 -> f(s) = 101 -> f(f(s)) = 123, stop, a(0) = 2.
n=1: s=1 => f(s) = 011 -> f(f(s)) = 123, stop, f(1) = 2.
CROSSREFS
KEYWORD
nonn,easy,base
AUTHOR
N. J. A. Sloane, Jun 17 2005
EXTENSIONS
More terms from Zak Seidov, Jun 18 2005
STATUS
approved