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

A324730
Difference between the binary weight of A323243 and the binary weight of its Xor Moebius transform (negated).
2
0, 0, 0, 1, 0, -1, 0, 1, 2, 0, 0, 2, 0, 1, 1, -1, 0, 0, 0, 1, 0, 2, 0, 0, 1, 1, 0, 2, 0, 3, 0, 2, -1, 2, -1, 1, 0, 5, 2, -2, 0, -1, 0, 2, 2, 4, 0, 1, 0, -3, -5, 3, 0, -3, -2, 2, 4, 1, 0, 0, 0, 2, -2, -1, -3, 4, 0, 1, 3, 0, 0, 2, 0, 7, 0, 4, -1, 4, 0, 2, 0, 2, 0, 1, 0, 7, 2, 0, 0, 2, 2, 3, 1, 4, 1, -1, 0, -2, 2, 2, 0, 1, 0, 0, 2
OFFSET
1,9
FORMULA
a(n) = A324829(n) - A324729(n).
a(p) = 0 for all primes p.
PROG
(PARI)
A324712(n) = { my(v=0); fordiv(n, d, if(issquarefree(n/d), v=bitxor(v,
A323243(d)))); (v); }; \\ Needs also code from A323243.
A324729(n) = hammingweight(A323243(n)); \\ Needs also code from A323243.
A324829(n) = hammingweight(A324712(n));
A324730(n) = (A324829(n) - A324729(n));
CROSSREFS
KEYWORD
sign
AUTHOR
Antti Karttunen, Mar 17 2019
STATUS
approved