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.

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

Original entry on oeis.org

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

Views

Author

Paul Curtz, Nov 19 2007

Keywords

Comments

Nonsimple continued fraction expansion of (5+sqrt(13))/6 = 1.434258545... - R. J. Mathar, Mar 08 2012

Programs

Formula

a(n) = -a(n-3) for n>2. G.f.: (1+2*x+4*x^2)/((1+x)*(x^2-x+1)). [R. J. Mathar, Apr 13 2010]
a(n) = cos(n*Pi) + 2*sqrt(3)*sin(n*Pi/3). - Wesley Ivan Hurt, Jun 20 2016