A056831 LCM of composite numbers falling between n-th and (n+1)-st primes.
4, 6, 360, 12, 1680, 18, 4620, 491400, 30, 1884960, 29640, 42, 45540, 12994800, 45821160, 60, 89369280, 164220, 72, 211110900, 265680, 195878760, 83434347360, 485100, 102, 578760, 108, 683760, 97661867698205811000, 1073280, 1799665560
Offset: 2
Links
- T. D. Noe, Table of n, a(n) for n = 2..1000
Programs
-
Mathematica
Table[LCM@@Range[Prime[n]+1, Prime[n+1]-1], {n,2,50}]
-
PARI
a(n) = my(x=prime(n)+1); for (i=x, prime(n+1)-1, x = lcm(i, x)); x; \\ Michel Marcus, Mar 22 2020
-
Python
from math import lcm from sympy import prime def A056831(n): return lcm(*range(prime(n)+1,prime(n+1))) # Chai Wah Wu, Apr 16 2023
Formula
Extensions
Edited by Robert G. Wilson v, Apr 12 2002