OFFSET
4,1
LINKS
Georg Fischer, Table of n, a(n) for n = 4..250
Index entries for linear recurrences with constant coefficients, signature (10,-40,82,-91,52,-12).
FORMULA
G.f.: x^4*(-2*x^2-2*x+2)/((1-3*x)*(1-2*x)^2*(1-x)^3).
For n>0, a(n) = 5*3^(n-1)/4 - 2^n*(n+1)/2 + n^2/2 + 1/4. - Vaclav Kotesovec, Mar 15 2022
MATHEMATICA
Drop[CoefficientList[Series[x^4*(-2*x^2 - 2*x + 2)/((1 - 3*x)*(1 - 2*x)^2*(1 - x)^3), {x, 0, 30}], x], 4] (* Vaclav Kotesovec, Mar 15 2022 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Christian G. Bower, May 15 2000
STATUS
approved