OFFSET
0,2
COMMENTS
Start with n, repeatedly replace x by x + product of digits of x until reach 0; fecundity = number of steps - 1.
EXAMPLE
1 -> 2 -> 4 -> 8 -> 16 -> 22 -> 26 -> 38 -> 62 -> 74 -> 102 -> 0 has fecundity 10.
MATHEMATICA
f[n_] := Length@ FixedPointList[ # + Times @@ IntegerDigits@# &, n]; f[0] = 1; Array[f, 105, 0] (* Robert G. Wilson v, Jun 27 2010 *)
CROSSREFS
KEYWORD
nonn,easy,base
AUTHOR
N. J. A. Sloane, May 07 2002
EXTENSIONS
More terms from Robert G. Wilson v, Jun 27 2010
STATUS
approved