Lab · Diophantine approximation
The three-gap theorem
Walk around a circle in steps of a fixed irrational fraction of a turn. However many points you place, the gaps between neighbours never come in more than three different lengths.
Place the points $0, \alpha, 2\alpha, \dots, N\alpha$ on a circle of circumference $1$, that is, the fractional parts $\{n\alpha\}$. They cut the circle into $N + 1$ arcs. You might expect the arc lengths to be all over the place. Instead:
Three-gap theorem. For every real $\alpha$ and every $N$, the arcs take at most three distinct lengths. When there are three, the longest is the sum of the other two.
Steinhaus conjectured this in the 1950s, and it was proved independently by Sós (1957), Surányi (1958) and Świerczkowski (1958). Press Play to add the points one at a time; each new point lands in one of the longest gaps and splits it into a short and a middle one.
What controls the lengths
The two smaller lengths are $\delta_a = \{a\alpha\}$ and $\delta_b = 1 - \{b\alpha\}$, where $a$ and $b$ are the indices $1 \le n \le N$ whose points come closest to $0$ from the right and from the left. These indices are always denominators of convergents (or intermediate fractions) of the continued fraction of $\alpha$, which is why the theorem is really a statement about Diophantine approximation. For the golden ratio, whose continued fraction is all $1$s, the lengths shrink by the factor $\phi \approx 1.618$ each time and the pattern is as tidy as possible; for $\pi$, whose expansion begins $[3; 7, 15, 1, 292, \dots]$, there are long stretches with the same three lengths. Try the rational $7/23$: once $N \ge 22$ the points repeat and every gap has length $1/23$.
The theorem has relatives everywhere: the arrangement of leaves around a stem (phyllotaxis), the distribution of the Sturmian words that describe straight lines on a grid, and the spacing statistics of $\{n^2\alpha\}$, which behave very differently and are conjectured to look random.
Full proof (the two short cases in full)
Write $x_n = \{n\alpha\}$ for $0 \le n \le N$, assume $\alpha$ irrational (so the points are distinct), and choose $a, b \in [1, N]$ with $\delta_a = x_a$ minimal and $\delta_b = 1 - x_b$ minimal. Every difference between two of our points is $\pm\{k\alpha\}$ modulo $1$ for some $k \in [1, N]$; going counterclockwise, the difference from $x_j$ to $x_i$ is $\{(i - j)\alpha\}$, which is at least $\delta_a$ if $i > j$ and at least $\delta_b$ if $i < j$.
Case 1: $n + a \le N$. Then $x_{n+a} = x_n + \delta_a$ modulo $1$. If some $x_m$ lay strictly between them, the counterclockwise differences from $x_n$ to $x_m$ and from $x_m$ to $x_{n+a}$ would both be less than $\delta_a$. Their indices $m - n$ and $n + a - m$ add up to $a > 0$, so one of them is positive, and that difference would be at least $\delta_a$. Contradiction: the gap after $x_n$ has length exactly $\delta_a$.
Case 2: $n + a > N$ but $n - b \ge 0$. Then $x_{n-b} = x_n + \delta_b$ modulo $1$, and the same argument with indices $m - n$ and $n - b - m$, which add up to $-b < 0$, shows the gap after $x_n$ is exactly $\delta_b$.
Case 3: $n + a > N$ and $n < b$. Here the index $n + a - b$ lies in $[0, N]$ and $x_{n+a-b} = x_n + \delta_a + \delta_b$. One checks in the same way, using both minimality properties, that no point lies in between, so the gap is $\delta_a + \delta_b$. Every $n$ falls into one of the three cases, so there are at most three lengths, and the third is the sum of the first two. $\square$
Further reading
- V. T. Sós, On the distribution mod 1 of the sequence nα, Annales Universitatis Scientiarum Budapestinensis 1 (1958).
- T. van Ravenstein, The three gap theorem (Steinhaus conjecture), Journal of the Australian Mathematical Society 45 (1988).
- J. Marklof and A. Strömbergsson, The three gap theorem and the space of lattices, American Mathematical Monthly 124 (2017).