login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A077918
Expansion of (1 - x)^(-1)/(1 + 2*x - 2*x^2 + x^3).
1
1, -1, 5, -12, 36, -100, 285, -805, 2281, -6456, 18280, -51752, 146521, -414825, 1174445, -3325060, 9413836, -26652236, 75457205, -213632717, 604832081, -1712386800, 4848070480, -13725746640, 38860021041, -110019605841, 311485000405, -881869233532, 2496728073716, -7068679614900
OFFSET
0,3
MATHEMATICA
CoefficientList[Series[(1-x)^(-1)/(1+2x-2x^2+x^3), {x, 0, 30}], x] (* or *) LinearRecurrence[{-1, 4, -3, 1}, {1, -1, 5, -12}, 30] (* Harvey P. Dale, Jun 25 2017 *)
PROG
(Magma) I:=[1, -1, 5, -12]; [n le 4 select I[n] else -Self(n-1)+4*Self(n-2)-3*Self(n-3)+Self(n-4): n in [1..30]]; // Vincenzo Librandi, Jun 28 2017
CROSSREFS
Sequence in context: A185699 A301873 A368094 * A300534 A359189 A297909
KEYWORD
sign,easy
AUTHOR
N. J. A. Sloane, Nov 17 2002
STATUS
approved