OFFSET
0,3
COMMENTS
For n > 0: sum of n-th row of triangle A245826.
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 0..10000
Index entries for linear recurrences with constant coefficients, signature (8,-28,56,-70,56,-28,8,-1).
FORMULA
a(n) = n^3*(2*n^3 + 2*n^2 - 3*n - 1)*(n + 1)/24 = n^3*(n - 1)*(n + 1)*(2*n^2 + 4*n + 1)/24.
G.f.: x^2*(x^4 + 55*x^3 + 204*x^2 + 143*x + 17) / (x - 1)^8. - Colin Barker, Aug 08 2014
MAPLE
A245940:=n->(2*n^7 + 4*n^6 - n^5 - 4*n^4 - n^3) / 24: seq(A245940(n), n=0..30); # Wesley Ivan Hurt, Aug 09 2014
MATHEMATICA
Table[(2 n^7 + 4 n^6 - n^5 - 4 n^4 - n^3)/24, {n, 0, 30}] (* Vincenzo Librandi, Aug 09 2014 *)
LinearRecurrence[{8, -28, 56, -70, 56, -28, 8, -1}, {0, 0, 17, 279, 1960, 8875, 30555, 87122}, 30] (* Harvey P. Dale, Apr 19 2018 *)
PROG
(Haskell)
a245940 n = n^3 * (2 * n^3 + 2 * n^2 - 3 * n - 1) * (n + 1) `div` 24
(PARI)
concat([0, 0], Vec(x^2*(x^4+55*x^3+204*x^2+143*x+17)/(x-1)^8 + O(x^100))) \\ Colin Barker, Aug 08 2014
(Magma) [(2*n^7 + 4*n^6 - n^5 - 4*n^4 - n^3) / 24: n in [0..30]] // Vincenzo Librandi, Aug 09 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Reinhard Zumkeller, Aug 07 2014
STATUS
approved