OFFSET
1,1
COMMENTS
Erdős and Pomerance ask for an asymptotic formula (see Erdős Problems link).
LINKS
Sharvil Kesarwani, Table of n, a(n) for n = 1..10000
Thomas Bloom, Problem 710, Erdős Problems.
EXAMPLE
For n = 4 we need to find the least k such that in (4, 4 + k) there exist 4 distinct integers that are divisible by 1, 2, 3 and 4. This happens for k = 6 and in the interval (4, 10) there exist 4 distinct integers {5, 6, 9, 8} divisible by {1, 2, 3, 4} respectively.
MATHEMATICA
Table[k=n+1; While[Select[Tuples[(v=#; Select[Range[n+1, n+k-1], Mod[#, v]==0&])&/@Range[2, n]], DuplicateFreeQ]=={}, k++]; k, {n, 16}]
PROG
(Python)
from itertools import count, permutations
def A390246(n):
for k in count(n+1):
for p in permutations(range(n+1, n+k), r=n-1):
if not any(p[i-2]%i for i in range(2, n+1)):
return k # Chai Wah Wu, Nov 10 2025
CROSSREFS
KEYWORD
nonn,nice
AUTHOR
Giorgos Kalogeropoulos, Oct 30 2025
STATUS
approved
