OFFSET
0,2
COMMENTS
Exponents are prime numbers in decreasing order.
LINKS
Ivan Panchenko, Table of n, a(n) for n = 0..1000
FORMULA
G.f.: x*(3 + 26*x + 60*x^2 + 30*x^3 + x^4)/(1-x)^6. - R. J. Mathar, Nov 14 2007
a(n) = n^2*(n^3 + n + 1). - Wesley Ivan Hurt, Mar 02 2023
EXAMPLE
a(7) = 17199 because 7^5 = 16807, 7^3 = 343, 7^2 = 49 and we can write 16807 + 343 + 49 = 17199.
MATHEMATICA
Total[#^{5, 3, 2}]&/@Range[0, 40] (* Harvey P. Dale, Jan 18 2011 *)
LinearRecurrence[{6, -15, 20, -15, 6, -1}, {0, 3, 44, 279, 1104, 3275}, 35] (* James C. McMahon, Mar 10 2025 *)
PROG
(Magma)[n^5+n^3+n^2: n in [0..50]] // Vincenzo Librandi, Dec 15 2010
(PARI) for(n=0, 50, print1(n^5 + n^3 + n^2, ", ")) \\ G. C. Greubel, Oct 20 2017
CROSSREFS
KEYWORD
nonn,changed
AUTHOR
Omar E. Pol, Nov 01 2007
EXTENSIONS
More terms from Vincenzo Librandi, Dec 15 2010
STATUS
approved