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”).

A167434
Diagonal sums of the Riordan array (1-4*x+4*x^2, x*(1-2*x)) (A167431).
2
1, -4, 5, -6, 13, -16, 25, -42, 57, -92, 141, -206, 325, -488, 737, -1138, 1713, -2612, 3989, -6038, 9213, -14016, 21289, -32442, 49321, -75020, 114205, -173662, 264245, -402072, 611569, -930562, 1415713, -2153700, 3276837, -4985126, 7584237
OFFSET
0,2
FORMULA
G.f.: (1-2*x)^2/(1-x^2+2*x^3).
a(n) = (-1)^n*A052947(n+4). - R. J. Mathar, Jun 24 2024
MATHEMATICA
LinearRecurrence[{0, 1, -2}, {1, -4, 5}, 100] (* G. C. Greubel, Jun 13 2016 *)
CoefficientList[Series[(1-4x+4x^2)/(1-x^2+2x^3), {x, 0, 40}], x] (* Harvey P. Dale, Nov 08 2022 *)
PROG
(PARI) x='x+O('x^40); Vec((1-4*x+4*x^2)/(1-x^2+2*x^3)) \\ G. C. Greubel, Jun 27 2018
(Magma) I:=[1, -4, 5]; [n le 3 select I[n] else Self(n-2) - 2*Self(n-3): n in [1..40]]; // G. C. Greubel, Jun 27 2018
CROSSREFS
Sequence in context: A089119 A063833 A260107 * A139061 A029645 A191208
KEYWORD
easy,sign
AUTHOR
Paul Barry, Nov 03 2009
STATUS
approved