login
A262186
a(n) = prime(n)^3 - n^3.
0
7, 19, 98, 279, 1206, 1981, 4570, 6347, 11438, 23389, 28460, 48925, 66724, 76763, 100448, 144781, 200466, 221149, 293904, 349911, 379756, 482391, 559620, 691145, 897048, 1012725, 1073044, 1203091, 1270640, 1415897, 2018592, 2215323
OFFSET
1,1
COMMENTS
Obviously, a(n) is not a prime number if n > 2.
FORMULA
a(n) = A030078(n) - A000578(n).
MATHEMATICA
Array[Prime[#]^3 - #^3 &, {32}] (* Michael De Vlieger, Sep 14 2015 *)
PROG
(PARI) a(n) = prime(n)^3 - n^3;
vector (30, n, a(n))
(Magma) [NthPrime(n)^3 - n^3: n in [1..40]]; // Vincenzo Librandi, Sep 15 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Altug Alkan, Sep 14 2015
STATUS
approved