OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
FORMULA
p=A000040(n): a(n)= p^5 + p^3 - p^2.
EXAMPLE
a(4)=17101 because the 4th prime number is 7, 7^5=16807, 7^3=343, 7^2=49 and 16807+343-49=17101.
MATHEMATICA
#^5+#^3-#^2&/@Prime[Range[30]] (* Harvey P. Dale, Apr 10 2012 *)
PROG
(Magma)[p^5+p^3-p^2: p in PrimesUpTo(4200)]; // Vincenzo Librandi, Dec 14 2010
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Omar E. Pol, Nov 25 2007
EXTENSIONS
More terms from Vincenzo Librandi, Dec 14 2010
STATUS
approved