OFFSET
1,1
FORMULA
a(n) = prime(n+2)^3 - prime(n+1)^2 + prime(n).
EXAMPLE
a(1) = 5^3 - 3^2 + 2 = 118.
MATHEMATICA
Table[Prime[n + 2]^3 - Prime[n + 1]^2 + Prime[n], {n, 60}] (* Vincenzo Librandi, Aug 20 2015 *)
PROG
(Magma) [NthPrime(n+2)^3-NthPrime(n+1)^2+NthPrime(n): n in [1.. 35]]; // Vincenzo Librandi, Aug 20 2015
(PARI) vector(40, n, prime(n+2)^3-prime(n+1)^2+prime(n)) \\ Michel Marcus, Aug 20 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
Altug Alkan, Aug 20 2015
EXTENSIONS
More terms from Vincenzo Librandi, Aug 20 2015
STATUS
approved