cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A070560 a(0) = 1; for n > 0, a(n) = (fecundity of n) + 2.

This page as a plain text file.
%I A070560 #7 Jul 19 2015 01:09:08
%S A070560 1,12,11,11,10,3,10,9,9,8,2,10,9,9,8,3,8,8,7,5,2,7,7,6,7,4,6,7,4,5,2,
%T A070560 5,6,4,4,3,5,5,5,4,2,6,3,4,3,5,3,4,3,6,2,7,5,10,4,3,6,4,4,3,2,4,4,7,7,
%U A070560 4,3,3,9,7,2,6,6,4,3,3,8,7,5,4,2,6,4,3,9,5,5,5,6,5,2,3,3,3,3,3,3,3,3,3,2,2
%N A070560 a(0) = 1; for n > 0, a(n) = (fecundity of n) + 2.
%C A070560 Start with n, repeatedly replace x by x + product of digits of x until reach 0; fecundity = number of steps - 1.
%e A070560 1 -> 2 -> 4 -> 8 -> 16 -> 22 -> 26 -> 38 -> 62 -> 74 -> 102 -> 0 has fecundity 10.
%t A070560 f[n_] := Length@ FixedPointList[ # + Times @@ IntegerDigits@# &, n]; f[0] = 1; Array[f, 105, 0] (* _Robert G. Wilson v_, Jun 27 2010 *)
%Y A070560 Cf. A070561, A070562, A031346, A003001.
%K A070560 nonn,easy,base
%O A070560 0,2
%A A070560 _N. J. A. Sloane_, May 07 2002
%E A070560 More terms from _Robert G. Wilson v_, Jun 27 2010