OFFSET
2,1
LINKS
Danny Rorabaugh, Table of n, a(n) for n = 2..10000
Index entries for linear recurrences with constant coefficients, signature (7,-21,35,-35,21,-7,1).
FORMULA
a(n) = (n*(1+n)^2*(1-6*n+n^2+4*n^3))/30. G.f.: -x^2*(x^3+25*x^2+55*x+15) / (x-1)^7. - Colin Barker, Jul 11 2014
EXAMPLE
a(4) = 16-1 + 81-1 + 81-16 = 160.
MATHEMATICA
PROG
(PARI) Vec(-x^2*(x^3+25*x^2+55*x+15)/(x-1)^7 + O(x^100)) \\ Colin Barker, Jul 11 2014
(Sage) [sum([sum([k^4-j^4 for j in range(1, k)]) for k in range(2, n+1)]) for n in range(2, 29)] # Danny Rorabaugh, Apr 18 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Feb 15 2012
STATUS
approved