Library/Number Theory/Farey Sequences

Farey Sequences

Senior
Overview
Senior

The Farey sequence FnF_n lists every rational in [0,1][0,1] with denominator at most nn, in lowest terms, in increasing order.

Examples:

F1={01,11},F2={01,12,11},F3={01,13,12,23,11}.\begin{aligned} F_1 &= \left\{\tfrac{0}{1},\,\tfrac{1}{1}\right\}, & F_2 &= \left\{\tfrac{0}{1},\,\tfrac{1}{2},\,\tfrac{1}{1}\right\}, & F_3 &= \left\{\tfrac{0}{1},\,\tfrac{1}{3},\,\tfrac{1}{2},\,\tfrac{2}{3},\,\tfrac{1}{1}\right\}. \end{aligned}

Two neighbouring terms of FnF_n are adjacent. The mediant of ab\frac{a}{b} and cd\frac{c}{d} is a+cb+d\frac{a+c}{b+d}.

Key facts proved in the problem set below:

  • Distinct reduced fractions with the same denominator cannot be adjacent.
  • The mediant always lies strictly between its parents.
  • Adjacent fractions satisfy b+d>nb+d>n and bcad=1bc-ad=1.
  • Neighbouring distances are bounded between 1n(n1)\frac{1}{n(n-1)} and 1n\frac{1}{n}.