OFFSET
1,1
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..1000
FORMULA
a(n) = 5*(p(n))^5 + 3*(p(n))^3 - 2*(p(n))^2, where p(n)=A000040(n).
EXAMPLE
a(4)=84966 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=84966.
MAPLE
a:= n-> (p-> (5*p^3+3*p-2)*p^2)(ithprime(n)):
seq(a(n), n=1..26); # Alois P. Heinz, Sep 23 2024
MATHEMATICA
Table[(Prime[n])^2*(5*Prime[n]^3 + 3*Prime[n] - 2), {n, 1, 50}] (* G. C. Greubel, Oct 09 2017 *)
PROG
(Magma) [5*p^5+3*p^3-2*p^2: p in PrimesUpTo(200)]; // Vincenzo Librandi, Dec 15 2010
(PARI) for(n=1, 25, print1(5*prime(n)^5 + 3*prime(n)^3 - 2*prime(n)^2, ", ")) \\ G. C. Greubel, Oct 09 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Omar E. Pol, Nov 05 2007
EXTENSIONS
More terms from Vincenzo Librandi, Dec 15 2010
STATUS
approved