OFFSET
0,1
LINKS
Index entries for linear recurrences with constant coefficients, signature (4,-6,4,-1).
FORMULA
a(n)= (n+1)*(5*n^2+13*n+18)/6. a(n)= 4*a(n-1) -6*a(n-2) +4*a(n-3) -a(n-4). - R. J. Mathar, Feb 12 2010
MATHEMATICA
CoefficientList[Series[(3+2x^2)/(1-x)^4, {x, 0, 40}], x] (* or *) LinearRecurrence[{4, -6, 4, -1}, {3, 12, 32, 68}, 40] (* Harvey P. Dale, Apr 09 2018 *)
PROG
(PARI) a(n)=(n+1)*(5*n^2+13*n+18)/6 \\ Charles R Greathouse IV, Oct 19 2022
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved