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.

A091086 a(n) = A000975(n) mod 10.

Original entry on oeis.org

0, 1, 2, 5, 0, 1, 2, 5, 0, 1, 2, 5, 0, 1, 2, 5, 0, 1, 2, 5, 0, 1, 2, 5, 0, 1, 2, 5, 0, 1, 2, 5, 0, 1, 2, 5, 0, 1, 2, 5, 0, 1, 2, 5, 0, 1, 2, 5, 0, 1, 2, 5, 0, 1, 2, 5, 0, 1, 2, 5, 0, 1, 2, 5, 0, 1, 2, 5, 0, 1, 2, 5, 0, 1, 2, 5, 0, 1, 2, 5, 0, 1, 2, 5, 0, 1, 2, 5, 0, 1, 2, 5, 0, 1, 2, 5, 0, 1, 2, 5, 0, 1, 2, 5, 0
Offset: 0

Views

Author

Paul Barry, Dec 18 2003

Keywords

Comments

A000975(0), A000975(1), A000975(2), A000975(3) repeating.

Programs

  • Mathematica
    CoefficientList[Series[x (1 + 2 x + 5 x^2)/(1 - x^4), {x, 0, 50}], x] (* G. C. Greubel, Sep 26 2017 *)
    PadRight[{},120,{0,1,2,5}] (* Harvey P. Dale, Apr 30 2022 *)
  • PARI
    x='x+O('x^50); Vec(x*(1+2*x+5*x^2)/(1-x^4)) \\ G. C. Greubel, Sep 26 2017

Formula

G.f.: x*(1 + 2*x + 5*x^2)/(1 - x^4).
E.g.f.: 2*exp(x) - exp(-x) - cos(x) - 2*sin(x).
a(n) = 2 - (-1)^n - cos(Pi*n/2) - 2*sin(Pi*n/2).
a(n+4) = a(n). - G. C. Greubel, Sep 26 2017
2*a(n) = (n mod 2) + (n mod 4)^2. - Bruno Berselli, Oct 18 2018