login
A261464
a(n) = prime(n+2)^3 - prime(n+1)^2 + prime(n).
0
118, 321, 1287, 2083, 4755, 6583, 11823, 23879, 28973, 49721, 67583, 77863, 102015, 146711, 202617, 223553, 297101, 353483, 384043, 487781, 565619, 698159, 904835, 1020981, 1082623, 1214535, 1283683, 1431123, 2035723, 2232075, 2554319, 2666981, 3288765
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