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

A317839
Möbius transform of A002487, Stern's Diatomic sequence.
9
1, 0, 1, 0, 2, 0, 2, 0, 2, 0, 4, 0, 4, 0, 0, 0, 4, 0, 6, 0, 4, 0, 6, 0, 4, 0, 4, 0, 6, 0, 4, 0, 0, 0, 4, 0, 10, 0, 4, 0, 10, 0, 12, 0, 6, 0, 8, 0, 6, 0, 6, 0, 12, 0, 4, 0, 2, 0, 10, 0, 8, 0, -4, 0, 0, 0, 10, 0, 6, 0, 12, 0, 14, 0, 10, 0, 10, 0, 12, 0, 6, 0, 18, 0, 14, 0, 10, 0, 16, 0, 12, 0, 10, 0, 2, 0, 10, 0, 8, 0, 18, 0, 16, 0, 4
OFFSET
1,5
FORMULA
a(n) = Sum_{d|n} A008683(n/d)*A002487(d).
a(n) = A000010(n) - A317841(n).
PROG
(PARI)
A002487(n) = { my(a=1, b=0); while(n>0, if(bitand(n, 1), b+=a, a+=b); n>>=1); (b); }; \\ From A002487
A317839(n) = sumdiv(n, d, moebius(n/d)*A002487(d));
KEYWORD
sign
AUTHOR
Antti Karttunen, Aug 09 2018
STATUS
approved