The Jacobsthal function of a positive integer
is the least positive
integer
such that every block of
consecutive integers
contains an integer relatively
prime to
(Costello and Watts 2015). For example,
because four consecutive
integers always include one relatively prime
to 6, while 2, 3, and 4 form a block of three that does not. The first values, starting
at
, are 1, 2, 2, 2, 2, 4, 2, 2, 2, 4, ... (OEIS A048669).
Let
be the prime nu function, and let
be the maximum of
over positive integers
with
. Requiring exactly
distinct prime factors gives
the same maximum, since adding prime factors cannot
decrease
. For
, 2, ..., the values of
begin 2, 4, 6, 10, 14, 22, ... (OEIS
A395279).
Iwaniec (1978) proved as
. OpenAI (2026) established
the bound
for every integer , with an absolute constant
. The formal proof of this bound and of the quadratic
bound in Erdős Problem 970 was
independently checked (White 2026).
Weeks (2026) reports the explicit upper bounds and
for every integer
. The cubic bound is attained at
, since
for every prime power
. The proof combines finite certificates with explicit
linear sieve estimates. The Hexagon record discloses AI-generated technical derivations
and reports computer checks of the finite certificates and numerical constants. The
companion Lean formalization covers core sieve inputs.
For real , let
be the product of the primes
. Choose one residue
class modulo each such
, and let
be the greatest
for which some choice covers all integers
from 1 through
. The Chinese
remainder theorem identifies any such choice with a translate of the classes
of multiples of the prime factors of
, so
. If
is the
th prime number, the values
of
are 1, 3, 5, 9, 13, 21, ... (OEIS A058989).
The associated values of
are 2, 4, 6, 10, 14, 22, ... (OEIS A048670).
The first difference between this sequence and
occurs at
, where
and
(Hajdu and Saradha 2012).
Writing
for the prime counting function gives
. The bound for
and the prime number
theorem then give
Here
denotes big-O notation. In particular,
, where
denotes little-O notation.
This establishes the weaker bound requested in Erdős
Problem 687.