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.

A131736 Period 6: repeat [0, 0, 1, -1, -1, 1].

Original entry on oeis.org

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

Views

Author

Paul Curtz, Sep 19 2007

Keywords

Crossrefs

Programs

  • Mathematica
    PadRight[{}, 100, {0, 0, 1, -1, -1, 1}] (* Wesley Ivan Hurt, Jan 15 2017 *)

Formula

From Matthew House, Jan 15 2017: (Start)
G.f.: x^2*(1-x)/(1+x^2+x^4).
a(n) = -a(n-2) - a(n-4) for n > 3. (End)
a(n) = sin(n*Pi/6) * (3*sin(n*Pi/2) - 2*sqrt(3)*cos(n*Pi/6) - 3*sqrt(3)*cos(n*Pi/2)) / 3. - Wesley Ivan Hurt, Apr 26 2020
From Nicolas Bělohoubek, Jun 05 2025: (Start)
a(n) = A022003(n) - A131532(n+1).
a(n) = a(n-6) for n > 5. (End)

Extensions

Title edited by Matthew House, Jan 15 2017