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.

A138034 Expansion of (1+3*x^2)/(1-x+x^2).

Original entry on oeis.org

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

Views

Author

Karem Boubaker (mmbb11112000(AT)yahoo.fr), Mar 01 2008; corrected Mar 03 2008

Keywords

Comments

Essentially a duplicate of A119910: 1, followed by A119910. - Joerg Arndt, Nov 14 2014

Crossrefs

Programs

  • Mathematica
    CoefficientList[Series[(1 + 3*x^2)/(1 - x + x^2), {x, 0, 100}], x] (* Wesley Ivan Hurt, Jan 15 2017 *)
    LinearRecurrence[{1,-1},{1,1,3},120] (* Harvey P. Dale, Jun 14 2024 *)

Formula

a(n) = A119910(n), n>=1.
G.f.: (1+3*x^2)/(1-x+x^2). a(n)=a(n-1)-a(n-2), n>2.