OFFSET
0,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (3,-2,-2,3,-1).
FORMULA
a(n) = (4*n^3 +54*n^2 +212*n +153 -9*(-1)^n)/48.
G.f.: (2*x^3-4*x^2+3) / ((x-1)^4*(x+1)). - Colin Barker, Mar 04 2013
MATHEMATICA
LinearRecurrence[{3, -2, -2, 3, -1}, {3, 9, 17, 29, 44}, 50] (* Harvey P. Dale, Oct 20 2013 *)
CoefficientList[Series[(2 x^3 - 4 x^2 + 3)/((x - 1)^4 (x + 1)), {x, 0, 50}], x] (* Vincenzo Librandi, Oct 21 2013 *)
PROG
(Magma) [(4*n^3+54*n^2+212*n+153-9*(-1)^n)/48: n in [0..50]]; // Vincenzo Librandi, Oct 21 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved