The arcs a line crosses on its way to a number
Worth reading first: Two matrices that generate the tree · The fractions that beat every smaller one.
Writing the Stern–Brocot tree as matrices ended on a picture it did not draw. The two matrices generate a group of transformations of the upper half-plane, and that group has a picture — a tessellation — of which the tree is one corner.
The picture is simple to describe. Take every pair of fractions that are neighbours in the Farey sense, and join each pair by a semicircle standing on the number line.
The arcs a line crosses on its way down to a number are the steps of the descent towards it. The figure finds the crossed arcs by sweeping all 115 for the ones whose ends straddle the number, finds the descent’s intervals separately by taking mediants, and requires the two lists to agree term by term. The turns and the continued fraction are read off the arcs and checked against the descent and against the number’s own expansion.
Arcs that never cross
Two fractions are neighbours when — the condition that made every fraction appear once, and the condition the matrices turned into a determinant. The figure checks each arc it draws twice: the determinant is one, and no fraction with a denominator at most the larger of the two lies strictly between them.
The first thing the picture shows is that the arcs never cross, and the reason is a fact about the intervals. Two intervals between Farey neighbours are either nested or have no interior point in common — they never overlap partway. An interval between neighbours is exactly an interval the descent passes through, and the descent’s intervals are made by repeatedly splitting an interval at its mediant, so any two of them are related the way two intervals in a repeated bisection are. Semicircles over nested or disjoint intervals cannot cross, and so the arcs fit together without a single intersection.
What they fit together into is a set of curved triangles. The arc over , the arc over and the arc over , where is the mediant, bound a region with three corners on the number line and none above it. Every point of the half-plane above the line lies in exactly one such region or on its boundary, and the regions are all the same shape in a sense the next sections make exact.
Where the Ford circles touch
The Ford circles were the first picture of the neighbour condition: a circle of diameter standing on each fraction , touching the circle on exactly when the two are neighbours. The tessellation draws the same condition as an arc, and the two pictures fit together more closely than that shared condition suggests.
Where two Ford circles touch lies on the arc joining their fractions. For and the two circles have radius a half and centres at and , so they touch at — the top of the arc over . For and the second circle has radius and centre ; the point of contact divides the segment between the centres in the ratio of the radii, four to one, which puts it at , and that point is at distance exactly from — on the arc over .
The general statement has a reason in the geometry the arcs belong to. There, the number line is infinitely far from every point above it, and a Ford circle is what an ordinary circle becomes when its centre is moved all the way out to a fraction on that line — a curve every point of which is, in a limiting sense, equally far from the fraction. The arc joining two fractions is the straight line between them. Two such curves that touch do so on the line joining their centres, as two touching circles do in ordinary geometry, and the line joining the two fractions is the arc. The circles are the tessellation’s corners, and the arcs are the lines between the corners, drawn in one picture instead of two.
Why the crossings are the descent
A vertical line at crosses the semicircle over exactly when . So the arcs it crosses are the Farey intervals that contain , and those are nested — each inside the one before — so the line meets them in order of size, largest first.
The descent towards starts from , takes the mediant, and keeps whichever half contains . Every interval it produces is a Farey interval containing ; every Farey interval containing is one it produces, because the Farey intervals are exactly the intervals repeated splitting at mediants can reach. The line and the descent visit the same intervals in the same order, one geometrically and one arithmetically, which is what the figure’s first check requires.
For the intervals can be followed by hand. The descent starts from and its mediant is too big, so it keeps — a left turn. The next mediant, , is too small, so it keeps ; the next, , is too small again, giving ; then is too big, giving , and is too big, giving . The next mediant would be , beyond the drawing’s largest denominator of 13. Those six intervals are the six thick arcs in the first figure, from the largest down, and the turns taken between them spell .
The turns follow. Between one crossed arc and the next, the line passes through one curved triangle: in through its top side, the arc over , and out through one of its two lower sides, the arcs over and . It leaves by the left side when and by the right side when — and those are the descent’s turns, left when the mediant is too big and right when it is too small. The figure reads each turn from which endpoint the next crossed arc shares with the current one, and requires the word to be the descent’s.
The golden ratio’s line zigzags as tightly as a line can, which is the picture of the rectangle that eats itself cutting off one square at a time. Every triangle it enters, it leaves by the side it did not use last time.
Runs are fans around one corner
A run of identical turns has a picture too. When the line leaves several triangles in a row by the left side, it keeps the same right-hand endpoint throughout — every arc it crosses in that run ends at one fixed fraction on the number line. The triangles it passes form a fan around that fraction: a sequence of arcs all standing on the same point, each smaller than the last, squeezed in beside it.
The length of each fan is a quotient of the continued fraction. The line to runs down a fan of six triangles around before it can turn, because lies between and ; then a fan of fifteen around , of which the drawing shows three before its arcs become too small to include. The first run is one shorter than the first quotient because the drawing starts inside the arc over the whole interval , which is already the first triangle of that fan. The figure compares every complete run with the quotient the number’s own expansion gives.
That makes the continued fraction a count of fans, and the long fan of 292 further down the line to is the reason the fraction is so good: the line spends a long time turning around one corner, and the corner is an extraordinarily close approximation.
What the fans’ corners are
The fraction a fan stands on is where the line turns, and the fractions where the line turns are the ones the descent passes at the ends of its runs.
A fan’s corner is a best approximation, because the line stays near it for a whole run: every triangle in the fan has that fraction as a vertex, and the line cannot pass through them without the fraction being the closest simple one available. The records the descent finds are the corners of the fans the line passes, and how close a fraction can get is decided by how long the fans are.
Two symmetries of the whole picture
The drawing shows the tessellation over the unit interval, and the rest of it is determined by two symmetries that the neighbour condition respects.
Shifting by one keeps every pair of neighbours neighbours. If , then replacing and by and leaves unchanged. So the picture over , over and over every interval between whole numbers is the picture over moved sideways. A line down to a number above one first crosses the tall arcs over , and so on — one for each whole number it passes — and then enters the copy of the drawn picture over its own unit interval. That is the run of right turns the descent takes first, and its length is the number’s whole part, the continued fraction’s first entry.
Turning each fraction upside down also keeps neighbours neighbours. Sending to changes to , so the determinant keeps its size and changes only its sign. The map carries the part of the tessellation above to the part above and reverses left and right, so the descent to is the descent to with every left turn replaced by a right turn. That is the same symmetry the continued fraction has — is ’s expansion with its entries shifted along by one — seen as a reflection of the picture.
Both symmetries are transformations of the form with whole-number entries, the shift with determinant one and the inversion with determinant minus one. They are the same kind of transformation that moves points around the sphere the complex numbers live on, restricted to the ones with whole-number entries, and the whole tessellation is what those restricted transformations do to the single arc over .
The group behind the picture
The arcs are not arbitrary curves. In the upper half-plane with the geometry in which the shortest path between two points is a semicircle standing on the boundary — a geometry in which the parallel postulate fails — every arc of the figure is a straight line, and every curved triangle is a triangle whose three corners have gone off to the boundary.
In that geometry all the triangles are congruent. The transformations with whole-number entries and — the modular group the two matrices generate — are its rigid motions, they carry every Farey pair to another Farey pair, and they move any triangle of the tessellation onto any other. The picture looks crowded towards the number line only because the drawing is not in the geometry the picture belongs to; measured in that geometry, the triangles are identical, and a line crossing them passes through one after another at a steady rate.
Caroline Series made this reading exact in 1985: the sequence of lefts and rights a line records as it cuts through the tessellation is the continued fraction of where it is going, for every line, not only vertical ones. A line running between two points on the boundary cuts the tessellation in a sequence infinite in both directions, and the two halves are the continued fractions of its two ends.
Where the picture needs care
The line must head to an irrational number to cross infinitely many arcs. A line down to a fraction ends at a corner of the tessellation after finitely many crossings, and its word is finite, as a fraction’s continued fraction is.
The drawing stops at a largest denominator. The tessellation has infinitely many arcs, crowding towards every fraction, and a drawing of arcs with denominators up to 13 or 24 is a finite piece. The line’s later crossings are among the arcs not drawn, and the figures compare only the runs the drawing completes.
The first run is one short. The drawing starts inside the arc over the whole unit interval, which the descent counts as its starting interval rather than as a turn. That offset is a choice of where to start, and it is the same offset that makes the descent to a number above one begin with a run of rights.
And the geometry is not the drawing’s. In the drawn picture the arcs near the line shrink and crowd; in the geometry they belong to, every triangle is the same. The figures are drawn in the ordinary plane, where the crowding is real, and the congruence of the triangles is a statement about the other geometry that the drawing cannot show.
Four lines drawn, and a symmetry the flat drawing hides
Four lines are drawn, and a line to every number between nought and one does the same thing. The figures check the crossings, turns and runs for those four, and the statement for every number is the argument above about nested intervals, which is prose.
Nor can the pictures show the tessellation’s symmetry. A drawing that made all the triangles look alike would have to be drawn in the disc or the half-plane with its own geometry, where they are, and in that drawing the number line becomes a circle and the fractions crowd around it in a way no finite drawing resolves.
Still open: whether every denominator has a fraction with short fans
The fans a line passes on its way to are the quotients of ’s continued fraction, and a fraction whose quotients are all small is one whose line never turns around the same corner for long. Stanisław Zaremba conjectured in 1971 that every whole number is the denominator of some fraction whose quotients are all at most 5 — that for every , some line to a fraction with that denominator crosses fans of at most five triangles all the way down.
The conjecture is open. Jean Bourgain and Alex Kontorovich proved in 2014 that it holds for almost every , in a precise density sense, if the bound 5 is replaced by 50, and later work has lowered that bound, but a proof for every with any fixed bound has not been found. It is a question about which paths through this picture exist, and the picture makes clear why it is hard: short fans are easy to find for most denominators, and nothing forces them to exist for all.
A construction was a picture in another geometry
The habit is about where a construction’s natural picture lives.
The Stern–Brocot tree was built by an operation on pairs of whole numbers, drawn as a tree, rewritten as matrices and flattened into a sequence, and each of those was a faithful account of it. None of them showed why the descent’s turns are the continued fraction’s quotients; that was proved in each case by algebra. In the tessellation it is simply visible: a run is a fan, a turn is a change of corner, and a quotient is how many triangles share a corner.
The picture was available the whole time, and it lives in a geometry other than the one the numbers were written in. When a construction keeps producing identities that its own pictures have to prove, it is worth asking whether there is a space in which those identities are the shapes of things — and the matrices with determinant one were the hint that such a space existed here.
What links here
Computed from the collection, not written here: the essays that point at this one.
Reads more easily once this is understood
Essays that name this one as worth reading first.
Shares its objects with
Essays that name at least two of the same things, and that neither author linked.
- Every rational in one sequence — both name mediant, stern brocot tree
Named objects
A dashed tag is an object no other essay names yet.
Continued fractionsDeterminantFarey sequenceMediantModular groupStern brocot treeUnimodular