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.

A152890 Periodic sequence [4,1,4,0,1] of period 5.

Original entry on oeis.org

4, 1, 4, 0, 1, 4, 1, 4, 0, 1, 4, 1, 4, 0, 1, 4, 1, 4, 0, 1, 4, 1, 4, 0, 1, 4, 1, 4, 0, 1, 4, 1, 4, 0, 1, 4, 1, 4, 0, 1, 4, 1, 4, 0, 1, 4, 1, 4, 0, 1, 4, 1, 4, 0, 1
Offset: 0

Views

Author

Richard Choulet, Dec 14 2008

Keywords

Crossrefs

Cf. A026051.

Formula

a(n+5) = a(n).
G.f: (4+z+4*z^2+z^4)/(1-z^5).
a(n) = 2+(-1/5*5^(1/2)+1)*cos(2*n*Pi/5)+(2/5*2^(1/2)*(5-5^(1/2))^(1/2))*sin(2*n*Pi/5)+(1/5*5^(1/2)+1)*cos(4*n*Pi/5)+(-2/5*2^(1/2)*(5+5^(1/2))^(1/2))*sin(4*n*Pi/5)