OFFSET
0,1
COMMENTS
a(n) is the convolution of T(n) with the sequence (1,0,1,0,1,0,...).
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (0,2,2,1).
FORMULA
a(n) = 2*a(n-2) + 2*a(n-3) + a(n-4), a(0)=3, a(1)=1, a(2)=6, a(3)=8.
G.f.: (3+x)/(1-2*x^2-2*x^3-x^4).
MATHEMATICA
CoefficientList[Series[(3+x)/(1-2*x^2-2*x^3-x^4), {x, 0, 40}], x]
LinearRecurrence[{0, 2, 2, 1}, {3, 1, 6, 8}, 40] (* Harvey P. Dale, Jul 08 2017 *)
PROG
(PARI) my(x='x+O('x^40)); Vec((3+x)/(1-2*x^2-2*x^3-x^4)) \\ G. C. Greubel, Apr 21 2019
(Magma) R<x>:=PowerSeriesRing(Integers(), 40); Coefficients(R!( (3+x)/(1-2*x^2-2*x^3-x^4) )); // G. C. Greubel, Apr 21 2019
(Sage) ((3+x)/(1-2*x^2-2*x^3-x^4)).series(x, 40).coefficients(x, sparse=False) # G. C. Greubel, Apr 21 2019
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Mario Catalani (mario.catalani(AT)unito.it), Aug 23 2002
STATUS
approved