Number

Three unit fractions for every four over n

Two neighbouring fractions in the tree always differ by a unit fraction, so stepping down the tree writes any fraction as a sum of them — four over n in at most four steps. Erdős and Straus asked in 1948 whether three always suffice. Three identities settle every n except those leaving remainder 1 on division by 24, a search settles every one anyone has tried, and nobody has a proof.

Worth reading first: Every fraction, exactly once · How evenly the fractions spread.

Every fraction, exactly once built the Stern–Brocot tree from one operation, the mediant, and one invariant. Any two fractions that are neighbours at some stage of the construction, a/ba/b and c/dc/d with a/b<c/da/b < c/d, satisfy bc−ad=1bc - ad = 1. That invariant is why every fraction in the tree is already in lowest terms, and two matrices that generate the tree turned it into the statement that a product of matrices has determinant one.

There is a third way to read it. If bc−ad=1bc - ad = 1, then

cd−ab=bc−adbd=1bd.\frac{c}{d} - \frac{a}{b} = \frac{bc - ad}{bd} = \frac{1}{bd}.

Neighbouring fractions differ by a unit fraction — a fraction with numerator one. That makes the tree a machine for one of the oldest problems in arithmetic: writing a fraction as a sum of unit fractions, the way Egyptian scribes did four thousand years ago.

The tree writes 4/17 as four unit fractions, and a search finds three. Left-neighbour chain 4/17, 3/13, 2/9, 1/5, 0/1, gaps 1/221, 1/117, 1/45, 1/5; three-term decomposition 1/5 + 1/30 + 1/510.
Fig. 1 The fraction 4/17 and its chain of left neighbours 3/13, 2/9, 1/5, 0/1: each gap is a unit fraction, 1/221, 1/117, 1/45 and 1/5, and the four add up to 4/17. Below the magnified line, a search finds the three fractions 1/5 + 1/30 + 1/510.

The figure applies it to 4/174/17. Its left neighbour in the tree, the closest fraction below it with a smaller denominator, is 3/133/13, and 4/17−3/13=1/2214/17 - 3/13 = 1/221. The left neighbour of 3/133/13 is 2/92/9, and the gap is 1/1171/117; then 1/51/5, with gap 1/451/45; then 0/10/1, with gap 1/51/5. Adding the four gaps back up gives

417=15+145+1117+1221.\frac{4}{17} = \frac15 + \frac1{45} + \frac1{117} + \frac1{221}.

Every fraction can be taken apart this way, and the parts are always distinct unit fractions, because the denominators strictly decrease along the chain.

The search below the line finds a shorter decomposition of the same number: 4/17=1/5+1/30+1/5104/17 = 1/5 + 1/30 + 1/510, three unit fractions instead of four. In 1948 Paul Erdős and Ernst Straus asked whether this is always possible: is 4/n4/n, for every whole number n≥2n \geq 2, a sum of three unit fractions? The tree gives four. The question is whether three are always enough, and it is still open.

Neighbours differ by a unit fraction

Neighbouring fractions differ by a unit fraction. The Farey fractions of order 5, 11 of them, with each gap 1/(bd): 1/5, 1/20, 1/12, 1/15, 1/10, 1/10, 1/15, 1/12, 1/20, 1/5.
Fig. 2 The fractions between 0 and 1 with denominator at most 5. Each neighbouring pair a/b < c/d has bc − ad = 1, so the gap between them, written above each arch, is the unit fraction 1/(bd).

The identity is the same one that how evenly the fractions spread used for the Farey sequences, the lists of all fractions with denominator up to a bound. In the Farey sequence of order 5 there are eleven fractions, and the ten gaps between neighbours are 1/5, 1/20, 1/12, 1/15, 1/10, 1/10, 1/15, 1/12, 1/20 and 1/5 — every one a unit fraction, every denominator the product of the two neighbours’ denominators. The arches are the semicircles of the arcs a line crosses, and the gap under each is the unit fraction the tree assigns to it.

Adding the gaps from 0 up to any fraction writes it as a sum of unit fractions, but wastefully: reaching 4/54/5 by adding every gap takes nine. The chain of left neighbours is the efficient version. From a/ba/b, the left neighbour of smallest-possible difference — the one with the largest denominator below bb — is reached in one jump, and from there the next. Each jump lowers the numerator — the left neighbour of a/ba/b is c/dc/d with c=(ad−1)/bc = (ad - 1)/b, which is less than aa because dd is less than bb — so the chain from 4/n4/n takes at most four jumps, and the decomposition has at most four terms.

