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.

Showing 1-1 of 1 results.

A152856 Periodic sequence [4,0,4,3,4] of period 5.

Original entry on oeis.org

4, 0, 4, 3, 4, 4, 0, 4, 3, 4, 4, 0, 4, 3, 4, 4, 0, 4, 3, 4, 4, 0, 4, 3, 4, 4, 0, 4, 3, 4, 4, 0, 4, 3, 4, 4, 0, 4, 3, 4, 4, 0, 4, 3, 4, 4, 0, 4, 3, 4, 4, 0, 4, 3, 4, 4, 0, 4, 3, 4, 4, 0, 4, 3, 4, 4, 0, 4, 3, 4
Offset: 0

Views

Author

Richard Choulet, Dec 14 2008

Keywords

Crossrefs

Programs

  • Mathematica
    PadRight[{},100,{4,0,4,3,4}] (* Harvey P. Dale, Jun 08 2014 *)

Formula

a(n+5) = a(n) with a(0) = a(2) = a(4) = 4, a(1) = 0 and a(3) = 3
a(n) = 3+(1/2-3/10*5^(1/2))*cos(2*n*Pi/5)+(-1/10*(4*(5+5^(1/2))^(1/2)-(5-5^(1/2))^(1/2))*2^(1/2))*sin(2*n*Pi/5)+(3/10*5^(1/2)+1/2)*cos(4*n*Pi/5)+(-1/10*((5+5^(1/2))^(1/2)+4*(5-5^(1/2))^(1/2))*2^(1/2))*sin(4*n*Pi/5)
o.g.f f(z) = (4+4*z^2+3*z^3+4*z^4)/(1-z^5)
Showing 1-1 of 1 results.