login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A317840 Difference between Stern's Diatomic sequence (A002487) and its Möbius transform (A317839). 4
0, 1, 1, 1, 1, 2, 1, 1, 2, 3, 1, 2, 1, 3, 4, 1, 1, 4, 1, 3, 4, 5, 1, 2, 3, 5, 4, 3, 1, 4, 1, 1, 6, 5, 5, 4, 1, 7, 6, 3, 1, 8, 1, 5, 6, 7, 1, 2, 3, 7, 6, 5, 1, 8, 7, 3, 8, 7, 1, 4, 1, 5, 10, 1, 7, 6, 1, 5, 8, 9, 1, 4, 1, 11, 8, 7, 7, 10, 1, 3, 8, 11, 1, 8, 7, 13, 8, 5, 1, 12, 7, 7, 6, 9, 9, 2, 1, 9, 8, 7, 1, 12, 1, 5, 14 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,6
LINKS
FORMULA
a(n) = -Sum_{d|n, d<n} A008683(n/d)*A002487(d).
a(n) = A002487(n) - A317839(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
A317840(n) = -sumdiv(n, d, (d<n)*moebius(n/d)*A002487(d));
CROSSREFS
Sequence in context: A177219 A277700 A140191 * A048207 A359164 A105810
KEYWORD
nonn
AUTHOR
Antti Karttunen, Aug 09 2018
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 16 01:01 EDT 2024. Contains 371696 sequences. (Running on oeis4.)