OFFSET
1,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (18,-153,816,-3060,8568,-18564,31824,-43758,48620,-43758,31824,-18564,8568,-3060,816,-153,18,-1).
FORMULA
a(1)=1; a(n)=sum(i^n, {i, n(n-1)/2+1, n(n-1)/2+1+n}).
a(n) = (45n^17 + 780n^15 + 3990n^13 + 6900n^11 + 1205n^9 - 3240n^7 + 1584n^5 + 640n^3 - 384n)/11520.
G.f.: x*(x^16 +6799*x^15 +2013224*x^14 +128186937*x^13 +2839367964*x^12 +27332724427*x^11 +129026301848*x^10 +319786366637*x^9 +431174080326*x^8 +319786366637*x^7 +129026301848*x^6 +27332724427*x^5 +2839367964*x^4 +128186937*x^3 +2013224*x^2 +6799*x +1)/(x -1)^18. [Colin Barker, Sep 06 2012]
EXAMPLE
s=8; a(1) = 1^s = 1; a(2) = 2^8 + 3^8 = 6817; a(3) = 4^8 + 5^8 + 6^8 = 2135777, a(4) = 7^ + 8^8 + 9^8 + 10^8 = 165588738.
MATHEMATICA
i1 := n(n-1)/2+1; i2 := n(n-1)/2+n; s=8; Table[Sum[i^s, {i, i1, i2}], {n, 20}]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Zak Seidov, Sep 24 2002
EXTENSIONS
Formula from Charles R Greathouse IV, Sep 17 2009
STATUS
approved