OFFSET
1
COMMENTS
LINKS
FORMULA
a(15^n) = n.
EXAMPLE
We have 50625 -> 3375 -> 225 -> 15 -> 1, so a(50625) = 4.
MATHEMATICA
primeMS[n_]:=If[n==1, {}, Flatten[Cases[FactorInteger[n], {p_, k_}:>Table[PrimePi[p], {k}]]]];
Table[Length[FixedPointList[#/Max[Select[Divisors[#], #==1||CoprimeQ@@primeMS[#]&]]&, n]]-2, {n, 100}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Sep 19 2019
STATUS
approved