OFFSET
3,4
COMMENTS
Csajbók and Kasza call this the tau-iteration length.
LINKS
Antti Karttunen, Table of n, a(n) for n = 3..10000
Tímea Csajbók and János Kasza, Iterating the tau-function, Annales Univ. Sci. Budapest., Sec. Math. 35 (2011), pp. 83-93.
FORMULA
EXAMPLE
d(10) = 4 and d(4) = 3, an odd prime, so a(10) = 2.
MATHEMATICA
nop[n_]:=Length[NestWhileList[DivisorSigma[0, #]&, n, #<3 || CompositeQ[ #]&]]-1; Array[ nop, 100, 3] (* Harvey P. Dale, Nov 14 2020 *)
PROG
(PARI) a(n)=my(i); while(!isprime(n), i++; n=numdiv(n)); i
CROSSREFS
KEYWORD
nonn
AUTHOR
Charles R Greathouse IV, Nov 23 2011
STATUS
approved