--- title: "The typical excess in Erdős problem 295" author: "OpenAI Codex, with research direction by Jacob Branch" date: "28 November 2026 · Preprint for review" --- ## Result Let $k(N)$ be the fewest distinct integers $a\ge N$ whose reciprocals sum to $1$. Erdős asked whether $D(N)=k(N)-(e-1)N$ tends to infinity. We obtain the typical order of this excess. **Theorem.** For every $\varepsilon>0$ there is $c_\varepsilon>0$ such that $$ \#\{2\le N\le x:D(N)\le c_\varepsilon\log N\} \ll_\varepsilon x^{1/2+\varepsilon}. \tag{1} $$ There is also an absolute $C$ for which $D(N)\le C\log N$ for all $N\ge2$. In particular $D(N)$ lies between two positive multiples of $\log N$ on a set of natural density one. All logarithms are natural. The upper bound applies the uniform short-expansion theorem of OpenAI to the residual in the classical construction of Erdős and Straus. We also obtain a restriction on shape. For almost every $N$, every shortest representation contains a chain of at least $c\log N$ denominators between $\exp(\sqrt N)$ and $\exp(N)$, each larger than the square of its predecessor. Section 7 gives a version for narrower ranges. Erdős's original question asks about every sufficiently large $N$. Estimate (1) allows an infinite exceptional set. [Original problem](https://www.erdosproblems.com/295) · [OpenAI, Theorem 1.1](https://github.com/openai/math/blob/7ef5c0cc5ca4b0e072b7a050fca09ab24bc6fa3a/preprints/Short-Egyptian-fractions-September-25-2026/Short-Egyptian-fractions-September-25-2026.pdf) **Idea.** A short solution uses most of a consecutive block of denominators. It can have only a few very large denominators. Two nearby cutoffs share much of their blocks. We measure the size of the exact denominator that survives when the blocks are subtracted. Its upper and lower bounds have the same dependence on the distance between cutoffs. This lets us count exceptions even when the number of large denominators grows with $N$. **Antecedents.** Theorem 4 of tienxion gives $O_{C,\varepsilon}(x^{17/30+\varepsilon})$ exceptions for each fixed additive allowance $C$. We use that author's harmonic loss identity, multiset classification of tail sizes, and comparison of tail sums at nearby starts. The final estimate of §8 there contains $(\log x)^{2q}$ for a tail of up to $q$ terms. When $q$ is proportional to $\log x$, that factor alone exceeds every fixed power of $x$. Our argument bounds the denominator of the block difference on the same scale from above and below, using prime factors of endpoints that may be composite. It groups tail terms by cumulative height and charges the subdivisions to the number of terms in each group. These changes make the sharper multiset count in (11) useful at logarithmic allowances. [tienxion, Theorem 4 and §8](https://github.com/tienxion/ai-erdos/blob/f617fef443d3cdd94d23243f664d4c3b4d990881/erdos295_reviewed_lower_bounds.pdf) ## 1. Consecutive blocks Write $s(U)=\sum_{u\in U}1/u$ and write $\operatorname{den}(v)$ for the positive reduced denominator of a rational $v$, with $\operatorname{den}(0)=1$. For each $N$ let $J_N=[N,M_N]\cap\mathbb Z$ be the shortest initial block with $s(J_N)\ge1$. Integral comparison gives $$ \sum_{j=N}^M1/j=\log(M/N)+O(1/N),\qquad 1\le s(J_N)<1+1/M_N,\qquad M_N=eN+O(1). \tag{2} $$ For large $N$ the primes in $(M_N/2,M_N]$ belong to $J_N$ and have no second multiple there. Each divides $\operatorname{den}(s(J_N))$. Indeed, after clearing the least common multiple, only the summand from that prime is nonzero modulo the prime. By the prime number theorem there is an absolute $\gamma>0$ such that $$ \log\operatorname{den}(s(J_N))\ge\gamma N. \tag{3} $$ Fix a large integer $X$ and work in $X\le N\le2X$. Set $F(0)=0$ and $$ F(d)=d\log(eX/d)\quad (00$ with $0<\delta<1$ such that, for $N'=N+d\le2X$ and $1\le d\le\delta X$, writing $\Delta=s(J_N)-s(J_{N'})$, $$ \log\operatorname{den}(\Delta)\le A F(d),\qquad \log\operatorname{den}(\Delta)\ge a F(d) \quad\text{if } d\ge\sqrt X . \tag{4} $$ For the upper bound, the blocks overlap. The endpoints $M_N$ increase strictly: removing $1/N$ exceeds the overshoot in (2). Their difference consists of two signed intervals, one of length $d$ and the other of length at most $ed+O(1)$. For $m$ consecutive positive integers ending at $v$ their least common multiple divides $$ \binom{v}{m}\operatorname{lcm}(1,\ldots,m). \tag{5} $$ This divisibility follows from Farhi's interval theorem and his binomial-row identity. With $n=v-m+1$ and $k=m-1$, the multiple in his Theorem 2.8 is $n\binom{v}{m-1}$ times the least common multiple of row $m-1$. These factors are $m\binom{v}{m}$ and $\operatorname{lcm}(1,\ldots,m)/m$, respectively. [Farhi, Theorem 2.8](https://www.numdam.org/item/10.1016/j.crma.2005.09.019.pdf) · [Binomial-row identity](https://arxiv.org/abs/0906.2295) To prove (5), take a prime power $p^b$ dividing one of the integers. The short least common multiple supplies all powers through $\min(b,\lfloor\log_p m\rfloor)$. For each remaining level $p^j$, the numerator product for the binomial contains a multiple of $p^j$, while $m!$ has none at that level. At all other levels the binomial valuation contribution is nonnegative, because $m$ consecutive integers contain at least $\lfloor m/p^j\rfloor$ multiples of $p^j$. This supplies the missing exponent. Using $\binom{v}{m}\le(ev/m)^m$ and Chebyshev's estimate $\log\operatorname{lcm}(1,\ldots,m)=O(m)$ proves the upper bound for both intervals, since $v\le6X$. An empty interval contributes $1$ to the common denominator. For the lower bound, let $P$ be the product of the distinct primes $p>4d$ dividing some integer in $[N,N+d)$. The logarithm of $\binom{N+d-1}{d}$ is at least $d\log(X/d)$. Each prime contributes at most $\log(2X)$, since at each prime-power level the binomial valuation gains at most one. Chebyshev's prime-count estimate gives $\pi(4d)\log(2X)=O(d)$ for $d\ge\sqrt X$. For $p>4d$ we have $p^2>6X$, so its contribution is at most $\log p$. Hence $\log P\ge d\log(X/d)-O(d)$. Every prime $p\mid P$ divides $\operatorname{den}(\Delta)$. On the lower endpoint interval it occurs exactly once, at $pu$. On the upper interval $(M_N,M_{N'}]$ it occurs at most once, since its length is $ed+O(1)<4d$. If the upper multiple $pv$ exists then $00$. If any term was capped, its contribution $2w_j$ alone is at least $X$. Choose a sufficiently large absolute constant $K$. Start a group at every index $i$ for which $h=w_i>K S_{i-1}$. A group runs up to the next group start or the end of the list. Terms before the first group form a base. Repeated values cannot be divided by a group boundary. No term preceding a group start was capped: a capped term has the largest possible label, and a later label could not pass the group test. Thus the sum of the *actual* logarithms of the terms preceding index $i$ is at most $2\sum_{jKH$. The only rational satisfying these two bounds is zero. It follows that $s(B)+s(Y)=s(B')+s(Y')$ as well. The latter equality expresses $\Delta$ using just the two errors $E_N,E_{N'}$ and the lower tails. Therefore $\log\operatorname{den}(\Delta)\le 2H+2S_{i-1}$. If also $F(d)>K S_{i-1}$, then $d\ge\sqrt X$, since $F(\sqrt X)=o(H)$. The lower bound in (4) gives a contradiction for $aK>4$. In summary, $$ F(d)\le h/K \quad\Longrightarrow\quad s(G)=s(G')\ \text{ and }\ F(d)\le K S_{i-1}. \tag{9} $$ For identical starts (9) holds by our choice of one representation per start. All choices of $K$ above are absolute. Increase it if needed so $K\gamma'\ge1$. ## 4. Counting the starts Let $\Phi(v)=F^{-1}(\min(v,X))$ for $v>0$. The function $F$ increases on $[0,X]$. For $01$. There are at most $1+\log_2 X$ possible labels in general. Write $L_0$ for the number available in the chosen family. Including lengths $0$ through $Q$ gives at most $\binom{L_0+Q}{Q}$ profiles by counting multisets. For $Q=0$ the family is empty for large $X$ by (3) and (7). For $Q\ge1$ the full exceptional count in $[X,2X]$ is at most $$ H C_1^{Q+1}\binom{L_0+Q}{Q} \ \le\ H C_1^{Q+1} \left(\frac{e(L_0+Q)}{Q}\right)^Q. \tag{11} $$ Since $Q=\lceil A_0(1+b\log X)\rceil$, for each fixed $b$ the limsup as $X\to\infty$ of the logarithm of the factor after $H$, divided by $\log X$, is $O(b\log(2/b))$ as $b\downarrow0$. Given $\varepsilon$, choose $b$ sufficiently small, absorb $(\log X)^3$ and sum over dyadic intervals. Taking $c_\varepsilon=b/2$ covers $\log N\le2\log X$. This proves (1). ## 5. Upper bound and consequences The block ending at $M_N-1$ has a positive deficit $r=1-s([N,M_N-1])\le1/M_N$. Its reduced denominator $v$ divides $\operatorname{lcm}(1,\ldots,M_N-1)$, so $\log v=O(N)$. The short Egyptian fractions theorem expresses $r$ as a sum of $O(1+\log\log v)$ distinct positive unit fractions, with a uniform constant. Each has denominator at least $M_N$, by positivity. They can therefore be appended to the block. Its length is $(e-1)N+O(1)$ by (2), giving $D(N)\le C\log N$. This deduction also applies if the first denominator is required to equal $N$ (apart from harmless small $N$). [OpenAI, formalization of the short-expansion input](https://github.com/openai/math/blob/7ef5c0cc5ca4b0e072b7a050fca09ab24bc6fa3a/lean/docs/025.md) · [Bloom and van Doorn, exposition](https://arxiv.org/abs/2611.33241) More explicitly, the coefficient in §5 of the exposition gives $\limsup_{N\to\infty}D(N)/\log N\le16/\log 2$, since $\log\log v\le\log N+O(1)$. [Bloom and van Doorn, §5](https://arxiv.org/html/2611.33241v1#S5) The mean excess up to $x$ is consequently of order $\log x$. The uniform lower bound $D(N)\ge-O(1)$ follows from (2). It controls the exceptional terms when summing (1), for instance with $\varepsilon=1/4$ on $[x/2,x]$. The profile argument also controls where exceptional cutoffs can occur. For example, for almost every $N$, every cutoff $n$ from $N$ through $N+N^{0.99}$ satisfies $D(n)>c\log n$ for a fixed $c>0$. The proof keeps the covering intervals in §4 and bounds how many starting positions can reach them. [Companion proof, Theorem 3](local-estimates.pdf) **The inverse problem.** In Erdős problem 284, $f(k)$ is the largest possible smallest denominator in an expansion of $1$ into exactly $k$ terms. Write $a=e-1$. Then $k/a-f(k)$ is $O(\log k)$ for all large $k$ and lies between two positive multiples of $\log k$ outside $O_\varepsilon(x^{1/2+\varepsilon})$ lengths $k\le x$, with the lower multiple depending on $\varepsilon$. Indeed $f(k)\ge n$ exactly when $k(n)\le k$, for $n\ge2$: repeatedly split the largest term using $1/d=1/(d+1)+1/(d(d+1))$. The uniform bounds on $k(n)$ give the first assertion. If $f(k)\ge (k-b\log k)/a$, choose $n=\lceil(k-b\log k)/a\rceil$. Then $D(n)\le b\log k$, and this map from $k$ to $n$ has bounded multiplicity since the derivative of $(k-b\log k)/a$ tends to $1/a$. Estimate (1) applies for small $b$. [Original inverse problem](https://www.erdosproblems.com/284) **Other fixed rational targets.** The same result holds for the minimum length of a sum equal to any fixed rational $\rho>0$, with baseline $(e^\rho-1)N$ and constants depending on $\rho$. In (2) cross $\rho$ in place of $1$. For (3) take a fixed closed prime band strictly between $\max(1,e^\rho/2)N$ and $e^\rho N$. In (4) choose $\delta_\rho$ small enough for overlap, and use primes $p>K_\rho d$ with $K_\rho$ larger than both $2e^\rho+2$ and $\sqrt{3 e^\rho}+1$. Their squares exceed both blocks for $d\ge\sqrt X$. Take $T$ larger than both blocks by a fixed factor in (6), and include the fixed denominator of $\rho$ when clearing (8) and the final positive deficit. All remaining estimates have the same form. ## 6. How many extremely large denominators are necessary? For a representation $U$ define $D_U=|U|-(e-1)N$. Fix $A>0$, $0<\alpha<1$ and $\varepsilon>0$. There is $c>0$ such that the number of starts $N\le x$ admitting **any** representation $U$ with both $$ D_U\le A\log N,\qquad \#\{y\in U:y>\exp(N^\alpha)\}\le c\log N \tag{12} $$ is $O_{A,\alpha,\varepsilon}(x^{\max(1/2,\alpha)+\varepsilon})$. In particular, take $\alpha=1/2$ and $\varepsilon<1/2$. On a density-one set, **every** shortest representation has between two positive constants times $\log N$ denominators exceeding $\exp(\sqrt N)$. Section 5 guarantees the existence of such short representations when $A$ is chosen large enough. The upper bound on the count follows from (6) with $D_U\le A\log N$. Tienxion's Theorem 1 and Corollary 1.2 force at least one denominator beyond a stretched-exponential cutoff for these lengths. A lower bound on the product of the denominators can be satisfied by a single large factor. [Earlier product and maximum bounds](https://github.com/tienxion/ai-erdos/blob/f617fef443d3cdd94d23243f664d4c3b4d990881/erdos295_reviewed_lower_bounds.pdf) **Proof.** On $X\le N\le2X$, choose one witness $U$ to (12) at each start that admits one. The cardinality and edit estimates of §2 use only the bound on $|U|$ and apply to this choice. Start with the core up to $20X$. By (6), $O_A(\log X)$ terms lie above $20X$. Enlarge the core to $B=U\cap[N,T]$ with $T=\exp((2X)^\alpha)$. Absorbing the intermediate terms multiplies a common denominator for the edit by at most $T^{O_A(\log X)}$. The original small edits cost $O_A(\sqrt{X\log X}\log X)$ in its logarithm. Thus $$ \log\operatorname{den}\bigl(s(J_N)-s(B)\bigr) \le O_A\bigl(\sqrt{X\log X}\log X+(\log X)\log T\bigr). \tag{13} $$ Since $T\ge\exp(N^\alpha)$, the remaining tail has at most $2c\log X$ terms. Set $\beta=\max(1/2,\alpha)$ and $H=X^\beta(\log X)^3$. Then $F(\sqrt X)=o(H)$ and $H=o(X)$. Inequality (13) gives (7) with this $H$, so (3) gives (8) for the remaining tail. In §§3–4 these two bounds, the stated size conditions on $H$, and the upper bound $Q$ on the number of remaining terms are the only inputs from §2. Use (11) with $Q=\lceil2c\log X\rceil$ and choose $c$ sufficiently small for $\varepsilon$. Summing the dyadic estimates proves (12). The choice of one bad witness per start accounts for the assertion about every representation. The same calculation gives information closer to the exponential scale. For fixed $\lambda>0$ use $T=\exp(2X/(\log X)^{1+\lambda})$, which exceeds $\exp(N/(\log N)^{1+\lambda})$ on this interval. By (13) we may take $H=C_A X/(\log X)^\lambda$ for sufficiently large $X$. A remaining tail height is between $\log T$ and $X$ after capping, so only $O_\lambda(\log\log X)$ dyadic labels can occur. For $Q=\lceil2c\log\log X\rceil$ the last two factors in (11) together are at most $(\log X)^{O_\lambda(c\log(2/c))+o(1)}$. Choosing $c$ small gives $O_{A,\lambda}(x/(\log x)^{\lambda/2})$ exceptional starts. Outside them every representation with $D_U\le A\log N$ has at least $c\log\log N$ denominators above $\exp(N/(\log N)^{1+\lambda})$. ## 7. A chain of denominators inside a prescribed range **Theorem.** Fix $A>0$, $1/2\le\alpha<\beta\le1$ and $\varepsilon>0$. There is a $c>0$ such that, with at most $O_{A,\alpha,\beta,\varepsilon}(x^{1-\beta+\alpha+\varepsilon})$ exceptional cutoffs $N\le x$, every representation with $D_U\le A\log N$ contains distinct denominators $$ \exp(N^\alpha)y_i^2,\qquad r\ge c\log N . \tag{14} $$ The order of the length is sharp. After $r-1$ squarings the logarithm grows by at least $2^{r-1}$, whereas the ratio of the permitted endpoint logarithms is $N^{\beta-\alpha}$. For example, the theorem applies between $\exp(\sqrt N)$ and $\exp(N^{3/4})$, even though the representation can use arbitrarily large denominators outside this range. **Localizing the pair comparison.** Write $u=(2X)^\alpha$ and $v=X^\beta$ for $X\le N\le2X$. Absorb all terms with $\log y\le u$ into the core. By (13) we can use $H=X^\alpha(\log X)^3$ for large $X$. Keep the middle terms $u<\log y0$. This follows from $\binom ns\le(en/s)^s$ and the monotonicity of $s\log(eM/s)$ for $s\le M$, with $M$ a sufficiently large multiple of $\log X$. Multiplying by the number of initial sets, choosing $b$ small, and summing over dyadic $X$ gives the stated exceptional count. Outside these exceptions every admissible list occupies more than $b\log X$ levels. Indeed, at each cutoff that admits a sparse list we can choose that list as the witness just counted. Discard the final entry, losing at most one level. Take one actual denominator from every other occupied middle level. Two chosen levels have labels $w,w'$ with $w'\ge4w$. The first actual height is below $2w$ and the next is at least $w'$. Hence $y_{i+1}>y_i^2$. Every chosen denominator is in the required range since $N^\alpha\le u$ and $v\le N^\beta$. This proves (14). The chain can skip denominators. There is also a conclusion about **consecutive** denominators of the full list. For some constants $c',\eta>0$ depending on the parameters of (14), at least $c'\log N$ consecutive pairs inside the same range satisfy $d_{j+1}>d_j^{1+\eta}$. Indeed, (6) bounds the total number of denominators there by $B_A\log N$. The $r-1$ disjoint chains of adjacent gaps from $y_i$ to $y_{i+1}$ therefore use at most $B_A\log N$ gaps altogether. At least half use at most $M=\lceil4B_A/c\rceil$ gaps. Since the ratio $\log y_{i+1}/\log y_i$ exceeds two, one adjacent ratio in each such chain exceeds $2^{1/M}$. Take $\eta=2^{1/M}-1$. **An explicit consequence.** Except for $O(x^{5/8})$ cutoffs $N\le x$, every shortest representation contains a chain as in (14) entirely inside $(\exp(\sqrt N),\exp(N))$ of length at least $(\log N)/2500$ for all sufficiently large $N$. The estimate supplies no numerical starting cutoff. We give the constants so that the size claim can be checked. Integral comparison gives $e(N-1)\le M_N4$. For sufficiently large $N$ every shortest list has $D_U\le24\log N$ by §5. The block of its length has at most $26\log X$ more terms than $J_N$, and its upper endpoint is at most $6X$. Therefore $s(I)-1\le27\log X/X$, and $1/L-1/(20X)>1/(10X)$ in (6). Thus the number of middle terms plus the final entry is at most $512\log X$ for large $X$. The number of labels is at most $2\log X$. For a group with $s'$ levels, $S_j/h\le(2K)^{s'}\prod(1+m)$. Its bin count is at most $1+4K^4(S_j/h)^2$, so a constant $C=2^{65}$ per level works in (15), with base prefactor $2KH$. Take $b=1/1024$. After the factor $H$, the coefficient of $\log X$ in the logarithm of the sparse-profile bound is at most $$ b\bigl(65\log 2+\log(2e/b)+\log(512e/b)+2\log(1+512/b)\bigr)+o(1)<1/8.$$ Here each factor is increasing with the number of levels before evaluation at $b\log X$. The strict margin absorbs the powers of $\log X$. With $\alpha=1/2$ and $\beta=1$, this gives $O(X^{5/8})$ bad starts on $[X,2X]$. Discarding one label and taking alternating levels leaves at least $(\log N)/2500$ terms for large $X$. ## References and verification - H. D. Ruderman, P. Erdős and E. G. Straus, problem E2232 and solution, *American Mathematical Monthly* **78** (1971), 302–303. [Original solution](https://doi.org/10.2307/2317539) - P. Erdős and R. L. Graham, *Old and New Problems and Results in Combinatorial Number Theory*, Monographies de L'Enseignement Mathématique **28** (1980), pp. 34–35. [Authors' book](https://mathweb.ucsd.edu/~ronspubs/80_11_number_theory.pdf) - tienxion, *Quantitative obstructions for nearly shortest Egyptian fractions*, revised 5 September 2026, Theorems 1 and 4 and §8. [Research note](https://github.com/tienxion/ai-erdos/blob/f617fef443d3cdd94d23243f664d4c3b4d990881/erdos295_reviewed_lower_bounds.pdf) - OpenAI, *Short Egyptian fractions*, 25 September 2026, Theorem 1.1. T. F. Bloom and W. van Doorn, *Optimal bounds for the length and number of unit fraction representations*, arXiv:2611.33241 (2026), give a human exposition. [OpenAI preprint](https://github.com/openai/math/blob/7ef5c0cc5ca4b0e072b7a050fca09ab24bc6fa3a/preprints/Short-Egyptian-fractions-September-25-2026/Short-Egyptian-fractions-September-25-2026.pdf) · [Exposition](https://arxiv.org/abs/2611.33241) **Status and attribution.** This is a research proof for external review. Jacob Branch directed the investigation. OpenAI Codex derived the argument and used additional Codex agents to challenge the proof and check prior work. We have not established priority across the full literature. Lean checks (5), the endpoint arithmetic, the exact rational cancellation used in (9), the inverse estimate (10), the denominator cost of enlarging the core in (13), the finite counting induction conditional on its pair rule and costs, and the arithmetic for repeated heights in (15). The asymptotic estimates and their complete assembly remain a written proof awaiting human review.