The last crossing of the leading asymptote in Erdős problem 390 is 2045
PDF built from iis-2612-00617.tex sha256 743b887d9720… by the site's TeX builder, 2026-12-01 06:41 UTC.
The least largest factor of n! is strictly greater than 2n+C₀n/log n for every n≥2046, while 2045! has a 1,688-factor witness on the other side. Retaining moving prime-power incidences in the thirteen-layer lower bound yields a positive next term of at least 0.363606681737… n/log² n, up to O(n/log³ n). Two integer sieves and short valuation certificates establish the exact cutoff.
Split n factorial into different factors, each larger than n, and minimize the largest factor you need. The known asymptotic gives a comparison curve. The last time the minimum reaches or falls below that curve is exactly 2045. Moving the allowed endpoint also forces extra small prime factors, which explains a positive correction to the curve.
Let \(f(n)\) be the least possible largest factor when \(n!\) is written as a product of distinct integers larger than \(n\). Erdős, Guy and Selfridge proved that 239 is the last \(n\) with \(f(n)\le2n\). Samuel Mausberg found the thirteen prime intervals that give the lower constant \(C_0=4029639598/25970038185\), following an observation of Terence Tao. Shouqiao Wang gives the matching asymptotic \(f(n)-2n\sim C_0n/\log n\). All logarithms below are natural. Erdős, Guy and Selfridge · Mausberg and Tao, problem discussion · Wang, §§2–3 and main theorem
Results
The last integer satisfying \(f(n)\le 2n+C_0n/\log n\) is 2045. Its factorial has a verified representation with 1,688 distinct factors in \([2046,4131]\). The next integer and every integer after it satisfy the strict reverse inequality.
There is also a positive next-order lower term. For some absolute \(K\) and every sufficiently large \(n\), with \(L=\log n\),
$$f(n)\ge 2n+C_0 n/L + C_1 n/L^2-Kn/L^3,\qquad C_1=0.363606681737\ldots .$$
The formula for \(C_1\) is given below. A matching upper coefficient remains open in this analysis.
An exact count of the forced cofactors
Write \(M=2n+h\), where \(h\) is a nonnegative integer, and let \(Q=M!/(n!)^2\). If \(M\) is an admissible cap, the omitted elements of \((n,M]\) have product \(Q\). Set \(S=\{2,3,5,7,11,13,17,19,23\}\) and \(A=\sum_{q\in S}1/(q-1)=17927/7920\). Assume \(15h<n\) and \((n/15)^2>M\). For any prime \(p>n/15\), exactly \(r_p=\lfloor M/p\rfloor-2\lfloor n/p\rfloor\) of the omitted integers must be multiples of \(p\). No omitted integer can contain two such primes.
At \(M=2n\), primes \(n/14<p\le n\) contribute one forced cofactor precisely on the thirteen intervals \((b_r n,a_r n]\) with \(a_r=2/(2r+1)\) and \(b_r=1/(r+1)\), \(1\le r\le13\). Raising \(M\) adds one incidence for each multiple \(jp\) with \(2n<jp\le M\) in this range. Here \(3\le j\le28\), and for each such \(j\) the whole interval \((2n/j,M/j]\) lies in \((n/14,n]\), apart from the shared lower endpoint which is excluded. Every such omitted cofactor lies between 2 and 28, so it has a divisor in \(S\). For \(n<p\le M/2\), both \(p\) and \(2p\) are omitted, with \(2p\) consuming one small-prime factor. Finally, if \(n/15<p\le M/30\), then \(\lfloor n/p\rfloor=14\) and \(\lfloor M/p\rfloor=30\). Two distinct cofactors in \([15,30]\) must be omitted. Only 29 has no divisor in \(S\), so at least one further factor is charged. These last primes lie below \(n/14\).
Writing \(J=\{2,3,\ldots,28,30\}\) gives the exact necessary inequality
$$\sum_{r=1}^{13}\big[\pi(a_r n)-\pi(b_r n)\big]+\sum_{j\in J}\big[\pi(M/j)-\pi(2n/j)\big]\le\sum_{q\in S}v_q(Q).$$
Legendre's formula bounds the right side by \(Ah+2\sum_{q\in S}\log M/\log q\). At each prime power the difference of floors is at most \(h/q^k+2\). Summing the geometric series and counting the powers proves the bound.
The next-order coefficient
The 1982 result allows \(h=f(n)-2n>0\) for large \(n\). The claim holds immediately when \(h\ge n/L\), so assume \(0<h<n/L\). Put
$$D_0=\sum_r(a_r-b_r),\quad D_1=\sum_r[a_r(1-\log a_r)-b_r(1-\log b_r)],\quad S_1=\sum_{j\in J}1/j.$$
At each fixed positive scale \(u\), the prime number theorem with its classical error term gives \(\pi(un)=un/L+u(1-\log u)n/L^2+O(n/L^3)\). For the moving endpoints one uses the logarithmic integral before expanding. Uniformly for \(0\le h\le n/L\) and each fixed \(j\), the integral from \(2n/j\) to \(M/j\) is \(h/(jL)+O(n/L^3)\), and the two prime-counting errors are each \(O(n/L^3)\). There are finitely many endpoints. Hence
$$(A-S_1/L)h\ge D_0n/L+D_1n/L^2-O(n/L^3).$$
Expanding the positive denominator gives \(C_0=D_0/A\) and \(C_1=(D_1+C_0 S_1)/A\). In particular the normalized difference at the \(n/L^2\) scale has liminf at least \(C_1\). The cofactors with \(j=2\) and \(j=30\) enter the coefficient through separate prime intervals.
The effective bound for all large integers
We prove the strict inequality for every \(n\ge2^{22}\). Suppose \(h=\lfloor C_0n/L\rfloor\) gives an admissible cap, and write \(X=M/2\), \(T=\log X\). For the disjoint intervals \((b_rX,a_rX]\), one has \(\lfloor M/p\rfloor=2r+1\) and \(\lfloor n/p\rfloor=r\) since \(rh<n\). Their omitted cofactors are in \([r+1,2r+1]\) and again spend at least one factor from \(S\). The intervals lie above \(60184\) and \(T\ge15\). Dusart gives \(x/(\log x-1)\le\pi(x)\) for \(x\ge5393\) and \(\pi(x)\le x/(\log x-1.1)\) for \(x\ge60184\). Dusart, Eq. (6.6)
The demand is therefore at least \((X/T)D(T)\) where
$$D(T)=\sum_r\left[\frac{a_rT}{T-1+\log a_r}-\frac{b_rT}{T-1.1+\log b_r}\right]\ge D_0+\frac{1}{40T}.$$
The last rational inequality comes with an exact certificate. Replace \(1-\log a_r\) by a lower rational rounded down at \(10^{-6}\) precision and \(1.1-\log b_r\) by an upper rational rounded up. Bound each logarithm by range reduction to \([1,2]\) and the first thirteen terms of \(2\operatorname{atanh}((x-1)/(x+1))\) with geometric tail. Clear the 26 positive denominators in \(T(D_{\rm lower}(T)-D_0)-1/40\) and substitute \(T=15+t\). All 27 rational coefficients are positive. The attached dusart_cert.py reconstructs them using integer fractions.
Since \(x/\log x\) and \(x/\log^2 x\) increase on this range, the demand is at least \(D_0 n/L+n/(40L^2)\). The supply is at most \(D_0 n/L+21L\) by the explicit Legendre bound above. For example \(\sum_{q\in S}1/\log q<6\) and \(\log M\le\log(3n)<7L/4\). Finally \(n/L^3>840\) at \(2^{22}\) using \(\log 2<0.7\), and \(x/\log^3 x\) increases thereafter. This gives a contradiction.
Finite proof of the last crossing
Two integer sieves checked the entire remaining interval. The independent replay for \(2046\le n<2^{22}\) uses \(j=\lfloor\log_2 n\rfloor\), \(z=(n-2^j)/(n+2^j)\) and the lower bound \(j(69314718/10^8)+2(z+z^3/3)\) for \(\log n\). Rounding its terms down gives an integer upper cap on \(\lfloor C_0n/\log n\rfloor\). Excluding the larger cap excludes every smaller one by monotonicity of admissibility. The program groups the prime counts into paired intervals and calculates all small-prime valuations independently. Just five cases survive, at \(n=2046,2047,2105,2174,2183\) with respective exact offsets \(41,41,42,43,44\).
For 2174, charge the omitted cofactors of every prime \(p>\max(23,\sqrt M)\) the total number of their prime factors from \(\{2,3,5,7,11,13\}\) with multiplicity. For each prime add the \(r_p\) cheapest costs of available cofactors. This already exceeds the total supply. For the other four cases let \(V=\{a:n<a\le M,\;a\mid n!\}\) and \(t=\prod_{a\in V}a/n!\). If a representation existed, a subset of \(V\) consisting of divisors of \(t\) would have product \(t\). The supplied integer weights \(w_p\) yield additive scores \(s(a)=\sum_p w_p v_p(a)\). The strict gap \(s(t)-\sum_{a\in V,\,a\mid t}\max(0,s(a))\) is respectively 2, 1, 6, 3 for \(2046,2047,2105,2183\). Integer arithmetic rechecks these separations independently of the optimizer that found them. At 2045 an explicit list of 1,688 different integers has product \(2045!\) and maximum 4131. Rational log enclosures verify \(\lfloor C_0\cdot2045/\log 2045\rfloor=41\). This completes the all-integer assertion.
The Lean archive kernel-checks the positive 2045 witness. The two sieves, score certificates, rational polynomial and written analysis cover the global exclusions.
PDFs do not display inside pages on phones. Open the PDF.
The Lean proof builds and checks
Built from the attached project on our node, with no network, then checked:
- Lean v4.27.0 · Mathlib a3a10db
- 1/1 theorems found
- no sorry
- standard axioms only
- no native_decide
- built in 35 s
- 4 declarations
Split n factorial into different factors, each larger than n, and minimize the largest factor you need. The known asymptotic gives a comparison curve. The last time the minimum reaches or falls below that curve is exactly 2045.
FactorialThresholdsfit_2045_41311 line
Fits 2045 4131FactorialThresholds.FitsPropThresholds.lean:9
def Fits (n m : ℕ) : Prop := ∃ xs : List ℕ, xs.Nodup ∧ (∀ x ∈ xs, n<x ∧ x≤m) ∧ xs.prod=n.factorialNot checked by a machine: that these statements say what the paper claims. That part is a reviewer's.
Files
content-addressed: the hash is the address| iis-2612-00617.pdf | 276 kB | sha256 165c02340002b95e… .ots |
erdos390-last-crossing.zip31 files inside, 100 kB unpacked
| 39 kB | sha256 a80b3801dd87f342… .ots |