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.

A132708 Period 6: repeat [4, 2, 1, -4, -2, -1].

Original entry on oeis.org

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

Views

Author

Paul Curtz, Nov 16 2007

Keywords

Comments

Old definition was: "First differences of 5^n mod 9".

Crossrefs

Cf. A070366 (5^n mod 9).

Programs

Formula

G.f.: (x^2 + 2*x + 4)/(x^3 + 1). - Chai Wah Wu, Jun 04 2016
From Wesley Ivan Hurt, Jun 28 2016: (Start)
a(n) + a(n-3) = 0 for n>2.
a(n) = a(n-6) for n>5.
a(n) = cos(n*Pi) + 3*cos(n*Pi/3) + sqrt(3)*sin(n*Pi/3). (End)

Extensions

Name changed by Wesley Ivan Hurt, Jun 28 2016