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.

A092152 Sign of A092673(n).

Original entry on oeis.org

1, -1, -1, 1, -1, 1, -1, 0, 0, 1, -1, -1, -1, 1, 1, 0, -1, 0, -1, -1, 1, 1, -1, 0, 0, 1, 0, -1, -1, -1, -1, 0, 1, 1, 1, 0, -1, 1, 1, 0, -1, -1, -1, -1, 0, 1, -1, 0, 0, 0, 1, -1, -1, 0, 1, 0, 1, 1, -1, 1, -1, 1, 0, 0, 1, -1, -1, -1, 1, -1, -1, 0, -1, 1, 0, -1, 1, -1, -1, 0, 0, 1, -1, 1, 1, 1, 1, 0, -1, 0, 1, -1, 1, 1, 1, 0, -1, 0, 0, 0, -1, -1, -1, 0, -1, 1
Offset: 1

Views

Author

Jon Perry, Mar 31 2004

Keywords

Comments

Multiplicative because A092673 is. - Andrew Howroyd, Jul 27 2018

Crossrefs

Cf. A092673.

Programs

  • PARI
    a(n)=sign(moebius(n) - if(n%2, 0, moebius(n/2))) \\ Andrew Howroyd, Jul 27 2018

Formula

a(2*n) = sign(mu(2*n) - mu(n)); a(2*n + 1) = mu(2*n + 1). - Andrew Howroyd, Jul 27 2018