OFFSET
0,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (5,-8,7,-4,1).
FORMULA
G.f.: (1 + x^2)^3/(1 - 5*x + 8*x^2 - 7*x^3 + 4*x^4 - x^5). - T. D. Noe, Nov 02 2006
MATHEMATICA
LinearRecurrence[{5, -8, 7, -4, 1}, {1, 5, 20, 67, 209, 630, 1873}, 40] (* G. C. Greubel, Apr 19 2021 *)
PROG
(Magma)
R<x>:=PowerSeriesRing(Integers(), 40);
Coefficients(R!( (1+x^2)^3/(1-5*x+8*x^2-7*x^3+4*x^4-x^5) )); // G. C. Greubel, Apr 19 2021
(Sage)
def A097552_list(prec):
P.<x> = PowerSeriesRing(ZZ, prec)
return P( (1+x^2)^3/(1-5*x+8*x^2-7*x^3+4*x^4-x^5) ).list()
A097552_list(40) # G. C. Greubel, Apr 19 2021
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
D n Verma, Aug 16 2004
EXTENSIONS
Corrected by T. D. Noe, Nov 02 2006
STATUS
approved