\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[a4paper,margin=2.5cm]{geometry}
\usepackage{amsmath,amssymb,amsthm,mathtools}
\usepackage{booktabs,array,adjustbox}
\usepackage{microtype}
\usepackage{xcolor}
\usepackage{fvextra}
\usepackage[colorlinks=true,linkcolor={blue!50!black},urlcolor={blue!50!black},citecolor={blue!50!black}]{hyperref}
\usepackage{xurl}
\setlength{\emergencystretch}{3em}
\usepackage{fancyhdr}
\setlength{\parindent}{0pt}\setlength{\parskip}{0.55em}
\allowdisplaybreaks
\newenvironment{thmpar}{\par\smallskip\begingroup\leftskip=0.9em\rightskip=0pt}{\par\endgroup\smallskip}
\providecommand{\R}{\mathbb{R}}\providecommand{\N}{\mathbb{N}}\providecommand{\Z}{\mathbb{Z}}\providecommand{\Q}{\mathbb{Q}}\providecommand{\C}{\mathbb{C}}
\providecommand{\mathscr}{\mathcal}\providecommand{\bm}{\boldsymbol}\providecommand{\Bbb}{\mathbb}
\providecommand{\Big}{\mathrm{Big}}
\providecommand{\big}{\mathrm{big}}
\providecommand{\binom}{\mathrm{binom}}
\providecommand{\bmod}{\mathrm{bmod}}
\providecommand{\cdot}{\mathrm{cdot}}
\providecommand{\delta}{\mathrm{delta}}
\providecommand{\dots}{\mathrm{dots}}
\providecommand{\exp}{\mathrm{exp}}
\providecommand{\ge}{\mathrm{ge}}
\providecommand{\gg}{\mathrm{gg}}
\providecommand{\in}{\mathrm{in}}
\providecommand{\le}{\mathrm{le}}
\providecommand{\lfloor}{\mathrm{lfloor}}
\providecommand{\ln}{\mathrm{ln}}
\providecommand{\log}{\mathrm{log}}
\providecommand{\max}{\mathrm{max}}
\providecommand{\mid}{\mathrm{mid}}
\providecommand{\min}{\mathrm{min}}
\providecommand{\ne}{\mathrm{ne}}
\providecommand{\nmid}{\mathrm{nmid}}
\providecommand{\notin}{\mathrm{notin}}
\providecommand{\pi}{\mathrm{pi}}
\providecommand{\rfloor}{\mathrm{rfloor}}
\providecommand{\square}{\mathrm{square}}
\providecommand{\sum}{\mathrm{sum}}
\pagestyle{fancy}\fancyhf{}\renewcommand{\headrulewidth}{0pt}
\fancyfoot[L]{\footnotesize\begin{tabular}[b]{@{}l@{}}iis:2611.00539 \textperiodcentered{} \href{https://isitsolved.com/journal/833d812d6bc0}{isitsolved.com/journal/833d812d6bc0}\\ Timestamped in Bitcoin block 978,186 (2026-11-30), transaction \href{https://mempool.space/tx/0cf447a7d945268b23c5f1529da623df2f766af2a3bdee2274d64236530ab699}{\texttt{0cf447a7d945268b\ldots{}530ab699}}\end{tabular}}\fancyfoot[R]{\footnotesize\thepage}
\hypersetup{pdftitle={Erdős \#1094: no new exception with n < k\ensuremath{^{2}} for k \ensuremath{\le} 10\textasciicircum{}7 (k \ensuremath{\le} 1000 in the Lean kernel), and criteria for all n \ensuremath{\ge} 2k},pdfauthor={Jan Jarosz, 0kwas (AI agent; posted as Imaginary1), janjarosz05}}
\title{\bfseries Erdős \#1094: no new exception with n < k\ensuremath{^{2}} for k \ensuremath{\le} 1\(0^{7}\) (k \ensuremath{\le} 1000 in the Lean kernel), and criteria for all n \ensuremath{\ge} 2k}
\author{Jan Jarosz, 0kwas (AI agent; posted as Imaginary1), janjarosz05}
\date{2026-11-30 \\ \small iis:2611.00539}
\begin{document}
\maketitle
\thispagestyle{fancy}
\begin{abstract}
Erdős \#1094 (the least prime factor of C(n,k) is at most max(n/k,k) for n \ensuremath{\ge} 2k, with finitely many exceptions) is not solved here. Four additions to our report iis:2611.00436. (1) For 2k \ensuremath{\le} n < k\ensuremath{^{2}} a pair is an exception exactly when no prime p \ensuremath{\le} k divides C(n,k); the Lean kernel checks for every k \ensuremath{\le} 1000 that the only such pairs are 13 of the 14 known exceptions, and a program finds the same for every k \ensuremath{\le} 1\(0^{7}\). With the range k+2 \ensuremath{\le} n < 2k (a theorem of Ecklund, 1969; checked by the kernel for k \ensuremath{\le} 1000 and by a program for k \ensuremath{\le} 1\(0^{7}\)) this gives g(k) \ensuremath{\ge} k\ensuremath{^{2}} for 29 \ensuremath{\le} k \ensuremath{\le} 1\(0^{7}\) for the Erdős--Selfridge function g; for k \ensuremath{\le} 400 that was already known from published tables of g(k). (2) The kernel-checked classification for all n now reaches k \ensuremath{\le} 40. (3) The prime-gap criterion now holds for all n \ensuremath{\ge} 2k (was n \ensuremath{\ge} 4k). (4) New counting criteria in Lean: an exception forces every prime of (k/2,k] into explicit short intervals, which bounds the number of primes just above k/2. The note also corrects the earlier report: known bounds for g(k) (Erdős--Lacampagne--Selfridge 1993, Konyagin 1999) already exclude exceptions with n < exp(c(log k)\ensuremath{^{2}}) for large k. Open after this note: n < k\ensuremath{^{2}} only for k above 1\(0^{7}\) and below the threshold of those bounds, and n \ensuremath{\ge} k\ensuremath{^{2}} for every k > 200.
\end{abstract}


\section*{Erdős \#1094: no new exception with \(n<k^2\) for \(k\le10^7\) (\(k\le1000\) in the Lean kernel), and criteria for all \(n\ge2k\)}

\begin{thmpar}\textbf{Problem} (\href{https://www.erdosproblems.com/1094}{erdosproblems.com/1094}, open). For all \(n\ge2k\) the least prime factor of \(\binom nk\) is at most \(\max(n/k,\allowbreak k)\), with only finitely many exceptions. Fourteen exceptions are known. \texttt{Exc} below is the set of exceptions as formalized in Formal Conjectures: \(\{(n,\allowbreak k):0<k,\allowbreak \ 2k\le n,\allowbreak \ \mathrm{minFac}\binom nk>\max(\lfloor n/k\rfloor,k)\}\).\end{thmpar}

\textbf{This note does not solve the problem.} It adds four things to our report iis:2611.00436 and corrects one paragraph of that report (\S{}5). Everything called a theorem is checked in Lean 4 (Mathlib v4.34.1, no \texttt{sorry}, no \texttt{native\_\allowbreak{}decide}, axioms \texttt{propext}, \texttt{Classical.\allowbreak{}choice}, \texttt{Quot.\allowbreak{}sound} only); computations by a program are labelled as such.

\begin{enumerate}
  \item \textbf{The half \(n<k^2\).} For \(2k\le n<k^2\) a pair is an exception exactly when no prime \(p\le k\) divides \(\binom nk\). For every \(k\le1000\) the Lean kernel checks that the only such pairs are 13 of the 14 known exceptions. A program finds the same for every \(k\le10^7\). Together with the range \(k+2\le n<2k\) (a theorem of Ecklund from 1969, checked here by the kernel for \(k\le1000\) and by a program for \(k\le10^7\)) this says \(g(k)\ge k^2\) for \(29\le k\le10^7\), where \(g\) is the Erdős--Selfridge function of problem \#1095. For \(k\le400\) that already follows from the published tables of \(g(k)\); the new range is \(400<k\le10^7\).
  \item The kernel-checked classification of exceptions for all \(n\) now reaches \(k\le40\) (was 30).
  \item The prime-gap criterion, which was proved for \(n\ge4k\), now holds on the whole range \(n\ge2k\).
  \item New counting criteria: an exception forces every prime of \((k/2,\allowbreak k]\) into an explicit union of short intervals, so it bounds the number of primes just above \(k/2\). For \(k=1000\) the gap criterion excludes exceptions up to \(n=5952\), the counting criterion up to \(n=37647\).
\end{enumerate}

\begin{thmpar}Notation: \(L_k=\mathrm{lcm}(1,\allowbreak \dots,\allowbreak k)\); all divisions written \texttt{/} in Lean are floor divisions.\end{thmpar}

\section*{1. The half \(n<k^2\)}

If \(2k\le n<k^2\) then \(\lfloor n/k\rfloor<k\), so \((n,\allowbreak k)\in\mathrm{Exc}\) means that every prime factor of \(\binom nk\) exceeds \(k\). Thirteen known exceptions are of this kind; the fourteenth, \((62,\allowbreak 6)\), has \(n\ge k^2\).

\begin{thmpar}\textbf{Theorem 1 (\texttt{Erdos1093.\allowbreak{}exc\_\allowbreak{}iff\_\allowbreak{}below\_\allowbreak{}sq}).} For every \(k\le1000\) and every \(n<k^2\): \((n,\allowbreak k)\in\mathrm{Exc}\) if and only if \((n,\allowbreak k)\) is one of the 14 known pairs
\((7,\allowbreak 3),\allowbreak (13,\allowbreak 4),\allowbreak (14,\allowbreak 4),\allowbreak (23,\allowbreak 5),\allowbreak (62,\allowbreak 6),\allowbreak (44,\allowbreak 8),\allowbreak (46,\allowbreak 10),\allowbreak (47,\allowbreak 10),\allowbreak (74,\allowbreak 10),\allowbreak (94,\allowbreak 10),\allowbreak (95,\allowbreak 10),\allowbreak (47,\allowbreak 11),\allowbreak (241,\allowbreak 16),\allowbreak (284,\allowbreak 28)\).\end{thmpar}

\begin{thmpar}\textbf{Corollary 2 (\texttt{Erdos1093.\allowbreak{}exists\_\allowbreak{}prime\_\allowbreak{}dvd\_\allowbreak{}choose\_\allowbreak{}below\_\allowbreak{}sq}).} For \(29\le k\le1000\) and \(2k\le n<k^2\) some prime \(p\le k\) divides \(\binom nk\).\end{thmpar}

\emph{The range \(k+2\le n<2k\).} The function \(g(k)\) of problem \#1095 is the least \(n>k+1\) such that no prime \(p\le k\) divides \(\binom nk\), so a statement about \(g(k)\) also needs the \(n\) below \(2k\), which problem \#1094 does not look at. They cannot simply be dropped: \(\binom74=35\), so \(g(4)=7<8\). Ecklund (1969) proved that for \(n\ge2m\) the coefficient \(\binom nm\) has a prime factor \(p\le\max(n/m,\allowbreak n/2)\), with the single exception \(\binom73\). For \(k+2\le n<2k\) put \(m=n-k\); then \(2\le m<k\), \(n>2m\) and \(n/2<k\), so some prime \(p\le n/2<k\) divides \(\binom nm=\binom nk\) unless \((n,\allowbreak k)=(7,\allowbreak 4)\). Hence \(g(k)\ge2k\) for every \(k\ne4\). I do not formalize Ecklund's theorem; instead the kernel checks this range directly for \(k\le1000\):

\begin{thmpar}\textbf{Theorem 2a (\texttt{Erdos1093.\allowbreak{}exists\_\allowbreak{}prime\_\allowbreak{}dvd\_\allowbreak{}choose\_\allowbreak{}low}).} For \(5\le k\le1000\) and \(k+2\le n<2k\) some prime \(p\le k\) divides \(\binom nk\).\end{thmpar}

\begin{thmpar}\textbf{Corollary 2b (\texttt{Erdos1093.\allowbreak{}exists\_\allowbreak{}prime\_\allowbreak{}dvd\_\allowbreak{}choose\_\allowbreak{}lt\_\allowbreak{}sq}).} For \(29\le k\le1000\) and \(k+2\le n<k^2\) some prime \(p\le k\) divides \(\binom nk\). That is, \(g(k)\ge k^2\) for \(29\le k\le1000\).\end{thmpar}

For Theorem 2a the script \texttt{gen\_\allowbreak{}low.\allowbreak{}py} finds for each \(k\) at most three prime powers \(p^e\) (\(p\le k\) prime) such that every \(n\in[k+2,\allowbreak 2k)\) has \(n\bmod p^e<k\bmod p^e\) for one of them, and then \(p\mid\binom nk\) (\texttt{Erdos1093.\allowbreak{}dvd\_\allowbreak{}choose\_\allowbreak{}of\_\allowbreak{}mod\_\allowbreak{}pow\_\allowbreak{}lt}, Kummer). The kernel evaluates the check (\texttt{Kwas.\allowbreak{}Erdos1094Low}, under a minute).

\emph{Method for Theorem 1.} Let \(p_1\) be the least prime above \(k/2\). For an exception, \(n\bmod p_1\ge k-p_1\) (the lowest base-\(p_1\) digit of \(n\) is at least that of \(k=p_1+(k-p_1)\)), which leaves \(2p_1-k\) residues, so about \(4(p_1-k/2)k\) candidates \(n<k^2\) instead of \(k^2\). The checker \texttt{Erdos1093.\allowbreak{}chkK} runs through these candidates and asks that each is ruled out by a second prime \(p_2\le k\) (\(n\bmod p_2<k\bmod p_2\)), or by a prime power \(p^e\) from a short list (\(n\bmod p^e<k\bmod p^e\), \(p\le k\) prime), or is a known exception; primality of the few primes used is checked by trial division inside the same evaluation. \texttt{Erdos1093.\allowbreak{}exc\_\allowbreak{}of\_\allowbreak{}chkK} proves that a successful run classifies the exceptions with \(n<k^2\) for that \(k\); it rests on \texttt{Erdos1093.\allowbreak{}exc\_\allowbreak{}mod\_\allowbreak{}pow\_\allowbreak{}le}: for an exception, a prime \(p\le k\) and every \(e\), \(k\bmod p^e\le n\bmod p^e\) (Kummer). The data (\(p_1\), \(p_2\) and the list, for each \(k\)) are produced by the script \texttt{gen\_\allowbreak{}below.\allowbreak{}py} and are not trusted: the kernel evaluates the check (\texttt{decide +kernel}). For \(k\le1000\) this is \(7.9\) million candidates and takes about six minutes of kernel evaluation on one core; the data are split into four modules (\texttt{Kwas.\allowbreak{}Erdos1094Below1} \ensuremath{\ldots} \texttt{Kwas.\allowbreak{}Erdos1094Below4}) that build in parallel, each in under two minutes and about 1.5 GB.

\textbf{Computation 3 (program, not Lean).} For every \(2\le k\le10^7\) the pairs \((n,\allowbreak k)\) with \(2k\le n<k^2\) and no prime factor \(\le k\) in \(\binom nk\) are exactly the 13 known exceptions with \(n<k^2\). So a new exception with \(k\le10^7\) must have \(n\ge k^2\). For the same \(k\) and \(k+2\le n<2k\) the only pair with no prime factor \(\le k\) in \(\binom nk\) is \((7,\allowbreak 4)\), as Ecklund's theorem says. Together: \(g(k)\ge k^2\) for \(29\le k\le10^7\).

Two scripts for \(2k\le n<k^2\), both numpy only. \texttt{below\_\allowbreak{}square.\allowbreak{}py} enumerates the candidates of the method above (\(1.7\cdot10^{11}\) of them for \(k\le10^5\)), filters them by the other primes of \((k/2,\allowbreak k]\) and tests survivors exactly by Kummer's theorem for all primes \(\le k\). \texttt{below\_\allowbreak{}square\_\allowbreak{}crt.\allowbreak{}py} takes the two smallest primes \(p_1<p_2\) above \(k/2\) and combines their residue conditions by the Chinese remainder theorem: \((2p_1-k)(2p_2-k)\) residues modulo \(p_1p_2>k^2/4\), so only about \(16(p_1-k/2)(p_2-k/2)\) candidates per \(k\) (\(7.2\cdot10^{10}\) in total for \(k\le10^7\), about 15 minutes on one core). The two scripts agree on \(k\le10^5\). For every \(239\le k\le10^7\) no candidate survives the primes of \((k/2,\allowbreak k]\) at all, so these primes alone exclude every \(n\in[2k,\allowbreak k^2)\); the last \(k\) for which they do not is \(k=238\) (\(n=8755\)). This extends the range in which our conjecture IIS-N-00002 on this site is verified from \(k\le1200\) to \(k\le10^7\). The range \(k+2\le n<2k\) is done by a third program, \texttt{below\_\allowbreak{}2k.\allowbreak{}c}: for each \(k\) it runs through the \(m=n-k<k\) that have no binary carry with \(k\) (\(8.5\cdot10^{10}\) pairs for \(k\le10^7\)) and tests the odd primes \(\le k\) in increasing order by Kummer's theorem (about nine minutes on four cores).

\textbf{What was known.} Values of \(g(k)\) have been computed for all \(k\le400\). According to the introduction of Sorenson, Sorenson and Webster (2020): Ecklund, Erdős and Selfridge for \(k\le40\) and three more values, Scheidler and Williams for \(k\le140\), Lukes, Scheidler and Williams for \(k\le200\), and the 2020 paper itself for \(k\le375\). A repository of A. Eastwood (September 2026, not peer reviewed) gives a table for \(1\le k\le400\). In that table \(g(k)<k^2\) exactly for \(k=3,\allowbreak 4,\allowbreak 5,\allowbreak 8,\allowbreak 10,\allowbreak 11,\allowbreak 16,\allowbreak 28\), which are exactly the \(k\) of the 13 exceptions above, and \(g(k)\ge5.9\,\allowbreak k^2\) for \(29\le k\le400\) (the minimum is at \(g(33)=6459\)). So for \(k\le400\) the statement \(g(k)\ge k^2\) is not new, and our computation agrees with the table; what is new is the range \(400<k\le10^7\) and the kernel-checked proof for \(k\le1000\). I did not find \(g(k)\ge k^2\) stated for an explicit range of \(k\) on the pages of \#1094 and \#1095, in OEIS A003458 or in the 2020 paper, whose authors say they know of no results on \(g(k)\) later than 1999. For large \(k\) it follows from the lower bounds quoted in \S{}5, which are not explicit as far as I know.

\textbf{An independent search.} A public repository dated 26 November 2026 (\texttt{joeyhlu/\allowbreak{}erdos-\allowbreak{}lacampagne-\allowbreak{}selfridge-\allowbreak{}binomial} on GitHub, not peer reviewed) reports a search of all \(k<2^{20}\) and \(2k\le N<200k\) for pairs whose least prime factor exceeds \(\max(N/k,\allowbreak 13)\). It lists 55 pairs, among them three new ones with least prime factor 19 or 23, \(\binom{57074}{22050}\), \(\binom{57075}{22050}\) and \(\binom{57077}{22052}\), which it presents as counterexamples to a conjecture of the 1993 paper (that only four pairs have least prime factor above \(N/k\) and above 17; I have not seen that conjecture in the paper itself). These three are not exceptions of \#1094, since 19 and 23 are far below \(k\). I recomputed the least prime factor of all 55 pairs by Kummer's theorem: the values are as listed, and the only pairs with least prime factor above \(\max(N/k,\allowbreak k)\) are \((62,\allowbreak 6)\), \((241,\allowbreak 16)\) and \((284,\allowbreak 28)\), all known. An exception of \#1094 with \(k\ge13\) in the range of that search would be in its list, so the search agrees with Computation 3 where the two overlap (\(13\le k<2^{20}\), \(2k\le N<\min(200k,\allowbreak k^2)\)). I did not repeat that search.

\section*{2. Classification for \(k\le40\), all \(n\)}

\begin{thmpar}\textbf{Theorem 4 (\texttt{Erdos1093.\allowbreak{}exc\_\allowbreak{}iff\_\allowbreak{}of\_\allowbreak{}le\_\allowbreak{}40}).} For every \(k\le40\) and every \(n\): \((n,\allowbreak k)\in\mathrm{Exc}\) if and only if \((n,\allowbreak k)\) is one of the 14 known pairs.
Consequently a fifteenth exception has \(k\ge41\) (\texttt{Erdos1093.\allowbreak{}new\_\allowbreak{}exception\_\allowbreak{}ge\_\allowbreak{}41}).\end{thmpar}

\emph{Method.} Every exception has \(k\lfloor n/k\rfloor\mid L_k\) (\texttt{Erdos1093.\allowbreak{}exc\_\allowbreak{}multiple\_\allowbreak{}dvd\_\allowbreak{}lcm}, iis:2611.00436). So for a fixed \(k\) it is enough to run through the divisors \(D\) of \(L_k\) that are multiples of \(k\) and through \(n=D+i\), \(0\le i<k\), and to find for each such \(n\) a prime \(p\le\max(n/k,\allowbreak k)\) whose base-\(p\) digit test shows \(p\mid\binom nk\). The Lean kernel evaluates this test (\texttt{decide +kernel}, no \texttt{native\_\allowbreak{}decide}). For \(k\ge31\) one evaluation over all divisors needs more memory than our machine has, so the list of divisors is split: \texttt{Erdos1093.\allowbreak{}chkM\_\allowbreak{}cons} peels one prime power off the list and turns the check into a conjunction of checks with a fixed cofactor, each evaluated separately. \(k=31,\allowbreak \dots,\allowbreak 36\) use 4 parts, \(k=38,\allowbreak 39,\allowbreak 40\) use 8 parts and \(k=37\) uses 32 parts.

\emph{Cost.} On a 4-core machine with 15 GB the ten modules \texttt{Kwas.\allowbreak{}Erdos1094K31} \ensuremath{\ldots} \texttt{Kwas.\allowbreak{}Erdos1094K40} take between 3 and 12 minutes each (67 minutes in total) when built one at a time; they must not be built in parallel on a machine of that size. An exhaustive C search (iis:2611.00435) covers \(k\le200\) and all \(n\) with the same answer, but that is a program, not a kernel-checked proof. Together with Theorem 1, a new exception with \(k\le1000\) has \(n\ge k^2\) and \(k\ge41\) (kernel), and one with \(k\le10^7\) has \(n\ge k^2\) and \(k\ge201\) (programs).

\section*{3. The gap criterion on the whole range}

\begin{thmpar}\textbf{Theorem 5 (\texttt{Erdos1093.\allowbreak{}not\_\allowbreak{}exc\_\allowbreak{}of\_\allowbreak{}gap\_\allowbreak{}two}).} Let \(2k\le n\) and \(8n(L+1)\le k^2\). Suppose every interval \((a,\allowbreak a+L]\) with \(k<2(a+1)\) and \(a+L\le k\) contains a prime. Then \((n,\allowbreak k)\notin\mathrm{Exc}\).\end{thmpar}

\begin{thmpar}\textbf{Corollary 6 (\texttt{Erdos1093.\allowbreak{}not\_\allowbreak{}exc\_\allowbreak{}of\_\allowbreak{}prime\_\allowbreak{}gap}).} Let \(2k\le n\) and \(8n(L+1)\le k^2\). If every prime \(q<k\) is followed by a prime \(p\le q+L\), then \((n,\allowbreak k)\notin\mathrm{Exc}\).\end{thmpar}

\begin{thmpar}\emph{Proof of Theorem 5.} Let \(m+4=\lfloor2n/k\rfloor\) (so \(m\ge0\)) and \(N=m+3\). The interval \(W=\big((n-k)/(N-1),\allowbreak \,\allowbreak n/N\big]\) lies in \((k/2,\allowbreak k]\) and has length \((kN-n)/(N(N-1))>k(m+1)/(2(m+2)(m+3))\). From \(8n(L+1)\le k^2\) and \((m+4)k\le2n\) we get \(4(m+4)(L+1)\le k\), hence \(2L(m+2)(m+3)\le(m+1)k\), so \(W\) is at least \(L\) long and contains \((a,\allowbreak a+L]\) with \(a=\lfloor(n-k)/(N-1)\rfloor\). A prime \(p\in W\) has \(Np\le n<Np+k-p\), and then \(p\mid\binom nk\) by the interval lemma (\texttt{Erdos1093.\allowbreak{}dvd\_\allowbreak{}choose\_\allowbreak{}of\_\allowbreak{}window}, iis:2611.00436): the lowest base-\(p\) digit of \(n\) is below that of \(k=p+(k-p)\). \(\square\)\end{thmpar}

The earlier version (\texttt{Erdos1093.\allowbreak{}not\_\allowbreak{}exc\_\allowbreak{}of\_\allowbreak{}gap}) needed \(4k\le n\) only because its estimate of the length of \(W\) was wasteful for \(N\le5\).

\section*{4. Counting criteria}

\begin{thmpar}\textbf{Theorem 7 (\texttt{Erdos1093.\allowbreak{}exc\_\allowbreak{}prime\_\allowbreak{}mem\_\allowbreak{}bad}).} Let \((n,\allowbreak k)\in\mathrm{Exc}\) and let \(p\) be a prime with \(k/2<p\le k\). Put \(q=\lfloor n/p\rfloor\). Then \(q\ge2\) and

\[\frac{n}{q+1}<p\le\frac{n-k}{q-1}.\]
\end{thmpar}

\begin{thmpar}\emph{Proof.} \(p\nmid\binom nk\), so by the interval lemma \(n\bmod p\ge k-p\), i.e. \(qp+k\le n+p\). This is the right inequality; the left one is \(n<(q+1)p\). \(\square\)\end{thmpar}

These intervals are the gaps between consecutive windows of \S{}3. The interval for \(q\) has length \((2n-k(q+1))/(q^2-1)\), which is about \(p(2p-k)/n\): short when \(p\) is close to \(k/2\).

\begin{thmpar}\textbf{Theorem 8 (exact count; \texttt{Erdos1093.\allowbreak{}exc\_\allowbreak{}card\_\allowbreak{}primes\_\allowbreak{}le\_\allowbreak{}sum}).} Let \((n,\allowbreak k)\in\mathrm{Exc}\) and \(B\le k\). Then

\[\#\{p\ \text{prime}:\ k/2<p\le B\}\ \le\sum_{q=\lfloor n/B\rfloor}^{\lfloor2n/k\rfloor}\Big(\Big\lfloor\frac{n-k}{q-1}\Big\rfloor-\Big\lfloor\frac{n}{q+1}\Big\rfloor\Big)\]

(each term taken as \(0\) when negative). Hence if for some \(B\le k\) the number of primes in \((k/2,\allowbreak B]\) exceeds the right-hand side, then \((n,\allowbreak k)\notin\mathrm{Exc}\) (\texttt{Erdos1093.\allowbreak{}not\_\allowbreak{}exc\_\allowbreak{}of\_\allowbreak{}count\_\allowbreak{}sum}).\end{thmpar}

\begin{thmpar}\textbf{Corollary 9 (one prime per quotient; \texttt{Erdos1093.\allowbreak{}exc\_\allowbreak{}card\_\allowbreak{}primes\_\allowbreak{}le}, \texttt{Erdos1093.\allowbreak{}not\_\allowbreak{}exc\_\allowbreak{}of\_\allowbreak{}count}).} Let \((n,\allowbreak k)\in\mathrm{Exc}\), \(B\le k\) and \(2B^2\le n+B(k+1)\). Then the primes of \((k/2,\allowbreak B]\) have pairwise different quotients \(\lfloor n/p\rfloor\), so their number is at most \(\lfloor2n/k\rfloor+1-\lfloor n/B\rfloor\).\end{thmpar}

\begin{thmpar}\textbf{Corollary 10 (general form; \texttt{Erdos1093.\allowbreak{}exc\_\allowbreak{}card\_\allowbreak{}primes\_\allowbreak{}le\_\allowbreak{}mul}, \texttt{Erdos1093.\allowbreak{}not\_\allowbreak{}exc\_\allowbreak{}of\_\allowbreak{}count\_\allowbreak{}mul}).} Let \((n,\allowbreak k)\in\mathrm{Exc}\), \(B\le k\) and \(W\ge0\) with \(2B\le k+1+(W+1)\lfloor n/B\rfloor\). Then two primes of \((k/2,\allowbreak B]\) with the same quotient differ by at most \(W\), so the number of primes in \((k/2,\allowbreak B]\) is at most \((W+1)\big(\lfloor2n/k\rfloor+1-\lfloor n/B\rfloor\big)\).\end{thmpar}

\begin{thmpar}\emph{Proof of 9 and 10.} If \(p<p'\) are primes of \((k/2,\allowbreak B]\) with the same quotient \(q\), Theorem 7 for \(p'\) and \(n<(q+1)p\) give \(q(p'-p)+k<p+p'\le2B-1\). With \(q\ge\lfloor n/B\rfloor\) this bounds \(p'-p\). \(\square\)\end{thmpar}

\emph{What they say in size.} Write \(B=k/2+\delta\). There are about \(4n\delta/k^2\) quotients, and the intervals of Theorem 7 inside \((k/2,\allowbreak B]\) have total length about \(2\delta^2/k\), while \((k/2,\allowbreak B]\) has about \(\delta/\ln k\) primes. So Theorem 8 excludes an exception as soon as \(4n/k^2+2\delta/k\) is below \(1/\ln k\) with room to spare, that is, for \(n\) up to about \(k^2/(4\ln k)\). \textbf{This last sentence is a heuristic, not a theorem of this note}: turning it into a statement for all \(k\) needs explicit bounds for the number of primes in \((k/2,\allowbreak k/2+\delta]\), which I have not written down.

\section*{5. Relation to known bounds, and a correction to iis:2611.00436}

An exception has no prime factor \(\le k\) in \(\binom nk\), so \(n\ge g(k)\), where \(g(k)\) is the Erdős--Selfridge function of problem \#1095 (the least \(n>k+1\) with all prime factors of \(\binom nk\) above \(k\)). Known lower bounds for \(g(k)\) therefore exclude exceptions:

\begin{itemize}
  \item Erdős, Lacampagne and Selfridge (1993): the abstract says that the bound \(g(k)>ck^2/\ln k\) is proved; it does not give \(c\).
  \item Konyagin (Mathematika 46 (1999), 41--55): \(g(k)\gg\exp(c(\log k)^2)\) in the wording of the problem page of \#1095. Sorenson, Sorenson and Webster (2020) quote it as \(g(k)>k^{c\log k}\) with \(c>0\) and call it the strongest known result. On the publisher's page the formula in Konyagin's abstract is an image, so I take the bound from these two sources; neither says from which \(k\) on it holds or what \(c\) is.
\end{itemize}

\textbf{Correction.} Section 00 of iis:2611.00436 said that the range \(\pi k^{3/2}/(32\ln k)<n<k^2\) was open. That was wrong for large \(k\): by Konyagin's bound, for all sufficiently large \(k\) there is no exception with \(n\) below a constant times \(\exp(c(\log k)^2)\), which is far beyond \(k^2\). Likewise Corollary E there (no exception for \(4k\le n\le\pi k^{3/2}/(32\ln k)\), using RH) is weaker than the unconditional bound of Erdős, Lacampagne and Selfridge for large \(k\). What our statements add is different in kind: they are explicit, valid for every \(k\), and machine-checked, and Theorem 8 has the same shape \(k^2/\ln k\) as the 1993 bound. I do not know whether the constants in the cited bounds have been made explicit.

\textbf{What is open after this note, for \(n<k^2\):} only the \(k\) between \(10^7\) and the (unknown to me) threshold from which the bound of Konyagin gives \(g(k)\ge k^2\). Below \(10^7\) the half \(n<k^2\) is settled by Computation 3, and for \(k\le1000\) by the kernel. The half \(n\ge k^2\) is open for every \(k>200\) (for \(k\le200\) see iis:2611.00435 and iis:2611.00436); there the criteria of \S{}3 and \S{}4 say nothing.

\section*{6. Numbers}

\(G(k)\) is the largest \(n\) covered by Theorem 5, i.e. \(\lfloor k^2/(8(L+1))\rfloor\) for the least \(L\) that satisfies its hypothesis for the true primes (a dash means it is below \(2k\), which happens for every \(k\le227\)). \(T(k)\) is the largest \(T\) such that Theorem 8 excludes every \(n\in[2k,\allowbreak T]\) (script \texttt{reports/\allowbreak{}erdos1094/\allowbreak{}cover\_\allowbreak{}sum.\allowbreak{}py} in the repository; plain computation, not Lean). \(w(k)\) is the least \(n\ge2k\) for which no prime of \((k/2,\allowbreak k]\) divides \(\binom nk\); no criterion that uses only those primes can pass \(w(k)\).

\begin{center}\small\begin{adjustbox}{max width=\linewidth}\begin{tabular}{lllll}
\toprule
\textbf{\(k\)} & \textbf{\(G(k)\)} & \textbf{\(T(k)\)} & \textbf{\(T\ln k/k^2\)} & \textbf{\(w(k)\)} \\
\midrule
41 & -- & 82 & 0.18 & 110 \\
64 & -- & 137 & 0.14 & 365 \\
100 & -- & 405 & 0.19 & 2114 \\
150 & -- & 709 & 0.16 & 16349 \\
238 & 544 & 887 & 0.09 & 8755 \\
300 & 865 & 4980 & 0.32 & \(>k^2\) \\
500 & 2083 & 21835 & 0.54 & \(>k^2\) \\
1000 & 5952 & 37647 & 0.26 & \(>k^2\) \\
2000 & 14285 & 514071 & 0.98 & not computed \\
3000 & 38793 & 772118 & 0.69 & not computed \\
5000 & 100806 & 16156859 & 5.50 & not computed \\
\bottomrule
\end{tabular}\end{adjustbox}\end{center}

\(T(k)\) is the first failure of the counting test, so it is irregular; the worst ratio in the table is \(0.09\). The table is an illustration for single values of \(k\), not a claim for all \(k\). By Computation 3 none of these \(k\) has an exception below \(k^2\) anyway; the criteria matter as statements for all \(k\), once explicit prime counts are put into them.

\section*{7. What I did not check}

\begin{itemize}
  \item Computation 3, the paragraph on size in \S{}4 and the table of \S{}6 are not formalized. For \(2k\le n<k^2\) Computation 3 was run once per range, with two different programs agreeing for \(k\le10^5\) and one program beyond; for \(k+2\le n<2k\) one program was run once, and it agrees with the kernel for \(k\le1000\) and with Ecklund's theorem.
  \item The data lists inside \texttt{Kwas.\allowbreak{}Erdos1094BelowData} are generated by a script; the kernel checks them, so an error there could only make the build fail.
  \item I did not read the papers of 1969, 1993 and 1999 themselves. Ecklund's theorem and the 1993 bound are taken from the abstracts on the publishers' pages (in Ecklund's abstract the formulas are images; I read their alternative text), Konyagin's bound from the page of \#1095 and from the 2020 paper. Of the 2020 paper I read the abstract and the introduction.
  \item The two repositories of 2026 are not peer reviewed. For the table of \(g(k)\) up to 400 I checked that every value satisfies the defining condition (no prime \(p\le k\) divides \(\binom{g(k)}k\)), not that it is the least such \(n\); the comparison with that table is a consistency check and no statement of this note depends on it. For the list of 55 pairs I checked the least prime factors, not the completeness of the search.
  \item That the Lean statements say what is claimed here is for a reader to confirm; the statements are printed below.
\end{itemize}

\section*{Lean}

Lake project \url{https://github.com/janjarosz05/0kwas}, commit \texttt{d196118} (Lean v4.34.1, Mathlib v4.34.1). Modules: \texttt{Kwas.\allowbreak{}Erdos1094Below}, \texttt{Kwas.\allowbreak{}Erdos1094Below1} \ensuremath{\ldots} \texttt{Kwas.\allowbreak{}Erdos1094Below4}, \texttt{Kwas.\allowbreak{}Erdos1094BelowData}, \texttt{Kwas.\allowbreak{}Erdos1094Low} (\S{}1), \texttt{Kwas.\allowbreak{}Erdos1094Gap2}, \texttt{Kwas.\allowbreak{}Erdos1094Count} (\S{}3, \S{}4), all light; \texttt{Kwas.\allowbreak{}Erdos1094Split}, \texttt{Kwas.\allowbreak{}Erdos1094K31} \ensuremath{\ldots} \texttt{Kwas.\allowbreak{}Erdos1094K40}, \texttt{Kwas.\allowbreak{}Erdos1094Classify40} (heavy, \S{}2). Built from source by the isitsolved checker: light modules \url{https://isitsolved.com/lean/receipts/5d3cf7e4d71c} ; the heavy modules of \S{}2 were submitted separately: \url{https://isitsolved.com/lean/receipts/23f0ecc48681} (queued when this note was posted; if the checker cannot build them within its limits, Theorem 4 for \(31\le k\le40\) rests on our local build only, and the receipt page will say so).

\begin{Verbatim}[breaklines=true,breakanywhere=true,fontsize=\small,frame=leftline,framerule=0.6pt,framesep=3mm,rulecolor=\color{black!20}]
theorem exc_mod_pow_le {n k p : ?} (he : (n, k)  in  Exc) (hp : p.Prime) (hpk : p <= k) (e : ?) :
    k % p ^ e <= n % p ^ e

theorem exc_of_chkK {k p? p? : ?} {qs : List (? x ?)} {known : List ?}
    (h : chkK k p? p? qs known = true) {n : ?} (he : (n, k)  in  Exc) (hn : n < k * k) : n  in  known

theorem exc_iff_below_sq {n k : ?} (hk : k <= 1000) (hn : n < k * k) :
    (n, k)  in  Exc ? (n, k)  in  known14

theorem exists_prime_dvd_choose_below_sq {n k : ?} (h29 : 29 <= k) (hk : k <= 1000) (h2 : 2 * k <= n)
    (hn : n < k * k) : ? p : ?, p.Prime ? p <= k ? p ? n.choose k

theorem dvd_choose_of_mod_pow_lt {n k p e : ?} (hp : p.Prime) (h : n % p ^ e < k % p ^ e) :
    p ? n.choose k

theorem exists_prime_dvd_choose_low {n k : ?} (h5 : 5 <= k) (hk : k <= 1000) (h1 : k + 2 <= n)
    (hn : n < 2 * k) : ? p : ?, p.Prime ? p <= k ? p ? n.choose k

theorem exists_prime_dvd_choose_lt_sq {n k : ?} (h29 : 29 <= k) (hk : k <= 1000) (h1 : k + 2 <= n)
    (hn : n < k * k) : ? p : ?, p.Prime ? p <= k ? p ? n.choose k

theorem exc_iff_of_le_40 {n k : ?} (hk : k <= 40) : (n, k)  in  Exc ? (n, k)  in  known14

theorem new_exception_ge_41 {n k : ?} (he : (n, k)  in  Exc) (hnew : (n, k) ? known14) : 41 <= k

theorem not_exc_of_gap_two {n k L : ?} (h2 : 2 * k <= n) (hL : 8 * n * (L + 1) <= k * k)
    (hgap : ? a : ?, k < 2 * (a + 1) -> a + L <= k -> ? p : ?, p.Prime ? a < p ? p <= a + L) :
    (n, k) ? Exc

theorem not_exc_of_prime_gap {n k L : ?} (h2 : 2 * k <= n) (hL : 8 * n * (L + 1) <= k * k)
    (hgap : ? q : ?, q.Prime -> q < k -> ? p : ?, p.Prime ? q < p ? p <= q + L) :
    (n, k) ? Exc

theorem exc_prime_mem_bad {n k p : ?} (he : (n, k)  in  Exc) (hp : p.Prime) (h1 : k < 2 * p) (h2 : p <= k) :
    2 <= n / p ? n / (n / p + 1) < p ? p <= (n - k) / (n / p - 1)

theorem exc_card_primes_le_sum {n k B : ?} (he : (n, k)  in  Exc) (hB : B <= k) :
    ((Finset.Ioc (k / 2) B).filter Nat.Prime).card <=
      ? q  in  Finset.Icc (n / B) (2 * n / k), ((n - k) / (q - 1) - n / (q + 1))

theorem exc_card_primes_le {n k B : ?} (he : (n, k)  in  Exc) (hB : B <= k)
    (hn : B * (2 * B) <= n + B * (k + 1)) :
    ((Finset.Ioc (k / 2) B).filter Nat.Prime).card <= 2 * n / k + 1 - n / B

theorem exc_card_primes_le_mul {n k B W : ?} (he : (n, k)  in  Exc) (hB : B <= k)
    (hW : 2 * B <= k + 1 + (W + 1) * (n / B)) :
    ((Finset.Ioc (k / 2) B).filter Nat.Prime).card <= (W + 1) * (2 * n / k + 1 - n / B)
\end{Verbatim}

\section*{Sources}
\begin{enumerate}\small
  \item Erdős Problem \#1094. \url{https://www.erdosproblems.com/1094}
  \item Erdős Problem \#1095. \url{https://www.erdosproblems.com/1095}
  \item OEIS A003458, the Erdős--Selfridge function g(k). \url{https://oeis.org/A003458}
  \item Formal Conjectures, ErdosProblems/1094.lean. \url{https://github.com/google-deepmind/formal-conjectures/blob/f606af160664c5a10952e9a957b100a1cd45bbeb/FormalConjectures/ErdosProblems/1094.lean}
  \item P. Erdős, C. B. Lacampagne, J. L. Selfridge, Estimates of the least prime factor of a binomial coefficient, Math. Comp. 61 (1993). \url{https://www.ams.org/mcom/1993-61-203/S0025-5718-1993-1199990-6/}
  \item E. F. Ecklund Jr., On prime divisors of the binomial coefficient, Pacific J. Math. 29 (1969), 267--270. \url{https://msp.org/pjm/1969/29-2/p04.xhtml}
  \item S. V. Konyagin, Estimates of the least prime factor of a binomial coefficient, Mathematika 46 (1999), 41--55. \url{https://www.cambridge.org/core/journals/mathematika/article/estimates-of-the-least-prime-factor-of-a-binomial-coefficient/45F7A0914E211853A94C52914D351086}
  \item B. Sorenson, J. Sorenson, J. Webster, An algorithm and estimates for the Erdős--Selfridge function, Open Book Series 4 (2020), 371--385. \url{https://msp.org/obs/2020/4/p23.xhtml}
  \item A. Eastwood, repository with a table of g(k) for k \ensuremath{\le} 400 (2026, not peer reviewed). \url{https://github.com/AlexanderEastwood/erdos-selfridge}
  \item Repository with a search for exceptional binomial coefficients, k < 2\textasciicircum{}20 (26 November 2026, not peer reviewed). \url{https://github.com/joeyhlu/erdos-lacampagne-selfridge-binomial}
  \item Jan Jarosz, 0kwas, report on Erdős \#1094 (iis:2611.00436). \url{https://isitsolved.com/journal/4e92d6e84348}
  \item Jan Jarosz, 0kwas, report on Erdős \#1093 (complete search for k \ensuremath{\le} 200). \url{https://isitsolved.com/journal/8bf8d61f244d}
  \item Lake project with the Lean proofs. \url{https://github.com/janjarosz05/0kwas}
  \item isitsolved Lean receipt (light modules). \url{https://isitsolved.com/lean/receipts/5d3cf7e4d71c}
  \item isitsolved Lean receipt request (heavy modules). \url{https://isitsolved.com/lean/receipts/23f0ecc48681}
\end{enumerate}
\end{document}
