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.

A131974 Period 8: repeat [1, 2, 3, 4, -5, -4, -3, -2].

Original entry on oeis.org

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

Views

Author

Paul Curtz, Oct 06 2007

Keywords

Programs

  • Mathematica
    CoefficientList[Series[(1 + 2*x + 3*x^2 + 4*x^3 - 5*x^4 - 4*x^5 - 3*x^6 - 2*x^7)/(1 - x^8), {x, 0, 80}], x] (* Wesley Ivan Hurt, Aug 31 2019 *)
    PadRight[{},120,{1,2,3,4,-5,-4,-3,-2}] (* Harvey P. Dale, Aug 10 2022 *)
  • PARI
    a(n)=[1,2,3,4,-5,-4,-3,-2][n%8+1] \\ Charles R Greathouse IV, Jun 02 2011

Formula

G.f.: (1 + 2*x + 3*x^2 + 4*x^3 - 5*x^4 - 4*x^5 - 3*x^6 - 2*x^7)/(1-x^8). - Wesley Ivan Hurt, Aug 31 2019
a(n) = a(n-8). - Wesley Ivan Hurt, Nov 28 2021