OFFSET
1,13
COMMENTS
REFERENCES
Peter Giblin, "Primes and Programming - an Introduction to Number Theory with Computation", page 118.
R. K. Guy, "Unsolved Problems in Number Theory", section B41.
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
MATHEMATICA
psi[n_] := Module[{pp, ee}, {pp, ee} = Transpose[FactorInteger[n]]; If[Max[pp] == 3, n, Times @@ (pp+1)*Times @@ (pp^(ee-1))]];
a[n_] := Length[NestWhileList[psi, n, FactorInteger[#][[-1, 1]] > 3&]] - 1;
a /@ Range[99] (* Jean-François Alcover, Jan 18 2020 *)
PROG
(Haskell)
a019269 n = snd $ until ((== 1) . a065333 . fst)
(\(x, i) -> (a001615 x, i+1)) (n, 0)
-- Reinhard Zumkeller, Apr 12 2012
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved