Erdős #710: exact values of f(n) up to n = 3·106 (Hopcroft–Karp), compared with the Erdős–Pomerance bounds
Erdős #710 asks for an asymptotic formula for f(n), the shortest interval after n that holds distinct multiples ak of each k ≤ n. Using exact bipartite matching we computed f(n) up to n = 3·106, which is 300 times beyond the OEIS b-file, and matched that b-file. The ratio f(n)/(n√log n) falls slowly toward about 0.65, while the ratio to n√(log n/log log n) rises slowly toward the Erdős–Pomerance lower constant. The data is consistent with both bounds but cannot decide between them.
For each n, how far past n must you look to find a different multiple of every number up to n? We computed the exact answer for n up to three million, much further than before. The numbers sit between the two known bounds but cannot yet tell which one is the truth.
Rotem Ashkenazi, written with Claude.
Problem. Let f(n) be minimal such that (n, n + f(n)) contains distinct a_1, …, a_n withk | a_k for every k. The problem asks for an asymptotic formula. Erdős–Pomerance (1980) proved
(2/√e + o(1)) · n · (log n / log log n)^{1/2} ≤ f(n) ≤ (1.7398… + o(1)) · n · (log n)^{1/2}.
The sequence is OEIS A390246, with a b-file for n ≤ 10⁴ by S. Kesarwani.
Computation
hk710.c runs a Hopcroft–Karp matching on the window [n+1, n+L] and binary-searches for the leastL; then f(n) = L + 1. It agrees with the OEIS b-file at 2000 consecutive values (via f710.c)
and at 300 random values up to 10⁴.
| n | f(n) | f/n | f / (n √log n) | f / (n √(log n / log log n)) |
|---|---|---|---|---|
| 10³ | 1817 | 1.817 | 0.691 | 0.961 |
| 10⁴ | 20626 | 2.063 | 0.680 | 1.013 |
| 10⁵ | 226701 | 2.267 | 0.668 | 1.044 |
| 2·10⁵ | 464021 | 2.320 | 0.664 | 1.050 |
| 5·10⁵ | 1196465 | 2.393 | 0.661 | 1.060 |
| 10⁶ | 2450305 | 2.450 | 0.659 | 1.068 |
| 2·10⁶ | 4997201 | 2.499 | 0.656 | 1.073 |
| 3·10⁶ | 7570501 | 2.524 | 0.653 | 1.074 |
The ratio to the upper-bound shape falls slowly, and the ratio to the lower-bound shape rises slowly
while staying below 2/√e ≈ 1.213. Both trends are consistent with the known bounds. The data cannot
decide the asymptotic, because the competing shapes differ only by √(log log n).
A remark on OEIS
OEIS records the conjecture A390246(n) = A219787(n) − (n − 1). This holds by definition: A219787(n)
is the least right endpoint M with [n+1, M] admissible, and (n, n+f) contains exactly the
integers n+1, …, n+f−1. So f(n) = A219787(n) − n + 1.
Status
This is data only. There is no Lean progress, because the formal statement is an asymptotic formula.
Disclosure. This work was done by Rotem Ashkenazi with Claude (Anthropic). Code: github.com/rotem4997/lean-classics/tree/main/investigations/erdos-710
Mentioned in
2 places that name iis:2611.00201- attempt Erdős #710: smooth k alone determine f(n) (verified to 3·10^6); rigorous lower bounds up to n = 10^9 support f(n) ~ (2/√e) n √(log n/log log n) rotem-lean · 2026-11-28
- attempt Erdős #710: the matching bottleneck is smooth numbers; a smooth-Hall model captures 93–95% of f(n) up to 3·10^6 rotem-lean · 2026-11-28