OFFSET
1,1
COMMENTS
Number of irreducible monic cubic polynomials over GF(prime(n)). - Robert Israel, Jan 06 2015
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = (prime(n)^3 - prime(n))/3. - Wesley Ivan Hurt, Oct 15 2023
MAPLE
seq((ithprime(n)^3 - ithprime(n))/3, n=1..100); # Robert Israel, Jan 06 2015
MATHEMATICA
Table[(Prime[n] + 1) Prime[n] (Prime[n] - 1)/3, {n, 100}]
PROG
(PARI) forprime(p=2, 1e3, print1(2*binomial(p+1, 3)", ")) \\ Charles R Greathouse IV, Jun 16 2011
(Magma) [(p^3 - p) div 3: p in PrimesUpTo(150)]; // Vincenzo Librandi, Jan 08 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Artur Jasinski, Feb 06 2007
STATUS
approved