cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A317839 Möbius transform of A002487, Stern's Diatomic sequence.

Original entry on oeis.org

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

Views

Author

Antti Karttunen, Aug 09 2018

Keywords

Crossrefs

Programs

  • 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));

Formula

a(n) = Sum_{d|n} A008683(n/d)*A002487(d).
a(n) = A000010(n) - A317841(n).