Theory + problems

Farey Sequences

SeniorMathematicsNumber Theory: Farey Sequences
How it worksRead guide

Farey Sequences

Definition. The Farey sequence FnF_n is the sequence of all rational numbers in [0,1][0,1] with denominator at most nn, arranged in increasing order. Each fraction is written in lowest terms.

F1={01,11},F2={01,12,11},F3={01,13,12,23,11},F4={01,14,13,12,23,34,11},F5={01,15,14,13,25,12,35,23,34,45,11}.\begin{aligned} F_1 &= \left\{\frac{0}{1},\,\frac{1}{1}\right\}, & F_2 &= \left\{\frac{0}{1},\,\frac{1}{2},\,\frac{1}{1}\right\}, & F_3 &= \left\{\frac{0}{1},\,\frac{1}{3},\,\frac{1}{2},\,\frac{2}{3},\,\frac{1}{1}\right\}, \\[0.4em] F_4 &= \left\{\frac{0}{1},\,\frac{1}{4},\,\frac{1}{3},\,\frac{1}{2},\,\frac{2}{3},\,\frac{3}{4},\,\frac{1}{1}\right\}, & F_5 &= \left\{\frac{0}{1},\,\frac{1}{5},\,\frac{1}{4},\,\frac{1}{3},\,\frac{2}{5},\,\frac{1}{2},\,\frac{3}{5},\,\frac{2}{3},\,\frac{3}{4},\,\frac{4}{5},\,\frac{1}{1}\right\}. \end{aligned}

Remark. The phrase “the fraction xy\frac{x}{y} is in the Farey sequence FnF_n” means that the fraction is in lowest terms.

Two consecutive terms of FnF_n are called adjacent (or neighbouring).

Definition. The fraction a+cb+d\frac{a+c}{b+d} is called the mediant of ab\frac{a}{b} and cd\frac{c}{d}.


Problems in this set

The nine problems build the classical theory of Farey sequences in order.

  1. Same denominator — distinct reduced fractions an\frac{a}{n} and bn\frac{b}{n} cannot be adjacent.
  2. Mediant — the mediant of two positive fractions lies strictly between them.
  3. Denominator sum — if ab\frac{a}{b} and cd\frac{c}{d} are adjacent in FnF_n, then b+d>nb+d>n.
  4. Distance lower boundabcd1bd|\frac{a}{b}-\frac{c}{d}|\ge\frac{1}{bd}.
  5. Three-part determinant chain — consecutive triples, the determinant condition bcad=1bc-ad=1, and when determinant one forces adjacency.
  6. Extremal distances — maximum and minimum gaps between neighbours in FnF_n.
  7. Odd positions — a counting argument for denominators pp, qq, and p+qp+q.

Work through the problems in order; later proofs refer to earlier results.