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)=16513 because the 4th prime number is 7, 7^5 = 16807, 7^3 = 343, 7^2 = 49 and 16807 - 343 + 49 = 16513.
MATHEMATICA
#^5 - #^3 + #^2 &/@Prime[Range[40]] (* Vincenzo Librandi, May 22 2014 *)
PROG
(Magma)[p^5-p^3+p^2: p in PrimesUpTo(200)]; // 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