|
|
A078021
|
|
Expansion of (1-x)/(1-x+2*x^2+x^3).
|
|
1
|
|
|
1, 0, -2, -3, 1, 9, 10, -9, -38, -30, 55, 153, 73, -288, -587, -84, 1378, 2133, -539, -6183, -7238, 5667, 26326, 22230, -36089, -106875, -56927, 192912, 413641, 84744, -935450, -1518579, 267577, 4240185, 5223610, -3524337, -18211742, -16386678, 23561143, 74546241, 43810633, -128842992
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,3
|
|
LINKS
|
|
|
FORMULA
|
|
|
MATHEMATICA
|
LinearRecurrence[{1, -2, -1}, {1, 0, -2}, 50] (* or *) CoefficientList[ Series[(1-x)/(1-x+2*x^2+x^3), {x, 0, 50}], x] (* G. C. Greubel, Jun 29 2019 *)
|
|
PROG
|
(PARI) my(x='x+O('x^50)); Vec((1-x)/(1-x+2*x^2+x^3)) \\ G. C. Greubel, Jun 29 2019
(Magma) R<x>:=PowerSeriesRing(Integers(), 50); Coefficients(R!( (1-x)/(1-x+2*x^2+x^3) )); // G. C. Greubel, Jun 29 2019
(Sage) ((1-x)/(1-x+2*x^2+x^3)).series(x, 50).coefficients(x, sparse=False) # G. C. Greubel, Jun 29 2019
(GAP) a:=[1, 0, -2];; for n in [4..50] do a[n]:=a[n-1]-2*a[n-2]-a[n-3]; od; a; # G. C. Greubel, Jun 29 2019
|
|
CROSSREFS
|
|
|
KEYWORD
|
sign
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|