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 (3,0,-5,0,3,1).
FORMULA
MATHEMATICA
LinearRecurrence[{3, 0, -5, 0, 3, 1}, {1, 3, 7, 16, 34, 70}, 40] (* or *) CoefficientList[Series[(1-x^2)^2/(1-x-x^2)^3, {x, 0, 40}], x] (* G. C. Greubel, Jan 31 2019 *)
PROG
(PARI) my(x='x+O('x^30)); Vec((1-x^2)^2/(1-x-x^2)^3) \\ G. C. Greubel, Jan 31 2019
(Magma) m:=30; R<x>:=PowerSeriesRing(Integers(), m); Coefficients(R!( (1-x^2)^2/(1-x-x^2)^3 )); // G. C. Greubel, Jan 31 2019
(Sage) ((1-x^2)^2/(1-x-x^2)^3).series(x, 30).coefficients(x, sparse=False) # G. C. Greubel, Jan 31 2019
(GAP) a:=[1, 3, 7, 16, 34, 70];; for n in [7..30] do a[n]:=3*a[n-1]-5*a[n-3] +3*a[n-5]+a[n-6]; od; a; # G. C. Greubel, Jan 31 2019
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Wolfdieter Lang, Apr 27 2000
STATUS
approved