The chain is a consequence of the tree’s structure, not of any cleverness about 4/n4/n. The left neighbour of a/ba/b is found by solving ad≡1(modb)ad \equiv 1 \pmod b for the largest dd below bb, which is how the figures compute it. That is the same congruence that places a/ba/b in the tree: the tree is a record of which fractions are neighbours, and a decomposition into unit fractions is a walk through that record.

Four terms, two, and the greedy rule

How many unit fractions 4/n takes: by the tree, greedily, and at fewest. Odd n from 5 to 101: the tree's chain uses 2 or 4 terms, the greedy rule 2 to 4, and the fewest possible is 2 on 34 and 3 on 15.
Fig. 3 For each odd n from 5 to 101, the number of unit fractions used for 4/n by the tree’s chain, by the greedy rule, and at the fewest possible: green two, blue three, orange four.

For odd nn — even nn reduce to smaller cases, as the identities below show — the tree’s chain has a rigid pattern. When nn leaves remainder 3 on division by 4, the left neighbour of 4/n4/n is 1/((n+1)/4)1/((n+1)/4) directly, and the decomposition has two terms:

4n=1(n+1)/4+1n(n+1)/4.\frac4n = \frac{1}{(n+1)/4} + \frac{1}{n(n+1)/4}.

When nn leaves remainder 1, the chain passes through 3/m3/m, 2/m′2/m' and 1/m′′1/m'' on its way down, and the decomposition has four terms. The top row of the figure alternates 4, 2, 4, 2 accordingly.

The second row is the oldest method on record. Fibonacci described it in 1202, and J. J. Sylvester proved in 1880 that it always terminates: take the largest unit fraction that fits, subtract it, and repeat. For 4/174/17 it takes 1/51/5 first, leaving 3/853/85, then 1/291/29, leaving 2/24652/2465, then 1/12331/1233, and finally 1/30393451/3039345 — four terms, with the denominators roughly squaring at each step. On these 49 values of nn the greedy rule uses four terms eight times, three on others, two on the rest. Like the tree, it can need four. Its last denominators grow so fast that the figures compute them with integers of unlimited size.

The third row is the fewest possible, found by searching every decomposition. It is never more than three. It is two on 34 of the 49 values — every nn that leaves remainder 3 on division by 4, and some others — and three on the remaining 15. The gap between the second and third rows is the content of the conjecture. Neither the tree nor the greedy rule finds the three; something else does, and for each nn in the figure, a search can always find it.

Identities that settle whole classes

The natural way to prove the conjecture is by formula: find an expression for 1/x+1/y+1/z1/x + 1/y + 1/z that works for a whole class of nn at once. Two observations make that approach powerful.

The first is that a solution for nn gives a solution for every multiple of nn. If 4/a=1/x+1/y+1/z4/a = 1/x + 1/y + 1/z, then dividing by bb gives 4/(ab)=1/(bx)+1/(by)+1/(bz)4/(ab) = 1/(bx) + 1/(by) + 1/(bz). So it is enough to settle prime nn, and in particular even nn follow from n=2n = 2, where 4/2=1/1+1/2+1/24/2 = 1/1 + 1/2 + 1/2, and multiples of 3 follow from 4/3=1/1+1/4+1/124/3 = 1/1 + 1/4 + 1/12.

Which remainders mod 24 an identity settles. The 24 remainders of n mod 24: even and multiples of 3 reduce to smaller n; remainders 3 mod 4, 2 mod 3 and 5 mod 8 are settled by identities; only 1 mod 24 is left open.
Fig. 4 The 24 remainders of n on division by 24: even n and multiples of 3 reduce to smaller cases, and three identities settle every other remainder except 1.

The second is that simple identities settle most remainders. For n≡3(mod4)n \equiv 3 \pmod 4, the two-term decomposition above, with its first term split as 1/k=1/(k+1)+1/(k(k+1))1/k = 1/(k+1) + 1/(k(k+1)), gives three. For n≡2(mod3)n \equiv 2 \pmod 3,

4n=1n+1(n+1)/3+1n(n+1)/3,\frac4n = \frac1n + \frac{1}{(n+1)/3} + \frac{1}{n(n+1)/3},

which is checked by adding the right-hand side: (n+1)+3n+3n(n+1)=4n\frac{(n+1) + 3n + 3}{n(n+1)} = \frac{4}{n}. For n≡5(mod8)n \equiv 5 \pmod 8, writing k=(n+3)/4k = (n+3)/4,

4n=1k+1n(n+3)/8+1n(n+3)/4.\frac4n = \frac1k + \frac{1}{n(n+3)/8} + \frac{1}{n(n+3)/4}.

