OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
FORMULA
a(n) = A135178(n) + 1. - Elmo R. Oliveira, Jan 27 2023
EXAMPLE
a(4)=393 because the 4th prime is 7, 7^3=343, 7^2=49, and 343+49+1=393.
MATHEMATICA
#^3+#^2+1&/@Prime[Range[45]] (* Harvey P. Dale, Jan 25 2011 *)
PROG
(Magma) [p^3+p^2+1: p in PrimesUpTo(700)]; // Vincenzo Librandi, Jan 26 2011
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Jani Melik, Jan 24 2011
STATUS
approved