OFFSET
2,2
LINKS
Colin Barker, Table of n, a(n) for n = 2..1000
Index entries for linear recurrences with constant coefficients, signature (1,2,-2,-1,1).
FORMULA
G.f.: x^2*(1+3*x+2*x^2+3*x^3) / ((1-x)^3*(1+x)^2). - Emeric Deutsch, Feb 18 2004
From Colin Barker, Jan 26 2016: (Start)
a(n) = (18*n^2-46*n+(-1)^n*(13-6*n)+35)/16.
a(n) = (9*n^2-26*n+24)/8 for n even.
a(n) = (9*n^2-20*n+11)/8 for n odd.
(End)
PROG
(PARI) Vec(x^2*(1+3*x+2*x^2+3*x^3)/((1-x)^3*(1+x)^2) + O(x^100)) \\ Colin Barker, Jan 26 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved