OFFSET
0,3
COMMENTS
a(n) = the sum of the n X n matrices of A204008. For example, for n = 3, the sum of the 9 elements of the 3 X 3 submatrix of A204008 is 1 + 4 + 7 + 4 + 5 + 8 + 7 + 8 + 9 = 53. - J. M. Bergot, Jul 15 2013
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (4,-6,4,-1).
FORMULA
a(n) = Sum_{k=0..n} A214604(n, k) for n > 0 (row sums).
From Wesley Ivan Hurt, Apr 11 2015: (Start)
a(n) = (7*n^3 - 3*n^2 - n)/3.
G.f.: x*(1+10*x+3*x^2)/(1-x)^4.
a(n) = 4*a(n-1) - 6*a(n-2) + 4*a(n-3) - a(n-4). (End)
E.g.f.: (x/3)*(3 + 18*x + 7*x^2)*exp(x). - G. C. Greubel, Mar 09 2024
MAPLE
MATHEMATICA
Table[(7 n^3 -3 n^2 -n)/3, {n, 0, 50}] (* Wesley Ivan Hurt, Apr 11 2015 *)
LinearRecurrence[{4, -6, 4, -1}, {0, 1, 14, 53}, 51] (* G. C. Greubel, Mar 09 2024 *)
PROG
(Haskell)
a214659 n = ((7 * n - 3) * n - 1) * n `div` 3
(Magma) [(7*n^3-3*n^2-n)/3 : n in [0..50]]; // Wesley Ivan Hurt, Apr 11 2015
(SageMath) [(7*n^3-3*n^2-n)/3 for n in range(51)] # G. C. Greubel, Mar 09 2024
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Reinhard Zumkeller, Jul 25 2012
STATUS
approved