|
|
A118405
|
|
Row sums of triangle A118404.
|
|
3
|
|
|
1, 0, 0, -2, 4, -6, 12, -26, 52, -102, 204, -410, 820, -1638, 3276, -6554, 13108, -26214, 52428, -104858, 209716, -419430, 838860, -1677722, 3355444, -6710886, 13421772, -26843546, 53687092, -107374182, 214748364, -429496730, 858993460, -1717986918, 3435973836, -6871947674
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,4
|
|
LINKS
|
|
|
FORMULA
|
G.f.: A(x) = (1+x)^2/(1+x^2)/(1+2*x).
a(n) + a(n+2) = 1, -2, 4, -8, ... = A122803(n).
a(2n+2) = -2*a(2n+1) = 4*A015521(n). (End)
|
|
MAPLE
|
seq(coeff(series((1+x)^2/(1+x^2)/(1+2*x), x, n+1), x, n), n = 0 .. 35); # Muniru A Asiru, Oct 31 2018
|
|
MATHEMATICA
|
Total /@ Table[SeriesCoefficient[(-1)^k/((1 + x^2) (1 + x)^(k - 1)), {x, 0, n - k}], {n, 0, 35}, {k, 0, n}] (* Michael De Vlieger, Oct 31 2018 *)
LinearRecurrence[{-2, -1, -2}, {1, 0, 0}, 40] (* Harvey P. Dale, Aug 31 2020 *)
|
|
PROG
|
(PARI) a(n)=polcoeff((1+x)^2/(1+x^2)/(1+2*x+x*O(x^n)), n, x)
|
|
CROSSREFS
|
|
|
KEYWORD
|
sign,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|