|
|
A077872
|
|
Expansion of 1 / ((1-x)*(1-x+x^2+x^3)).
|
|
0
|
|
|
1, 2, 2, 0, -3, -4, 0, 8, 13, 6, -14, -32, -23, 24, 80, 80, -23, -182, -238, -32, 389, 660, 304, -744, -1707, -1266, 1186, 4160, 4241, -1104, -9504, -12640, -2031, 20114, 34786, 16704, -38195, -89684, -68192, 59688, 217565, 226070, -51182, -494816, -669703, -123704, 1040816, 1834224, 917113
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,2
|
|
LINKS
|
|
|
FORMULA
|
a(n) = 2*a(n-1) - 2*a(n-2) + a(n-4) for n>3. - Colin Barker, Jun 20 2017
|
|
MATHEMATICA
|
CoefficientList[Series[1/((1-x)(1-x+x^2+x^3)), {x, 0, 50}], x] (* or *) LinearRecurrence[{2, -2, 0, 1}, {1, 2, 2, 0}, 50] (* Harvey P. Dale, May 23 2021 *)
|
|
PROG
|
(PARI) Vec(1 / ((1-x)*(1-x+x^2+x^3)) + O(x^50)) \\ Colin Barker, Jun 20 2017
|
|
CROSSREFS
|
|
|
KEYWORD
|
sign,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|