login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A324890
a(1) = 0, and for n > 1, a(n) = A276150(n) + a(A064989(n)).
2
0, 1, 3, 2, 6, 2, 8, 2, 5, 6, 12, 3, 15, 9, 6, 4, 20, 5, 24, 7, 11, 13, 30, 5, 10, 17, 8, 12, 37, 3, 39, 2, 12, 18, 10, 4, 42, 23, 17, 7, 47, 9, 51, 12, 8, 29, 57, 5, 15, 10, 23, 18, 64, 7, 17, 12, 25, 37, 72, 4, 75, 40, 11, 4, 17, 12, 79, 19, 28, 11, 85, 6, 90, 44, 11, 26, 17, 18, 96, 9, 11, 49, 104, 12, 24, 54, 37, 16, 113, 6
OFFSET
1,3
FORMULA
a(1) = 0, and for n > 1, a(n) = A276150(n) + a(A064989(n)).
a(n) = A001222(A324889(n)).
For n >= 0, a(A002110(n)) = 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)};
A276150(n) = { my(s=0, m); forprime(p=2, , if(!n, return(s)); m = n%p; s += m; n = (n-m)/p); };
A324890(n) = if(1==n, 0, A276150(n) + A324890(A064989(n)));
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Mar 30 2019
STATUS
approved