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.

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

Original entry on oeis.org

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, 2, -1
Offset: 0

Views

Author

Paul Curtz, Aug 27 2007

Keywords

Crossrefs

Cf. A131534.

Programs

Formula

G.f.: (x-1)^2/(x+1)/(x^2-x+1). - R. J. Mathar, Nov 14 2007
a(n) = (-1)^n * A131534(n). - R. J. Mathar, Apr 02 2011
a(n) = -cos(Pi*n/3)/3 -sin(Pi*n/3)/sqrt(3) +4*(-1)^n/3. - R. J. Mathar, Oct 08 2011
a(n) + a(n-3) = 0 for n>2. - Wesley Ivan Hurt, Jun 19 2016

Extensions

Edited by N. J. A. Sloane, Sep 15 2007