simple closed geodesics on the modular torus
the modular torus is the once-punctured torus = the square with opposite edges glued (the quotient of the hyperbolic plane by the commutator subgroup of PSL(2,ℤ)). a slope p/q (gcd 1) gives one simple closed geodesic, which wraps p times horizontally and q times vertically. each of these has a length; the markov numbers m are exactly the traces they carry: 3m = tr of the slope-m geodesic (Cohn 1955). click a slope to light it up.
colours cycle by slope; brighter = smaller p+q (shorter curve). the dashed square is the fundamental domain — opposite edges are the same line.