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.

A132429 Period 4: repeat [3, 1, -1, -3].

Original entry on oeis.org

3, 1, -1, -3, 3, 1, -1, -3, 3, 1, -1, -3, 3, 1, -1, -3, 3, 1, -1, -3, 3, 1, -1, -3, 3, 1, -1, -3, 3, 1, -1, -3, 3, 1, -1, -3, 3, 1, -1, -3, 3, 1, -1, -3, 3, 1, -1, -3, 3, 1, -1, -3, 3, 1, -1, -3, 3, 1, -1, -3, 3, 1, -1, -3, 3, 1, -1, -3, 3, 1, -1, -3, 3, 1, -1, -3, 3, 1, -1, -3, 3, 1, -1, -3, 3, 1, -1, -3, 3, 1, -1, -3, 3, 1, -1, -3, 3, 1, -1, -3, 3, 1
Offset: 0

Views

Author

Paul Curtz, Nov 13 2007

Keywords

Comments

Nonsimple continued fraction expansion of (7 + 3*sqrt(5))/2 = 6.85410196624... = 1 + A090550. - R. J. Mathar, Mar 08 2012
Pisano period lengths: 1, 1, 4, 2, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, ... . - R. J. Mathar, Aug 10 2012

Crossrefs

Cf. A084101 (1, 3, 3, 1), A090550.

Programs

Formula

G.f.: (3 + 4*x + 3*x^2)/((1+x)*(1+x^2)). - Jaume Oliver Lafont, Aug 30 2009
a(n) = (-1)^n + 2(-1)^((2n + (-1)^n - 1)/4). - Brad Clardy, Mar 10 2013
a(n) = 3 - 2*(n mod 4). - Joerg Arndt, Mar 10 2013
a(n) = (-1)^n + 2(-1)^floor(n/2). - Wesley Ivan Hurt, Apr 17 2014
From Wesley Ivan Hurt, Jul 10 2016: (Start)
a(n) + a(n-1) + a(n-2) + a(n-3) = 0 for n>2, a(n) = a(n-4) for n>3.
a(n) = 2*cos(n*Pi/2) + cos(n*Pi) + 2*sin(n*Pi/2). (End)