OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
Eric Weisstein's World of Mathematics, Multiplicative Persistence
EXAMPLE
737 -> [ 147 ][ 28 ][ 16 ][ 6 ] -> one digit in four steps.
MAPLE
mp:= proc(n) option remember;
if n <= 9 then return 0 fi;
1+procname(convert(convert(n, base, 10), `*`))
end proc:
select(mp=4, [$1..1000]); # Robert Israel, Feb 12 2019
MATHEMATICA
pr4Q[n_] := Length[NestWhileList[Times @@ IntegerDigits[#] &, n, # > 9 &]] == 5; Select[Range[773], pr4Q] (* Jayanta Basu, Jun 26 2013 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Patrick De Geest, Sep 15 1998
EXTENSIONS
Offset corrected by Robert Israel, Feb 12 2019
STATUS
approved
