farey sequences
every fraction between 0 and 1 with denominator ≤ n, in order. the flat sibling of stern–brocot.
Fn is the set of reduced fractions a/b (0≤a≤b, b≤n) sorted by value. as n grows you just slide new fractions in between the old ones. nothing moves, everything stays put.
the neighbour property. any two consecutive fractions a/b < c/d in a Farey row satisfy
bc − ad = 1. that's the whole magic: the determinant is always exactly one.
it's why the mediant (a+c)/(b+d) always falls strictly between them, and why stern–brocot and farey are the same tree read two ways.
the check below runs it for every row up to 12. the result is the same every time: all det = 1.
row lengths grow fast but not wildly — F12 already has 47 entries. the count is 1 + Σ φ(k) for k=1..n, so it's roughly 3n²/π². that's the same 3/π² that shows up wherever coprime pairs are counted.