OFFSET
1,9
COMMENTS
The first index m such that a(m) > 1 but m is not in A322336 is m = 2335.
LINKS
FORMULA
a(1) = 0; if n is prime or has relatively prime prime indices, then a(n) = 1; otherwise a(n) = Omega(n) = A001222(n).
EXAMPLE
We have 441 -> 63 -> 9 -> 3 -> 1, so a(441) = 4.
MATHEMATICA
Table[Length[FixedPointList[#/Max[Select[Divisors[#], #==1||PrimeQ[#]||GCD@@PrimePi/@First/@FactorInteger[#]==1&]]&, n]]-2, {n, 100}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Sep 17 2019
STATUS
approved