Text

The mediant of the fractions ab\frac{a}{b} and cd\frac{c}{d} is a+cb+d\frac{a+c}{b+d} (it is how the Stern–Brocot tree is built). Compute the mediant of 25\frac{2}{5} and 37\frac{3}{7} and check that it lies between the two.