OFFSET
0,2
COMMENTS
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..5000
Index entries for linear recurrences with constant coefficients, signature (7,-21,35,-35,21,-7,1).
FORMULA
G.f.: (5*x^6+238*x^5+1615*x^4+1932*x^3+515*x^2+14*x+1)/(1-x)^7. - Colin Barker, Jan 26 2013
EXAMPLE
a(2) = 1 + 2*2^2 + 3*2^3 + 4*2^4 +5*2^5 + 6*2^6 = 641.
MATHEMATICA
Table[Sum[k*n^k, {k, 2, 6}], {n, 0, 30}] (* G. C. Greubel, Jan 05 2018 *)
PROG
(Maxima) makelist(1 + 2*n^2 + 3*n^3 + 4*n^4 +5*n^5 + 6*n^6, n, 0, 20); /* Martin Ettl, Jan 25 2013 */
(PARI) for(n=0, 30, print1(1 + sum(k=2, 6, k*n^k), ", ")) \\ G. C. Greubel, Jan 04 2018
(Magma) [1 + 2*n^2 + 3*n^3 + 4*n^4 + 5*n^5 + 6*n^6: n in [0..30]]; // G. C. Greubel, Jan 04 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Jonathan Vos Post, Jan 14 2013
STATUS
approved