A127918 Half of product of three numbers: n-th prime, previous and following number.
3, 12, 60, 168, 660, 1092, 2448, 3420, 6072, 12180, 14880, 25308, 34440, 39732, 51888, 74412, 102660, 113460, 150348, 178920, 194472, 246480, 285852, 352440, 456288, 515100, 546312, 612468, 647460, 721392, 1024128, 1123980, 1285608
Offset: 1
Links
- Vincenzo Librandi, Table of n, a(n) for n = 1..1000
Programs
-
Magma
[(NthPrime(n)+1)*NthPrime(n)*(NthPrime(n)-1)/2: n in [1..40]]; // Vincenzo Librandi, Apr 09 2017
-
Mathematica
Table[(Prime[n] + 1) Prime[n](Prime[n] - 1)/2, {n, 1, 100}]
-
PARI
forprime(p=2,1e3,print1(3*binomial(p+1,3)", ")) \\ Charles R Greathouse IV, Jun 16 2011
Comments