A quadratic bound for Jacobsthal’s function

Every run of about k² whole numbers holds one sharing no factor with a number that has k prime factors.

1 paper September 25, 2026 Explained by AI

Pick a number with k different prime factors. Some runs of consecutive whole numbers share a factor with it at every step. This paper proves that such runs cannot be longer than a fixed constant times k squared. It answers a question Jacobsthal raised and Erdős recorded in 1962. The constant is not given as a number.

First step
1960
Ernst Jacobsthal, first papers on the function
Significance
Major
It answers Jacobsthal's quadratic-bound question and removes the logarithmic loss left by Iwaniec in 1978.
Trust
Formal proof listed
Field
Number theory
1 paper

The explanation

Take the number 210. It is 2 × 3 × 5 × 7, so it has four distinct prime factors. Now look at the run 2, 3, 4, 5, 6, 7, 8, 9, 10. Every one of these nine numbers shares a factor with 210. Each is even, or a multiple of 3, 5 or 7. The next number, 11, shares no factor with 210. Mathematicians call such a number coprime to 210.

So 210 allows a run of nine numbers with no coprime number in it. A computer search over every starting point finds no longer run. Every stretch of 10 consecutive whole numbers therefore contains a number coprime to 210. Jacobsthal's function, j(n), records exactly this: the shortest length that always works for n. Here j(210) = 10.

A bigger question asks about every number with at most k prime factors at once. Call the answer h(k). It is the shortest interval length that always contains a number coprime to any such number. The interval may start anywhere. For k = 4 the answer is again 10. Hajdu and Saradha proved that the first k primes give the worst case for every k up to 23. At k = 24 that pattern breaks. There, the first 24 primes give 234, but the true worst case is 236.

There is a second way to see the problem. For each prime, cross out one chosen remainder class, such as every number leaving remainder 1 when divided by 3. Then ask how long a run of whole numbers can be crossed out entirely. The paper notes that this is the same problem. It also explains why arbitrary primes and arbitrary starting points come together.

Jacobsthal studied this function in papers beginning in 1960. Erdős later recorded his question: does h(k) grow no faster than a constant times k squared? Erdős observed that Brun's method gives some fixed power of k. In 1977, Vaughan proved a bound of order k² times the fourth power of log k. Here log means the natural logarithm, a slowly growing function. In 1978, Iwaniec improved this to order k² times (log k)². That logarithmic factor never went away. At a million primes, (log k)² is already about 191.

Vaughan explained where the square comes from. The standard counting tool, called a sieve, estimates how many numbers survive the crossing out. At exactly the quadratic length, its guaranteed lower count drops to zero. So the usual method says nothing useful right at the scale Jacobsthal asked about. The paper keeps a small boundary term that the standard method throws away. It then shows that cleverly chosen remainder classes cannot cancel that term. Classes that try to do so are forced into a rigid, predictable pattern, and that pattern can be handled.

This paper proves that the answer to Jacobsthal's question is yes. There is a fixed constant C that works for every k. The bound says h(k) is at most C k² divided by (log log 3k)². That is slightly better than k² itself. The bound holds for any set of primes and any starting point. In the example's terms, no k primes and remainders can cross out a run longer than C k².

The result has limits. The constant C is not made explicit, so the theorem gives no concrete number for any given k. It also does not settle the true growth rate. Ford, Green, Konyagin, Maynard and Tao gave the best known lower bound. It grows like k times a few slow logarithmic factors. Vaughan suggested that the true growth might be only slightly faster than k. The gap between these bounds remains substantial.

How sure is this? A computer proof checker called Lean has checked a formal version of the main bound. It covers one fixed C and every k. Intervals may start at any integer, including negative ones. The plain quadratic bound is checked as a separate statement. No specialists have published a review yet.

What it doesn't show. This does not find the true growth rate of Jacobsthal's function, and it gives no explicit constant.

Where it came from

This result comes from an unreleased OpenAI model, published in the openai/math release on 6 October 2026.

Hype check

Major if the proof holds. A Lean formalization of the main bound is listed. The constant is not explicit, and the true growth rate is still open. No specialist review has been published.

Words used

Prime factor
A prime number that divides a given number exactly, like 5 for 210.
Coprime
Two whole numbers are coprime when no number larger than 1 divides both.
Jacobsthal's function
For a number n, the shortest length such that every run of that many consecutive whole numbers contains one coprime to n.
Remainder class
All whole numbers that leave the same remainder when divided by a fixed number.
Sieve
A counting method that estimates how many numbers survive after removing those in chosen remainder classes.
Natural logarithm
The function log, which grows very slowly; log of a million is about 13.8.

The original paper

All quoted lines (6)

  1. It keeps a boundary contribution that disappears from the leading linear-sieve term, and then controls the discrepancy between this reference calculation and the actual prescribed classes.
    A quadratic bound for Jacobsthal's function Back to text
  2. An inverse estimate in Section … shows that many discrepant edges force alignment with one of finitely many rationals A/DA/D: a prime pp aligns when Dap≡A(modp)Da_p\equiv A\pmod p.
    A quadratic bound for Jacobsthal's function Back to text
  3. There is an absolute constant C>0C>0 such that h(k)≤Ck2(log⁡log⁡(3k))2for every integer k≥1.h(k)\le C\frac{k^2}{(\log\log(3k))^2} \qquad\text{for every integer }k\ge1.
    A quadratic bound for Jacobsthal's function Back to text
  4. In particular the theorem gives a uniform quadratic bound for arbitrary sets of prime divisors, with no restriction on their sizes or on the interval's translation.
    A quadratic bound for Jacobsthal's function Back to text
  5. These finite computations concern explicit values, whereas the constant in Theorem … is not made explicit.
    A quadratic bound for Jacobsthal's function Back to text
  6. The gap between (…) and our upper bound remains substantial. Vaughan suggested the stronger possible estimate j(n)≪εω(n)1+εj(n)\ll_\eps\omega(n)^{1+\eps} for n>1n>1 and each fixed ε>0\eps>0.
    A quadratic bound for Jacobsthal's function Back to text

Other sources

  1. openai/math, “A quadratic bound for Jacobsthal's function” (2026) Thus h(k)−1h(k)-1 is the greatest length of an interval that can be covered
  2. P. Erdős, “On the integers relatively prime to n and on a number-theoretic function considered by Jacobsthal”, Mathematica Scandinavica 10 (1962), 163–170
  3. R. C. Vaughan, “On the order of magnitude of Jacobsthal's function”, Proceedings of the Edinburgh Mathematical Society 20 (1977), 329–331
  4. H. Iwaniec, “On the problem of Jacobsthal”, Demonstratio Mathematica 11 (1978), 225–231
  5. L. Hajdu and N. Saradha, “Disproof of a conjecture of Jacobsthal”, Mathematics of Computation 81 (2012), 2461–2471
  6. K. Ford, B. Green, S. Konyagin, J. Maynard and T. Tao, “Long gaps between primes”, Journal of the American Mathematical Society 31 (2018), 65–105