The figure checks each identity on every nn of its class up to 5,000. A prime that escapes all three must leave remainder 1 on division by 4, 1 on division by 3, and 1 on division by 8 — so remainder 1 on division by 24. That class, the orange cell, is where every hard case lives.

The hard primes

How many ways 4/n splits into three unit fractions. Counts of three-term decompositions of 4/n for n from 2 to 1000, up to 5004; the fewest above 100 is 6, at n = 193, a prime ≡ 1 (mod 24).
Fig. 5 The number of ways to write 4/n as 1/x + 1/y + 1/z with x ≤ y ≤ z, for every n from 2 to 1,000 on a logarithmic scale: grey for every n, orange for the primes that leave remainder 1 on division by 24.

Counting every decomposition for every nn up to 1,000 shows what the identities predict. The counts grow with nn — up to 5,004 ways for the most composite numbers, which inherit decompositions from each of their factors — but the primes that leave remainder 1 on division by 24 sit along the bottom of the cloud. Above 100, the fewest ways of all belong to 193, with six. These primes are not unsolvable; they are only the ones where solutions are scarce, because no identity hands them one and no factor passes one down.

Louis Mordell pushed the identities further in 1967, by working modulo 840 rather than 24. His identities settle every nn except those leaving one of six remainders on division by 840: 1, 121, 169, 289, 361 and 529. Those six numbers are 121^2, 11211^2, 13213^2, 17217^2, 19219^2 and 23223^2 — squares — and the pattern is not a coincidence. A theorem of Andrzej Schinzel shows that no identity of this polynomial kind can cover a class of nn that are squares modulo the identity’s modulus, so the approach by identities cannot finish the job, however large a modulus is tried.

The hard primes: 4/p for p ≡ 1 (mod 24). 89 primes p ≡ 1 (mod 24) up to 6000, with three-term decomposition counts from 6 to 64; 16 lie in Mordell's six square classes mod 840.
Fig. 6 The 89 primes up to 6,000 that leave remainder 1 on division by 24, with the number of three-term decompositions of 4/p. The 16 in Mordell’s six square classes mod 840 are orange.

The last figure counts decompositions for every prime up to 6,000 in the hard class, 89 of them. Every one has at least six decompositions, and the counts drift upwards with pp, the sixteen primes in Mordell’s square classes sitting a little lower than the rest. Nothing in the figure suggests a prime with none. Searches by computer have confirmed the conjecture for every nn up to 101710^{17}, and in 1970 Robert Vaughan proved that the exceptions, if any exist, are extremely rare: the number of nn up to NN for which it fails is a vanishing fraction of NN, smaller than NN divided by any fixed power of log⁡N\log N.

Why the tree cannot do it alone

The tree supplies decompositions mechanically, and the conjecture asks for something the tree’s mechanism cannot see. A chain of left neighbours takes a fixed path determined by 4/n4/n’s position in the tree. To use three terms instead of four, a decomposition has to jump: the three-term solution for 4/174/17 begins with 1/51/5, as the tree’s does, and then replaces the tree’s three remaining gaps, 1/45, 1/117 and 1/221, with the two gaps 1/30 and 1/510. On the magnified line in the first figure, 1/30 carries the remainder past both 2/92/9 and 3/133/13, to a point that is not a neighbour of anything in particular.

That point is 1/5+1/30=7/301/5 + 1/30 = 7/30, and its denominator, 30, has nothing to do with 17. The search found it by trying every possibility. This is the general picture: three-term solutions exist in abundance for most nn, but they come from arithmetic accidents — a convenient factorisation of n+1n+1, or of n+3n+3, or of some other expression — rather than from a structure that the tree, or any single identity, can provide for every nn. The fractions that beat every smaller one were exactly those the tree’s path picks out; the fractions an Egyptian decomposition needs are the ones its path skips.

The contrast with three circles that touch and are not the largest is worth noticing. There a greedy rule turned out to be exactly optimal for every triangle, and the obvious structured alternative was wrong. Here the greedy rule and the structured alternative, the tree, both use four terms where three would do, and the best decompositions are found only by search. Greediness is right in one problem and wasteful in the other, and nothing about either problem announces which — the same lesson as the order a graph’s vertices are coloured in, where the greedy rule is perfect for some orders and arbitrarily bad for others.

What a solution for a prime looks like

