Draw the Ford circle corresponding to the fraction r.
Use FareySequence to generate ordered fractions for the Ford circles.
Try Buy Mathematica is available on Windows, macOS, Linux & cloud »
Questions? Comments? Contact a Wolfram expert »