login
A366788
a(n) = A366388(A163511(n)).
3
0, 0, 0, 1, 0, 2, 1, 2, 0, 3, 2, 4, 1, 3, 2, 1, 0, 4, 3, 6, 2, 5, 4, 2, 1, 4, 3, 3, 2, 2, 1, 3, 0, 5, 4, 8, 3, 7, 6, 3, 2, 6, 5, 4, 4, 3, 2, 6, 1, 5, 4, 5, 3, 4, 3, 4, 2, 3, 2, 5, 1, 4, 3, 2, 0, 6, 5, 10, 4, 9, 8, 4, 3, 8, 7, 5, 6, 4, 3, 9, 2, 7, 6, 6, 5, 5, 4, 7, 4, 4, 3, 8, 2, 7, 6, 4, 1, 6, 5, 7, 4, 6, 5, 5, 3, 5
OFFSET
0,6
PROG
(PARI)
A163511(n) = if(!n, 1, my(p=2, t=1); while(n>1, if(!(n%2), (t*=p), p=nextprime(1+p)); n >>= 1); (t*p));
A366388(n) = if(n<=2, 0, if(isprime(n), 1+A366388(primepi(n)), my(f=factor(n)); (apply(A366388, f[, 1])~ * f[, 2])));
CROSSREFS
Cf. also A334204, A365385.
Sequence in context: A055941 A347696 A365385 * A290537 A377087 A272569
KEYWORD
nonn
AUTHOR
Antti Karttunen, Oct 23 2023
STATUS
approved