OFFSET
0,3
EXAMPLE
For n = 29: a(29) = 9 because for the number 29 there are 4 steps of defined iteration: {2^9 = 512}, {(5^1)^2 = 25}, {2^5 = 32}, {3^2 = 9} and 4th step of iteration ending with number 9.
CROSSREFS
KEYWORD
nonn
AUTHOR
Jaroslav Krizek, May 01 2010
STATUS
approved