Adding Fractions, and the Mistake

Set two fractions. The tool adds them over a common denominator, and separately adds the numerators and the denominators β€” the classic mistake. Watch where each answer falls on the line.

Loading interactive simulation...

The classic mistake is a real operation, and it never misses 🖖

Add 3/4 and 2/5 the wrong way β€” tops together, bottoms together β€” and you get 5/9. That is not the sum, which is 23/20. But look at where 5/9 lands: at 0.5556, between 0.4 and 0.75. It is called the mediant, and it lands between the two fractions every single time. The proof is one subtraction: the mediant minus a/b works out to (bc βˆ’ ad) over b(b+d), and c/d minus the mediant is the same (bc βˆ’ ad) over d(b+d). Same sign, both times. So the mediant is above one fraction exactly when it is below the other, and it has nowhere to go but the gap. Drag the numbers anywhere you like; it stays in the shaded band.

A common denominator is not a ritual, it is a unit 🖖

You cannot add three sheep to four hours. Halves and thirds are units in the same way, which is why 1/2 + 1/3 is not 2/5 β€” the pieces are different sizes and the count means nothing until they are not. Sixths are the first size both a half and a third can be cut into exactly, and that is all the common denominator is: 3/6 + 2/6 = 5/6. This also says why the mistake feels so natural. Adding the tops and the bottoms is counting, honestly done β€” five pieces out of nine β€” but it counts pieces of two different sizes as if they were the same, so what comes out is a proportion of the whole pile rather than a total.

Keep making the mistake and you generate every fraction there is 🖖

Press Filling the whole gap. Start with 0 and 1, put the mediant between them β€” that is 1/2 β€” then do it again between each new neighbouring pair, and again. Four rounds gives 15 fractions. Not one of them can be cancelled down, and not one appears twice. Keep going and every fraction between 0 and 1 turns up exactly once, each in lowest terms, each arriving in its own place: this is the Stern–Brocot tree, published in 1858 by a German number theorist and in 1861 by a French clockmaker who was looking for gear ratios. Achille Brocot needed a fraction close to a ratio he could not build, with teeth he could actually cut, and the tree hands it to you.

Problem solved in full

  1. Is the mediant the simplest fraction between the two? It always lands in the gap. Whether anything with a smaller denominator gets there first is a different question, and the answer is not always.

    1. Start with the sum, done properly. Twenty is the first denominator both quarters and fifths fit into, so the two fractions become fifteen twentieths and eight twentieths.

    2. Now the mistake. Five over nine, and the panel agrees: it sits inside the gap, as it must.

    3. Why it must. Subtract the mediant from each end and the same quantity, bc - ad, appears on top both times. One denominator is b(b+d) and the other d(b+d), both positive, so the two differences carry the same sign and the mediant is squeezed between the two fractions.

    4. But look for something simpler. A half is in the gap too, and its denominator is 2 against the mediant's 9. So for this pair the mediant is not the simplest fraction between them, and it is not close.

    5. The quantity that decides it is the one already on the table. For three quarters and two fifths it is seven, not one.

    6. Try a pair where it is one. A third and a half: the mediant is two fifths, and nothing with a denominator below five lies between them. That is the whole condition.

    Answer

    The mediant is the simplest fraction between the two exactly when |bc - ad| = 1 β€” when the pair are neighbours in a Farey sequence. Swept over every pair with denominators up to 25: it holds for all 798 neighbouring pairs, and fails for 111,992 of the 119,636 pairs that are not. The tool never prints bc - ad, and that single number separates the case where the schoolroom mistake is the best possible answer from the case where it is merely a correct one.

Learning path

Writing a number down

Leads to Repeating decimals

Example problems

  • 3/4 and 2/5 - The sum is 23/20. Adding the tops and the bottoms gives 5/9, which is 0.5556 β€” between 2/5 and 3/4 rather than beyond them.
  • Halves and thirds - Halves and thirds are different units, and 6 is the first one both can be written in β€” which is why they add to 5/6. The mediant 2/5 is the simplest fraction between a half and a third.
  • Same bottom - 1/5 and 2/5 add to 3/5. Here the mediant 3/10 is exactly half the sum β€” when the denominators match, adding tops and bottoms averages instead.
  • When it is not the simplest - 2/7 and 3/7 give the mediant 5/14. It lies between them, as it always does β€” but it is not the simplest fraction that does, and that is where the neat rule stops.
  • Filling the whole gap - Start at 0 and 1 and insert mediants four times: 15 fractions appear, every one of them already in lowest terms, and none of them twice.