OFFSET
1,1
LINKS
Colin Barker, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (1,2,-2,-1,1).
FORMULA
a(n) = (1-(-1)^n+(-4+6*(-1)^n)*n+12*n^2)/4.
a(n) = a(n-1)+2*a(n-2)-2*a(n-3)-a(n-4)+a(n-5).
G.f.: x*(3*x^5-3*x^4-12*x^3+x^2-9*x-4) / ((x-1)^3*(x+1)^2).
PROG
(PARI) Vec(x*(3*x^5-3*x^4-12*x^3+x^2-9*x-4)/((x-1)^3*(x+1)^2) + O(x^99))
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Colin Barker, Aug 12 2013
STATUS
approved