OFFSET
1,1
COMMENTS
Subsequence of A000292.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
FORMULA
MAPLE
A271512:=n->(ithprime(n)+1)*(ithprime(n)+2)*(ithprime(n)+3)/6: seq(A271512(n), n=1..80); # Wesley Ivan Hurt, Apr 10 2016
MATHEMATICA
Table[(Prime[n]^3 + 6 Prime[n]^2 + 11 Prime[n] + 6) / 6, {n, 50}]
PROG
(Magma) [(p+1)*(p+2)*(p+3) / 6: p in PrimesUpTo(200)];
(Python)
from sympy import prime
for n in range(1, 1000):
p=prime(n)
print((int)(((p+1)*(p+2)*(p+3))/6))
# Soumil Mandal, Apr 11 2016
(PARI) lista(nn) = forprime(p=2, nn, print1((p+1)*(p+2)*(p+3)/6, ", ")); \\ Altug Alkan, Apr 10 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Apr 10 2016
STATUS
approved