OFFSET
0,2
COMMENTS
LINKS
Index entries for linear recurrences with constant coefficients, signature (3,-1,-5,5,1,-3,1).
FORMULA
G.f.: (1+4*x+x^2)/((1+x)^2*(1-x)^5).
a(n) = (2*(n^4+10*n^3+34*n^2+(45+(-1)^(n+1))*n)+37+5*(-1)^(n+1))/32.
a(n) = sum_{j=1..n+1} ( sum_{i=1..j+1} floor(i*j/2) ). - Wesley Ivan Hurt, Nov 17 2014
MAPLE
A233329:=n->(2*n^4+20*n^3+68*n^2+90*n+37-2*n*(-1)^n-5*(-1)^n)/32: seq(A233329(n), n=0..50); # Wesley Ivan Hurt, Nov 17 2014
MATHEMATICA
CoefficientList[Series[(1 + 4*x + x^2)/((1 + x)^2*(1 - x)^5), {x, 0, 50}], x] (* Wesley Ivan Hurt, Nov 17 2014 *)
LinearRecurrence[{3, -1, -5, 5, 1, -3, 1}, {1, 7, 21, 51, 102, 186, 310}, 50] (* Harvey P. Dale, Jul 05 2019 *)
PROG
(PARI) a(n) = (2*n^4+20*n^3+68*n^2+(90-2*(-1)^n)*n)\/32+1 \\ Charles R Greathouse IV, Oct 28 2014
(Magma) [(2*n^4+20*n^3+68*n^2+90*n+37-2*n*(-1)^n-5*(-1)^n)/32 : n in [0..50]]; // Wesley Ivan Hurt, Nov 17 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
L. Edson Jeffery, Jan 06 2014
STATUS
approved