[go: up one dir, main page]

login
A031350
4-multiplicative persistence: number of iterations of "multiply 4th powers of digits" needed to reach 0 or 1.
1
0, 4, 3, 3, 3, 3, 2, 2, 3, 1, 1, 4, 3, 3, 3, 3, 2, 2, 3, 1, 4, 3, 3, 2, 2, 2, 3, 3, 2, 1, 3, 3, 3, 2, 2, 2, 3, 3, 3, 1, 3, 2, 2, 3, 2, 3, 3, 2, 3, 1, 3, 2, 2, 2, 2, 2, 2, 2, 2, 1, 3, 2, 2, 3, 2, 3, 3, 2, 2, 1, 2, 3, 3, 3, 2, 3, 2, 3, 3, 1, 2, 3, 3, 2, 2, 2, 3, 3, 3, 1, 3, 2, 3, 3, 2, 2, 3, 3, 2
OFFSET
1,2
LINKS
Eric Weisstein's World of Mathematics, Multiplicative Persistence
PROG
(Magma) pers:=func<n, e|&*[c^e:c in Intseq(n)]>; a:=[0]; for n in [2..100] do m:=1; k:=n; while not pers(k, 4) in {0, 1} do k:=pers(k, 4); m:=m+1; end while; Append(~a, m); end for; a; // Marius A. Burtea, Jan 13 2020
CROSSREFS
Sequence in context: A171627 A239884 A143487 * A031353 A356764 A085415
KEYWORD
nonn,base
EXTENSIONS
Offset 1 from Seiichi Manyama, Jan 13 2020
STATUS
approved