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”).

A323885
Sum of A001511 and its Dirichlet inverse.
8
2, 0, 0, 4, 0, 4, 0, 4, 1, 4, 0, 2, 0, 4, 2, 5, 0, 2, 0, 2, 2, 4, 0, 4, 1, 4, 1, 2, 0, 0, 0, 6, 2, 4, 2, 3, 0, 4, 2, 4, 0, 0, 0, 2, 1, 4, 0, 5, 1, 2, 2, 2, 0, 2, 2, 4, 2, 4, 0, 4, 0, 4, 1, 7, 2, 0, 0, 2, 2, 0, 0, 4, 0, 4, 1, 2, 2, 0, 0, 5, 1, 4, 0, 4, 2, 4, 2, 4, 0, 2, 2, 2, 2, 4, 2, 6, 0, 2, 1, 3, 0, 0, 0, 4, 0
OFFSET
1,1
LINKS
FORMULA
a(n) = A001511(n) + A092673(n).
PROG
(PARI)
A001511(n) = (1+valuation(n, 2));
A092673(n) = (moebius(n)-if(n%2, 0, moebius(n/2)));
A323885(n) = (A001511(n)+A092673(n));
(Python)
from sympy import mobius
def A323885(n): return (n&-n).bit_length()+mobius(n)-(0 if n&1 else mobius(n>>1)) # Chai Wah Wu, Jul 13 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Feb 08 2019
STATUS
approved