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.

A132419 Period 6: repeat [1, 1, -2, -1, -1, 2].

Original entry on oeis.org

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

Views

Author

Paul Curtz, Nov 13 2007

Keywords

Crossrefs

Cf. A061347.

Programs

Formula

a(n) = A061347(n+1) * (-1)^floor(n/3).
From Wesley Ivan Hurt, Jun 21 2016: (Start)
G.f.: (1+x-2*x^2)/(1+x^3).
a(n) + a(n-3) = 0 for n>2.
a(n) = (5*cos(n*Pi/3) - 2*cos(n*Pi) - sqrt(3)*sin(n*Pi/3))/3. (End)

Extensions

Comment changed to formula by Wesley Ivan Hurt, Jun 21 2016