OFFSET
0,3
LINKS
Index entries for linear recurrences with constant coefficients, signature (7,-16,12).
FORMULA
a(n) = 2*3^n/3-5*0^n/12-(n+1)*2^(n-2).
G.f.: x*(1-4*x+5*x^2)/((1-2*x)^2*(1-3*x)). - Colin Barker, Apr 16 2012
EXAMPLE
a(0) = 2/3-5/12-1/4 = 0 (use 0^0=1).
MATHEMATICA
CoefficientList[Series[x*(1 - 4*x + 5*x^2)/((1 - 2*x)^2*(1 - 3*x)), {x, 0, 30}], x] (* Wesley Ivan Hurt, Dec 28 2023 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Barry, May 01 2003
STATUS
approved