OFFSET
1,1
FORMULA
a(n) = 5*prime(n)^5 + 3*prime(n)^3 + 2*prime(n)^2, where prime(n)= A000040(n).
EXAMPLE
a(4)=85162 because the 4th prime is 7, 5*7^5=84035, 3*7^3=1029, 2*7^2=98 and we can write 84035 + 1029 + 98 = 85162.
MATHEMATICA
5#^5+3#^3+2#^2&/@Prime[Range[30]] (* Harvey P. Dale, Dec 17 2011 *)
PROG
(Magma) [5*p^5+3*p^3+2*p^2: p in PrimesUpTo(200)] // Vincenzo Librandi, Dec 15 2010
(PARI) a(n) = my(p=prime(n)); 5*p^5 + 3*p^3 + 2*p^2; \\ Michel Marcus, Mar 11 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Omar E. Pol, Nov 05 2007
EXTENSIONS
More terms from Vincenzo Librandi, Dec 15 2010
STATUS
approved