login
A334108
a(n) = A331410(A122111(n)).
6
0, 0, 0, 1, 0, 1, 0, 2, 2, 1, 0, 2, 0, 1, 2, 1, 0, 3, 0, 2, 2, 1, 0, 1, 3, 1, 4, 2, 0, 3, 0, 2, 2, 1, 3, 2, 0, 1, 2, 1, 0, 3, 0, 2, 4, 1, 0, 2, 4, 4, 2, 2, 0, 3, 3, 1, 2, 1, 0, 2, 0, 1, 4, 2, 3, 3, 0, 2, 2, 4, 0, 3, 0, 1, 5, 2, 4, 3, 0, 2, 2, 1, 0, 2, 3, 1, 2, 1, 0, 3, 4, 2, 2, 1, 3, 2, 0, 5, 4, 3, 0, 3, 0, 1, 5
OFFSET
1,8
FORMULA
a(n) = A331410(A122111(n)) = A331410(A322865(n)).
a(n) = A331410(A105560(n)) + a(A064989(n)).
PROG
(PARI)
A064989(n) = {my(f); f = factor(n); if((n>1 && f[1, 1]==2), f[1, 2] = 0); for (i=1, #f~, f[i, 1] = precprime(f[i, 1]-1)); factorback(f)};
A122111(n) = if(1==n, n, prime(bigomega(n))*A122111(A064989(n)));
A331410(n) = if(!bitand(n, n-1), 0, 1+A331410(n+(n/vecmax(factor(n)[, 1]))));
CROSSREFS
Cf. A008578 (positions of zeros), A064989, A105560, A122111, A322865, A331410, A334107.
Sequence in context: A153240 A153241 A306863 * A332813 A323077 A334201
KEYWORD
nonn
AUTHOR
Antti Karttunen, Apr 29 2020
STATUS
approved