OFFSET
0,3
LINKS
Eric Weisstein's World of Mathematics, Square Pyramidal Number
Index entries for linear recurrences with constant coefficients, signature (10,-45,120,-210,252,-210,120,-45,10,-1).
FORMULA
G.f.: x*(1 + 45*x + 510*x^2 + 1660*x^3 + 1715*x^4 + 519*x^5 + 30*x^6)/(1 - x)^10.
a(n) = n *(2*n+1) *(n+2) *(n+1) *(2*n^2-n+3) *(2*n^3+3*n^2+n+3) /648. - R. J. Mathar, Nov 28 2019
MATHEMATICA
Table[Sum[k^2, {k, 0, n (n + 1) (2 n + 1)/6}], {n, 0, 27}]
nmax = 27; CoefficientList[Series[x (1 + 45 x + 510 x^2 + 1660 x^3 + 1715 x^4 + 519 x^5 + 30 x^6)/(1 - x)^10, {x, 0, nmax}], x]
LinearRecurrence[{10, -45, 120, -210, 252, -210, 120, -45, 10, -1}, {0, 1, 55, 1015, 9455, 56980, 255346, 924490, 2850730, 7757035}, 28]
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
Ilya Gutkovskiy, Nov 20 2019
STATUS
approved