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.

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

Original entry on oeis.org

0, 1, -5, 10, -14, 18, -22, 26, -30, 34, -38, 42, -46, 50, -54, 58, -62, 66, -70, 74, -78, 82, -86, 90, -94, 98, -102, 106, -110, 114, -118, 122, -126, 130, -134, 138, -142, 146, -150, 154, -158, 162, -166, 170, -174, 178, -182, 186
Offset: 0

Views

Author

Paul Barry, Oct 15 2005

Keywords

Comments

Second column in number triangle A113141.

Programs

  • Mathematica
    CoefficientList[Series[(x(1-3x+x^2+x^3))/(1+x)^2,{x,0,100}],x] (* or *) LinearRecurrence[{-2,-1},{0,1,-5,10,-14},100] (* Harvey P. Dale, Mar 23 2021 *)

Formula

a(n) = -(-1)^n*(4n-2-C(1, n-1)+2*C(0, n)).