OFFSET
0,2
COMMENTS
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (12,-48,64).
FORMULA
a(n) = 4^n*(n^2 + 15*n + 32)/32.
G.f.: (1 - 3*x)^2/(1 - 4*x)^3.
E.g.f.: (2 + 4*x + x^2)*exp(4*x)/2. - G. C. Greubel, Oct 18 2018
MATHEMATICA
LinearRecurrence[{12, -48, 64}, {1, 6, 33}, 50] (* G. C. Greubel, Oct 18 2018 *)
PROG
(PARI) x='x+O('x^30); Vec((1-3*x)^2/(1-4*x)^3) \\ G. C. Greubel, Oct 18 2018
(Magma) m:=30; R<x>:=PowerSeriesRing(Integers(), m); Coefficients(R!((1-3*x)^2/(1-4*x)^3)); // G. C. Greubel, Oct 18 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paul Barry, Mar 30 2003
STATUS
approved