Math Detours · Grade 8 · Around the corner · 21

The mediant

Add tops and add bottoms: (a + c)/(b + d) always lands between a/b and c/d. Why, and the tree that lists every fraction once.

Name ____________________Date ____________

Tonight's idea

Adding tops and bottoms is the classic wrong way to add fractions, but it does something useful. For positive \(b\) and \(d\), the mediant of \(\tfrac ab\) and \(\tfrac cd\) is \(\tfrac{a + c}{b + d}\), and it always lies between them. Scores of \(5/8\) and \(3/4\) on two tests combine to \(8/12\) overall, which must sit between them.

Why. Suppose \(\tfrac ab \lt \tfrac cd\). Multiply both sides by \(bd\), which is positive: \(ad \lt bc\), so \(bc - ad > 0\). Now subtract:

\[\frac{a+c}{b+d} - \frac ab = \frac{b(a+c) - a(b+d)}{b(b+d)} = \frac{bc - ad}{b(b+d)} > 0.\]

The same subtraction the other way gives \(\tfrac cd - \tfrac{a+c}{b+d} = \tfrac{bc - ad}{d(b+d)} > 0\). Both gaps are positive. The proof never asked for lowest terms: \(\tfrac 24\) and \(\tfrac 13\) have mediant \(\tfrac 37\), while \(\tfrac 12\) and \(\tfrac 13\) have mediant \(\tfrac 25\). Different answers, both in between.

Now build with it. Start with \(\tfrac 01\) and \(\tfrac 11\), insert the mediant between every pair of neighbours, and repeat: the Stern–Brocot tree. Every fraction between 0 and 1 appears exactly once, already in lowest terms.

0/11/1 1/2 1/32/3 1/42/53/53/4 1/52/73/83/74/75/85/74/5 each fraction is the mediant of its nearest neighbours above
Four rows of the tree. \(\tfrac 38\) is the mediant of \(\tfrac 13\) and \(\tfrac 25\), the fractions just left and right of it in the rows above.

Watch one: \(\tfrac 58\) and \(\tfrac 34\)

Cross-multiply to order them: \(5 \cdot 4 = 20\) and \(8 \cdot 3 = 24\), so \(\tfrac 58 \lt \tfrac 34\) and \(bc - ad = 4\). The mediant is \(\tfrac{8}{12} = \tfrac 23\). The formula predicts the two gaps:

\[\frac 23 - \frac 58 = \frac{4}{8 \cdot 12} = \frac{1}{24}, \qquad \frac 34 - \frac 23 = \frac{4}{4 \cdot 12} = \frac{1}{12}.\]

Check directly: \(\tfrac{16}{24} - \tfrac{15}{24} = \tfrac{1}{24}\) and \(\tfrac{9}{12} - \tfrac{8}{12} = \tfrac{1}{12}\). The mediant sits closer to the fraction with the bigger denominator, which is the one that carries more weight: eight questions count for more than four.

Your turn

  1. Find the mediant of \(\tfrac 13\) and \(\tfrac 12\), then the mediant of your answer and \(\tfrac 12\). Convert all four fractions to decimals and check that each mediant landed between its parents.
  2. Write out the fifth row of the tree: the sixteen fractions that fill the gaps in the fourth row, in order. Where does \(\tfrac{5}{12}\) land, and which two fractions is it the mediant of?
  3. For neighbours \(\tfrac ab \lt \tfrac cd\) in any row of the tree, \(bc - ad = 1\). Check this for \(\tfrac 13, \tfrac 38\) and for \(\tfrac 38, \tfrac 25\). Then show algebraically that if \(bc - ad = 1\), the mediant has \(bc - ad = 1\) with each of its parents too, so the property survives forever.
  4. Use exercise 3 to explain why every fraction in the tree is automatically in lowest terms. Hint: suppose a whole number \(g\) divides both \(a + c\) and \(b + d\). What else must it divide?

Stretch: the smallest denominator in a gap

\(\tfrac 58\) and \(\tfrac 23\) have \(bc - ad = 1\). Find the fraction with the smallest denominator strictly between them. Then prove it in general: if \(\tfrac ab \lt \tfrac pq \lt \tfrac cd\) and \(bc - ad = 1\), show \(q \ge b + d\). Hint: \(bp - aq\) is a positive whole number.

Answers

  1. \(\tfrac{1+1}{3+2} = \tfrac 25\), then \(\tfrac{2+1}{5+2} = \tfrac 37\). Decimals: \(0.333 \lt 0.4 \lt 0.5\) and \(0.4 \lt 0.4286 \lt 0.5\).
  2. \(\tfrac16, \tfrac29, \tfrac3{11}, \tfrac3{10}, \tfrac4{11}, \tfrac5{13}, \tfrac5{12}, \tfrac49, \tfrac59, \tfrac7{12}, \tfrac8{13}, \tfrac7{11}, \tfrac7{10}, \tfrac8{11}, \tfrac79, \tfrac56\). \(\tfrac5{12}\) sits between \(\tfrac25\) and \(\tfrac37\), and \(\tfrac{2+3}{5+7} = \tfrac5{12}\).
  3. \(3 \cdot 3 - 1 \cdot 8 = 1\) and \(8 \cdot 2 - 3 \cdot 5 = 1\). Algebra: the mediant \(\tfrac{a+c}{b+d}\) against the left parent \(\tfrac ab\) gives \(b(a+c) - a(b+d) = bc - ad = 1\); against the right parent, \(c(b+d) - d(a+c) = bc - ad = 1\). Each new pair of neighbours inherits the value 1 from the pair it came from.
  4. If \(g\) divides \(a + c\) and \(b + d\), it divides \(b(a+c) - a(b+d)\), which equals 1 by exercise 3. So \(g = 1\): the top and bottom share no factor, which is what lowest terms means. (No fraction appears twice either: each row is in strictly increasing order, because every mediant lands strictly between its two neighbours, so a new entry can never equal an old one.)

Stretch. \(8 \cdot 2 - 5 \cdot 3 = 1\), and the mediant \(\tfrac{7}{11}\) is the answer: \(0.625 \lt 0.636 \lt 0.667\), and checking denominators 1 to 10 finds nothing in the gap. Proof: \(\tfrac pq > \tfrac ab\) means \(bp - aq > 0\), and these are whole numbers, so \(bp - aq \ge 1\); likewise \(cq - dp \ge 1\). Multiply the first by \(d\), the second by \(b\), and add: \(bdp - adq + bcq - bdp = (bc - ad)q = q \ge b + d\). So nothing with a denominator below \(b + d = 11\) fits, and the mediant is the simplest fraction in the gap. Lists of all fractions with denominator up to \(n\), in order, are called Farey sequences, and neighbours in them always satisfy \(bc - ad = 1\).

← PreviousNext: Strategy stealing →