login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A135180
a(n) = p^5 - p^3 + p^2, where p = prime(n).
1
28, 225, 3025, 16513, 159841, 369265, 1415233, 2469601, 6424705, 20487601, 28600321, 69294673, 115788961, 146930785, 229243393, 418049425, 714722401, 844373041, 1349828833, 1803876481, 2072687905, 3076569601, 3938475745, 5583362401, 8586436993, 10509080401, 11591658625, 14024303713, 15384956401
OFFSET
1,1
LINKS
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
Cf. p^2: A001248. p^3: A030078. p^5: A050997.
Sequence in context: A236355 A133071 A339137 * A042524 A125365 A126523
KEYWORD
nonn,easy
AUTHOR
Omar E. Pol, Nov 25 2007
EXTENSIONS
More terms from Vincenzo Librandi, Dec 14 2010
STATUS
approved