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.

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

Original entry on oeis.org

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

Views

Author

Paul Curtz, Sep 14 2007

Keywords

Crossrefs

Programs

Formula

G.f.: (1-2*x+2*x^2)/(x+1)/(x^2-x+1). - R. J. Mathar, Nov 14 2007
From Wesley Ivan Hurt, Jun 19 2016: (Start)
a(n) + a(n-3) = 0 for n>2.
a(n) = (5*cos(n*Pi)-2*cos(n*Pi/3))/3. (End)