|
|
A117439
|
|
Expansion of (1-x^2)/(1 -4*x -2*x^2 +x^4).
|
|
2
|
|
|
1, 4, 17, 76, 337, 1496, 6641, 29480, 130865, 580924, 2578785, 11447508, 50816737, 225581040, 1001378849, 4445229968, 19732860833, 87596322228, 388849631729, 1726145941404, 7662550168241, 34014896233544, 150995835638929, 670286989081400, 2975477077435217, 13208467391670124, 58633827885912001, 260281959337906852
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,2
|
|
COMMENTS
|
Row sums of unsigned version of number triangle A117438.
|
|
LINKS
|
|
|
FORMULA
|
a(n) = 4*a(n-1) + 2*a(n-2) - a(n-4).
a(n) = Sum_{k=0..floor(n/2)} binomial(2*n-3*k, k) * 4^(n-2*k).
|
|
MATHEMATICA
|
LinearRecurrence[{4, 2, 0, -1}, {1, 4, 17, 76}, 40] (* G. C. Greubel, Jun 01 2021 *)
|
|
PROG
|
(Magma) I:=[1, 4, 17, 76]; [n le 4 select I[n] else 4*Self(n-1) +2*Self(n-2) -Self(n-4): n in [1..41]]; // G. C. Greubel, Jun 01 2021
(Sage)
P.<x> = PowerSeriesRing(ZZ, prec)
return P( (1-x^2)/(1-4*x-2*x^2+x^4) ).list()
|
|
CROSSREFS
|
|
|
KEYWORD
|
easy,nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|