OFFSET
0,2
COMMENTS
The subsequence of primes begins: 97, 1249, 18049, 43201, 162289, 438049, 2526049, a(32) = 4294657, a(44) = 15251809, a(48) = 21570049.
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..5000
Index entries for linear recurrences with constant coefficients, signature (5,-10,10,-5,1).
FORMULA
G.f.: (4*x^4+29*x^3+57*x^2+5*x+1) / (1-x)^5. - Colin Barker, Jan 26 2013
EXAMPLE
a(4) = 1 + 2*4^2 + 3*4^3 + 4*4^4 = 1249.
MATHEMATICA
Table[Sum[k*n^k, {k, 2, 4}], {n, 0, 30}] (* G. C. Greubel, Jan 05 2018 *)
PROG
(Maxima) makelist(1 + 2*n^2 + 3*n^3 + 4*n^4, n, 0, 20); /* Martin Ettl, Jan 15 2013 */
(PARI) a(n)=1+2*n^2+3*n^3+4*n^4 \\ Charles R Greathouse IV, Oct 07 2015
(Magma) [1 + 2*n^2 + 3*n^3 + 4*n^4: n in [0..30]]; // G. C. Greubel, Jan 04 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Jonathan Vos Post, Jan 14 2013
STATUS
approved