The decompositions that the search finds for a prime are not shapeless, and their shape explains both why they are plentiful and why they are hard to guarantee. For p=17p = 17 there are four: 1/5+1/30+1/5101/5 + 1/30 + 1/510, 1/5+1/34+1/1701/5 + 1/34 + 1/170, 1/6+1/15+1/5101/6 + 1/15 + 1/510, and 1/6+1/17+1/1021/6 + 1/17 + 1/102. In every one, either one or two of the three denominators is a multiple of 17 — 510 alone in the first, 34 and 170 in the second — and never none and never all three. The same holds for 73 and for 193, and it holds for every prime: if no denominator were divisible by pp, the sum 1/x+1/y+1/z1/x + 1/y + 1/z would have a denominator free of pp and could not equal 4/p4/p, and if all three were, the sum would be at most 3/p3/p.

So the decompositions of 4/p4/p fall into two families, according to whether one denominator or two carries the factor pp. In each family, a solution amounts to finding whole numbers that satisfy a single multiplicative condition — a divisor of some expression in pp lying in a particular residue class — and that is a question about the factorisation of numbers like p+3p + 3 or p+7p + 7, or of products of them. For most primes such a divisor exists many times over. For a prime in the hard class, the residue class needed is one that the small expressions refuse to hit, and the search has to go further out before a suitable divisor turns up. That is why the hard primes sit low in the counts, and why, so far, they always have a few solutions rather than none.

The two families are also the reason the problem is a question about primes in residue classes. Which primes have a divisor of the right kind is the same sort of question as which primes a quadratic form takes, where the answer for x2+y2x^2 + y^2 is a congruence — and where, for slightly more complicated forms, no congruence suffices. The Erdős–Straus conjecture for a given prime asks for one of infinitely many such conditions to hold. Each condition is easy to test and none is known to hold for every prime.

Why four, and not five

The question is asked for numerator 4 because smaller numerators are easy. Every 2/n2/n is a sum of two unit fractions — 2/n=1/((n+1)/2)+1/(n(n+1)/2)2/n = 1/((n+1)/2) + 1/(n(n+1)/2) for odd nn — which is the formula behind the table of 2/n2/n decompositions in the Rhind papyrus, written about 1550 BC. Every 3/n3/n is a sum of at most three, by a similar argument. For 4 the cheap arguments stop working on the class of 1 mod 24, and that is where the conjecture sits.

Wacław Sierpiński asked the same question for numerator 5: is 5/n5/n always a sum of three unit fractions? It is also open, with the same pattern — identities settle most classes, searches settle every nn tried, and a class of squares remains. The general conjecture that m/nm/n is a sum of three unit fractions for all large enough nn, for every fixed mm, is also open. The question with 4 is the first of an infinite family, and the hardest-looking one has the easiest statement.

Even a single case can be surprisingly expensive to settle by hand. The sum that steps over every whole number showed that a run of consecutive unit fractions never adds up to a whole number, and one structural reason — a single number in the run divisible by a higher power of 2 than any other — settles every case at once. The decompositions of 4/n have no such structure: they are scattered, with no visible rule for which xx works, and the only reliable way to find one for a given prime in the hard class is to try values of xx until one does. That the search has never failed is the evidence; that it has never been explained is the problem.

What the figures show and do not

The figures compute the tree’s chain of left neighbours exactly, the greedy expansion in integers of unlimited size, and every three-term decomposition by exhaustive search, for each nn shown. They check the three identities on every nn in their classes up to 5,000, which is a check of the algebra, already proved by adding fractions. They establish the counts for nn up to 1,000 and for the hard primes up to 6,000. Mordell’s list of six classes, Schinzel’s theorem about squares, Vaughan’s bound and the verification to 101710^{17} are results from the literature; the figure marks which primes fall in Mordell’s classes, and does not reprove why the others are covered.

Still open: three unit fractions for every n

Whether 4/n4/n is a sum of three unit fractions for every n≥2n \geq 2 is open. The Erdős–Straus conjecture is settled for every nn outside six classes modulo 840, for every nn up to 101710^{17}, and for all but a vanishing fraction of nn in general. What is missing is an argument for the primes that leave remainder 1 on division by 24 — specifically those in Mordell’s six square classes — that does not reduce to searching.

The obstruction is understood. Schinzel’s theorem rules out the identities that settle everything else, so a proof has to use something that a polynomial formula cannot: the multiplicative structure of the particular prime, the existence of a suitable divisor of some number built from it. Christian Elsholtz and Terence Tao showed in 2013 that the number of decompositions of 4/p4/p, averaged over primes, grows like a power of log⁡p\log p — so solutions become more plentiful, not less, as pp grows, and the counts in the last figure drift upwards as that predicts. An average is not a guarantee for each prime, and turning plenty on average into at least one every time is the step nobody has found.