login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A127920
1/6 of product of three numbers: n-th prime, previous and following number.
7
1, 4, 20, 56, 220, 364, 816, 1140, 2024, 4060, 4960, 8436, 11480, 13244, 17296, 24804, 34220, 37820, 50116, 59640, 64824, 82160, 95284, 117480, 152096, 171700, 182104, 204156, 215820, 240464, 341376, 374660, 428536, 447580, 551300, 573800, 644956
OFFSET
1,2
LINKS
FORMULA
a(n) = A127918(n)/3. - Michel Marcus, Apr 09 2017
MATHEMATICA
Table[(Prime[n] + 1) Prime[n](Prime[n] - 1)/6, {n, 1, 100}]
((#-1)#(#+1))/6&/@Prime[Range[40]] (* Harvey P. Dale, Dec 23 2019 *)
PROG
(PARI) forprime(p=2, 1e3, print1(binomial(p+1, 3)", ")) \\ Charles R Greathouse IV, Jun 16 2011
(Python)
from sympy import prime
print([(prime(n) - 1)*prime(n)*(prime(n) + 1)//6 for n in range(1, 101)]) # Indranil Ghosh, Apr 09 2017
(Magma) [(NthPrime(n) + 1)*NthPrime(n)*(NthPrime(n) - 1)/6: n in [1..40]]; // Vincenzo Librandi, Apr 09 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Artur Jasinski, Feb 06 2007
STATUS
approved