<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Mathematics on Sebastian Spicker</title>
    <link>https://sebastianspicker.github.io/tags/mathematics/</link>
    <description>Recent content in Mathematics on Sebastian Spicker</description>
    <image>
      <title>Sebastian Spicker</title>
      <url>https://sebastianspicker.github.io/og-image.png</url>
      <link>https://sebastianspicker.github.io/og-image.png</link>
    </image>
    <generator>Hugo -- 0.160.0</generator>
    <language>en</language>
    <lastBuildDate>Mon, 07 Jul 2025 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://sebastianspicker.github.io/tags/mathematics/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Star Polygons and Drum Machines</title>
      <link>https://sebastianspicker.github.io/posts/tool-star-polygons-drum-machines/</link>
      <pubDate>Mon, 07 Jul 2025 00:00:00 +0000</pubDate>
      <guid>https://sebastianspicker.github.io/posts/tool-star-polygons-drum-machines/</guid>
      <description>The {7/2} heptagram is not only a symbol. It is a traversal algorithm over seven beat positions. Because 7 is prime, that traversal never gets trapped in a sub-orbit.</description>
      <content:encoded><![CDATA[<p>Two star polygons appear in Danny Carey&rsquo;s visual vocabulary, and they are not the same star. One is open, almost friendly — seven points connected by relatively shallow angles. The other is sharper, the points more acute. They look like variations on a theme, which is accurate: both are drawn on seven equally spaced vertices, but one connects every second vertex and the other connects every third.</p>
<p>In Schläfli notation — the system for naming regular star polygons — these are $\{7/2\}$ and $\{7/3\}$ <a href="#ref-1">[1]</a>. Both appear in Tool&rsquo;s artwork, in Thelemic symbolism, in medieval Islamic geometric patterns, and on the floor plans of cathedrals. They are the most visually intricate star polygons that can be drawn in a single closed stroke before the figure becomes illegible.</p>
<p>Both of them have a property that five-pointed and six-pointed stars do not share: they visit every vertex before closing. This is a consequence of 7 being prime. And it turns out to matter for how rhythmic accent cycles are built.</p>
<h2 id="the-schläfli-symbol">The Schläfli Symbol</h2>
<p>A regular star polygon $\{n/k\}$ is constructed by placing $n$ points evenly on a circle and connecting every $k$-th point in sequence until the path closes. The structural key is a single number:</p>
$$d = \gcd(n, k).$$<p>If $d = 1$, the traversal visits all $n$ vertices before returning to the start — a single connected figure. If $d > 1$, the path visits only $n/d$ vertices before closing, and the full figure consists of $d$ separate copies of the smaller star $\{(n/d)\,/\,(k/d)\}$.</p>
<p>The most familiar example of the disconnected case: $\{6/2\}$, the Star of David. Here $\gcd(6,2) = 2$, so the figure breaks into two copies of $\{3/1\} = \{3\}$ — two overlapping equilateral triangles. The traversal starting at vertex 1 visits $1 \to 3 \to 5 \to 1$, leaving vertices 2, 4, 6 entirely unvisited.</p>
<p>The pentagram $\{5/2\}$ is connected: $\gcd(5,2)=1$, traversal $1 \to 3 \to 5 \to 2 \to 4 \to 1$, all five vertices.</p>
<p>For $n=7$:</p>
<ul>
<li>$\{7/2\}$: $\gcd(7,2)=1$, traversal $1 \to 3 \to 5 \to 7 \to 2 \to 4 \to 6 \to 1$, all seven vertices.</li>
<li>$\{7/3\}$: $\gcd(7,3)=1$, traversal $1 \to 4 \to 7 \to 3 \to 6 \to 2 \to 5 \to 1$, all seven vertices.</li>
</ul>
<p>Both connected. Neither leaves any vertex unvisited.</p>
<h2 id="the-group-theory">The Group Theory</h2>
<p>The traversal of $\{n/k\}$ is an instance of a standard construction in modular arithmetic: the <strong>orbit</strong> of an element under repeated addition in $\mathbb{Z}/n\mathbb{Z}$.</p>
<p>Label the $n$ vertices $0, 1, \ldots, n-1$. Starting at vertex 0, the traversal visits:</p>
$$0, \quad k \bmod n, \quad 2k \bmod n, \quad 3k \bmod n, \quad \ldots$$<p>The orbit of 0 under the action of $+k$ is the subgroup of $\mathbb{Z}/n\mathbb{Z}$ generated by $k$. By a standard result, this subgroup has size $n / \gcd(n,k)$.</p>
<ul>
<li>When $\gcd(n,k) = 1$: orbit size $= n$. The traversal visits every vertex.</li>
<li>When $\gcd(n,k) = d > 1$: orbit size $= n/d$. The traversal visits only a fraction of the vertices.</li>
</ul>
<p>For prime $n$: $\gcd(n,k) = 1$ for every $1 \leq k \leq n-1$, without exception. <strong>Every traversal is complete.</strong> There is no step size that traps the path in a proper sub-orbit before visiting all vertices. This follows directly from the fact that a prime has no divisors other than 1 and itself, so $\mathbb{Z}/p\mathbb{Z}$ has no non-trivial subgroups (Lagrange&rsquo;s theorem: any subgroup of a group of prime order must have order 1 or $p$).</p>
<p>This is the specific property that makes 7 — and any prime — rhythmically fertile.</p>
<h2 id="the-contrast-with-six">The Contrast with Six</h2>
<p>The comparison with $n = 6$ is the clearest illustration.</p>
<p>In $\mathbb{Z}/6\mathbb{Z}$, the possible step sizes are 1, 2, 3, 4, 5. Their orbits:</p>
<table>
  <thead>
      <tr>
          <th>Step $k$</th>
          <th>$\gcd(6,k)$</th>
          <th>Orbit size</th>
          <th>Vertices visited</th>
      </tr>
  </thead>
  <tbody>
      <tr>
          <td>1</td>
          <td>1</td>
          <td>6</td>
          <td>0,1,2,3,4,5 (the hexagon)</td>
      </tr>
      <tr>
          <td>2</td>
          <td>2</td>
          <td>3</td>
          <td>0,2,4 only</td>
      </tr>
      <tr>
          <td>3</td>
          <td>3</td>
          <td>2</td>
          <td>0,3 only</td>
      </tr>
      <tr>
          <td>4</td>
          <td>2</td>
          <td>3</td>
          <td>0,2,4 only</td>
      </tr>
      <tr>
          <td>5</td>
          <td>1</td>
          <td>6</td>
          <td>0,5,4,3,2,1 (the hexagon reversed)</td>
      </tr>
  </tbody>
</table>
<p>The only step sizes that visit all six vertices are 1 and 5 — both of which just traverse the hexagon itself, not a star. Every non-trivial star polygon on six points gets trapped. $\{6/2\}$ visits only half the vertices. $\{6/3\}$ visits only two. There is no connected six-pointed star that isn&rsquo;t either the hexagon or a compound figure.</p>
<p>In $\mathbb{Z}/7\mathbb{Z}$, every step from 2 to 5 generates the full group:</p>
<table>
  <thead>
      <tr>
          <th>Step $k$</th>
          <th>$\gcd(7,k)$</th>
          <th>Orbit size</th>
          <th>Traversal</th>
      </tr>
  </thead>
  <tbody>
      <tr>
          <td>2</td>
          <td>1</td>
          <td>7</td>
          <td>1,3,5,7,2,4,6</td>
      </tr>
      <tr>
          <td>3</td>
          <td>1</td>
          <td>7</td>
          <td>1,4,7,3,6,2,5</td>
      </tr>
      <tr>
          <td>4</td>
          <td>1</td>
          <td>7</td>
          <td>1,5,2,6,3,7,4</td>
      </tr>
      <tr>
          <td>5</td>
          <td>1</td>
          <td>7</td>
          <td>1,6,4,2,7,5,3</td>
      </tr>
  </tbody>
</table>
<p>All four non-trivial step sizes give connected traversals. Both are stars. Both visit every vertex. This is not a coincidence: it is the algebraic signature of primality.</p>
<h2 id="from-geometry-to-rhythm">From Geometry to Rhythm</h2>
<p>The connection to drumming is direct. Here is the mechanism.</p>
<p>Consider a repeating rhythmic figure of 7 beats — a bar of 7/8, say, with positions 1 through 7. An <a href="/posts/euclidean-rhythms/">earlier post</a> discussed Euclidean rhythms: the algorithm that distributes $k$ onset positions as evenly as possible among $n$ slots. That is a problem of <em>selection</em> — which of the $n$ positions to activate.</p>
<p>The star polygon traversal asks a different question. Given that all $n$ positions are present, in what <em>order of emphasis</em> should they be related, such that each accent is a fixed distance from the last? The traversal of $\{n/k\}$ answers this: accent position $1$, then $1+k$, then $1+2k$, and so on modulo $n$.</p>
<p>For $\{7/2\}$: the accent cycle within a single bar runs $1 \to 3 \to 5 \to 7 \to 2 \to 4 \to 6$. Each featured beat is two positions ahead of the last.</p>
<p>Now project this across multiple bars. In bar 1, the primary accent sits on beat 1. In bar 2, if the accent shifts by 2, it lands on beat 3. Bar 3: beat 5. Bar 4: beat 7. Bar 5: beat 2. Bar 6: beat 4. Bar 7: beat 6. Bar 8: beat 1 again.</p>
<p>The accent takes <strong>seven bars</strong> to return to its starting position. Because $\gcd(2,7) = 1$, the step of 2 generates all of $\mathbb{Z}/7\mathbb{Z}$: every beat position receives the accent exactly once before the cycle resets. The resulting large-scale figure is $7 \times 7 = 49$ beats long — a super-phrase built from a single local rule.</p>
<p>The $\{7/3\}$ traversal generates the same exhaustiveness with a different path. Step 3 gives $1 \to 4 \to 7 \to 3 \to 6 \to 2 \to 5$: a seven-bar accent cycle that visits every position before repeating, but with wider spacing between accented beats, creating a different feel over the same underlying meter.</p>
<p>A six-beat figure with step 2 cannot do this. The accent visits only beats 1, 3, 5 — half the cycle — and loops back without touching beats 2, 4, 6. A drummer building phrase-level architecture from a six-beat grid is working with a more fragmented material.</p>
<h2 id="two-problems-one-prime">Two Problems, One Prime</h2>
<p>It is worth stating the relationship between the star polygon approach and Euclidean rhythms precisely, because the two are sometimes conflated <a href="#ref-2">[2]</a>.</p>
<p>The Euclidean algorithm distributes $k$ onsets among $n$ positions with maximal evenness. The result is a <em>subset</em> of the $n$ positions — a selection. The primality of $n$ matters here too: because $\gcd(k,p) = 1$ for prime $p$ and any $1 \leq k \leq p-1$, the Euclidean rhythm $E(k,p)$ always achieves its theoretical maximum of evenness. There are no divisibility shortcuts that cause clumping.</p>
<p>The star polygon traversal selects <em>no subset</em> — it relates all $n$ positions via a cyclic permutation. The primality of $n$ matters here because it guarantees that every non-trivial cyclic permutation (every step size $k$ with $1 < k < n$) generates the full group, visiting all positions before repeating.</p>
<p>Same arithmetic property — $\gcd(k,p) = 1$ for all non-zero $k$ — but the two problems ask different things of it. Euclidean rhythms use it to guarantee dense coverage. Star polygon traversals use it to guarantee no sub-orbit trapping.</p>
<h2 id="the-compound-structure">The Compound Structure</h2>
<p>Written out explicitly, the $\{7/2\}$ accent pattern over seven bars looks like this — with bold marking the featured beat in each bar:</p>
$$\begin{array}{rccccccc}
\text{bar 1:} & \mathbf{1} & 2 & 3 & 4 & 5 & 6 & 7 \\
\text{bar 2:} & 1 & 2 & \mathbf{3} & 4 & 5 & 6 & 7 \\
\text{bar 3:} & 1 & 2 & 3 & 4 & \mathbf{5} & 6 & 7 \\
\text{bar 4:} & 1 & 2 & 3 & 4 & 5 & 6 & \mathbf{7} \\
\text{bar 5:} & 1 & \mathbf{2} & 3 & 4 & 5 & 6 & 7 \\
\text{bar 6:} & 1 & 2 & 3 & \mathbf{4} & 5 & 6 & 7 \\
\text{bar 7:} & 1 & 2 & 3 & 4 & 5 & \mathbf{6} & 7 \\
\end{array}$$<p>Each bar is metrically identical. The large-scale accent — which beat carries the phrase-level emphasis — traces the traversal path of the $\{7/2\}$ star polygon across the seven-bar cycle.</p>
<p>This is the kind of large-scale rhythmic architecture visible in a great deal of Tool&rsquo;s output. Whether Danny Carey explicitly constructs accent cycles from star polygon traversal paths, or whether the same structure emerges from his intuitive sense of how prime time signatures behave, produces the same result. The mathematics and the musical instinct point toward the same pattern.</p>
<h2 id="why-the-heptagram">Why the Heptagram</h2>
<p>The full mathematical picture of why seven-fold symmetry is special — why the regular heptagon cannot be constructed by compass and straightedge, what the minimal polynomial of $\cos(2\pi/7)$ implies about the heptagon&rsquo;s position outside the constructible world, and how the Galois group of the cyclotomic field over $\mathbb{Q}$ carries the obstruction — is developed in the companion post <a href="/posts/tool-impossible-heptagon/">The Impossible Heptagon</a>.</p>
<p>The short version, for the purposes of this post: seven is the smallest odd prime that is not a Fermat prime ($2^{2^j}+1$). This algebraic accident places it outside the reach of ruler-and-compass construction — the heptagon exists as an ideal but cannot be manifested by the classical tools. Its star polygons are the accessible shadows of an inaccessible form. And its primality, in both the constructibility sense and the traversal sense, is precisely what makes it inexhaustible as a rhythmic resource.</p>
<p>The Fibonacci structure in &ldquo;Lateralus&rdquo; <a href="#ref-3">[3]</a>, the group theory underlying twelve-tone equal temperament <a href="#ref-4">[4]</a>, and the Euclidean rhythm algorithm <a href="#ref-5">[5]</a> are all different facets of the same observation: mathematical structure, introduced as compositional constraint, generates musical complexity that cannot easily be produced by intuition alone. The star polygon is another instance. The drummer who keeps a heptagram on his kit has found, by a non-mathematical route, an object with a precise and interesting mathematical identity.</p>
<h2 id="references">References</h2>
<p><span id="ref-1"></span>[1] Coxeter, H.S.M. (1973). <em>Regular Polytopes</em> (3rd ed.). Dover. Ch. 2.</p>
<p><span id="ref-2"></span>[2] Toussaint, G. (2013). <em>The Geometry of Musical Rhythm: What Makes a &ldquo;Good&rdquo; Rhythm Good?</em> CRC Press.</p>
<p><span id="ref-3"></span>[3] See <a href="/posts/fibonacci-lateralus/">Fibonacci and Lateralus</a> on this blog.</p>
<p><span id="ref-4"></span>[4] See <a href="/posts/twelve-tet-group-theory-musical-tuning/">Twelve-TET and Group Theory</a> on this blog.</p>
<p><span id="ref-5"></span>[5] See <a href="/posts/euclidean-rhythms/">Euclidean Rhythms</a> on this blog.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Primes Are Energy Levels: The Montgomery-Odlyzko Conjecture</title>
      <link>https://sebastianspicker.github.io/posts/riemann-primes-quantum-chaos/</link>
      <pubDate>Mon, 18 Nov 2024 00:00:00 +0000</pubDate>
      <guid>https://sebastianspicker.github.io/posts/riemann-primes-quantum-chaos/</guid>
      <description>In October 2024, the largest known prime was discovered — 41 million digits, found by a GPU cluster. But the deepest prime story is not about record-breaking numbers. It is about a 1972 teatime conversation at the Institute for Advanced Study, a pair correlation formula, and the suspicion — numerically confirmed to extraordinary precision — that the zeros of the Riemann zeta function are the energy levels of an undiscovered quantum system.</description>
      <content:encoded><![CDATA[<h2 id="a-very-large-prime">A Very Large Prime</h2>
<p>On 12 October 2024, a retired NVIDIA engineer named Luke Durant announced that he had found the 52nd known Mersenne prime. The number is $2^{136{,}279{,}841} - 1$, and writing it out in decimal requires 41,024,320 digits. Durant had organised a cloud network of GPU servers spread across 17 countries — essentially repurposing the hardware that normally trains language models to instead do modular arithmetic on numbers with tens of millions of digits. The verification alone took about 51 days of computation.</p>
<p>This is the kind of thing that makes headlines, and it deserves them. Mersenne primes are rare and verifying them is genuinely hard. But if I am honest, the more interesting prime story of the last half-century is not about the record-breaking number. It is about a conversation over tea in Princeton in 1972, and the increasingly hard-to-dismiss suspicion that the prime numbers are, in a precise statistical sense, quantum energy levels.</p>
<p>When I say &ldquo;quantum energy levels,&rdquo; I mean it almost literally — not as a metaphor. Let me explain.</p>
<h2 id="the-riemann-zeta-function-encodes-the-primes">The Riemann Zeta Function Encodes the Primes</h2>
<p>Start with the most famous function in number theory. For $\operatorname{Re}(s) > 1$, the Riemann zeta function is defined by the series</p>
$$\zeta(s) = \sum_{n=1}^{\infty} \frac{1}{n^s}.$$<p>This converges nicely and defines an analytic function. But the real reason to care about it is Euler&rsquo;s product formula:</p>
$$\zeta(s) = \prod_{p \text{ prime}} \frac{1}{1 - p^{-s}}.$$<p>This is not obvious — it follows from unique prime factorisation, essentially — but its implications are enormous. The product runs over <em>all</em> primes, and each prime contributes a factor. The primes are encoded in the analytic structure of $\zeta$. If you know $\zeta$, you know the primes; if you understand the zeros of $\zeta$, you understand their distribution.</p>
<p>Riemann&rsquo;s 1859 paper made this explicit (<a href="#ref-Riemann1859">Riemann, 1859</a>). He showed that $\zeta$ extends analytically to the whole complex plane (minus a simple pole at $s = 1$), and he wrote down an explicit formula connecting the prime-counting function</p>
$$\pi(x) = \#\{p \leq x : p \text{ prime}\}$$<p>to the zeros of $\zeta$. The formula is</p>
$$\pi(x) \approx \operatorname{Li}(x) - \sum_{\rho} \operatorname{Li}(x^{\rho}) + \text{(lower-order terms)},$$<p>where $\operatorname{Li}(x) = \int_2^x \frac{dt}{\ln t}$ is the logarithmic integral and the sum runs over the <em>non-trivial zeros</em> $\rho$ of $\zeta$.</p>
<p>What are the non-trivial zeros? The zeta function has trivial zeros at the negative even integers $-2, -4, -6, \ldots$ — boring, understood. The non-trivial zeros lie in the <em>critical strip</em> $0 < \operatorname{Re}(s) < 1$, and their imaginary parts are what drive the oscillatory corrections to $\pi(x)$. Each zero $\rho = \frac{1}{2} + it_n$ contributes a term that oscillates like $x^{1/2} \cos(t_n \ln x)$. The prime distribution is a superposition of these oscillations, one per zero.</p>
<p>The Riemann Hypothesis is the claim that all non-trivial zeros lie on the <em>critical line</em> $\operatorname{Re}(s) = \frac{1}{2}$. It has been verified numerically for the first $10^{13}$ zeros (Gourdon, 2004; building on earlier high-height computations by <a href="#ref-Odlyzko1987">Odlyzko, 1987</a>). It has not been proved. It remains, after 165 years, the most important unsolved problem in mathematics.</p>
<h2 id="tea-with-dyson">Tea with Dyson</h2>
<p>In 1972, Hugh Montgomery was visiting the Institute for Advanced Study in Princeton. He was working on a specific question: if you take the imaginary parts of the non-trivial zeros of $\zeta$ and normalise them so that their mean spacing is 1, what is the distribution of spacings between them?</p>
<p>More precisely, he was computing the <em>pair correlation function</em> of the normalised zeros. If $\tilde{\gamma}_n$ are the normalised imaginary parts (ordered $\tilde{\gamma}_1 \leq \tilde{\gamma}_2 \leq \cdots$), the pair correlation function $R_2(r)$ measures the density of pairs $(\tilde{\gamma}_m, \tilde{\gamma}_n)$ with $\tilde{\gamma}_n - \tilde{\gamma}_m \approx r$.</p>
<p>Montgomery found — subject to certain assumptions about the behaviour of $\zeta$ — that</p>
$$R_2(r) = 1 - \left(\frac{\sin \pi r}{\pi r}\right)^2.$$<p>(<a href="#ref-Montgomery1973">Montgomery, 1973</a>)</p>
<p>He mentioned this to Freeman Dyson over tea. Dyson — who had spent years on quantum mechanics and random matrix theory — recognised the formula immediately. That expression, $1 - (\sin \pi r / \pi r)^2$, is exactly the pair correlation function of eigenvalues of random matrices drawn from the Gaussian Unitary Ensemble.</p>
<p>Montgomery had not been thinking about quantum mechanics. Dyson had not been thinking about primes. The formula matched.</p>
<h2 id="the-gaussian-unitary-ensemble">The Gaussian Unitary Ensemble</h2>
<p>Let me say a few words about where that formula comes from in physics, because it is not obvious.</p>
<p>The Gaussian Unitary Ensemble (GUE) is a probability distribution over $N \times N$ Hermitian matrices. Specifically, it is the distribution proportional to $e^{-\operatorname{tr}(H^2)}$ on the space of Hermitian matrices, which is invariant under conjugation $H \mapsto U H U^\dagger$ for any unitary $U$. The entries on the diagonal are real Gaussians; the off-diagonal entries are complex Gaussians with independent real and imaginary parts.</p>
<p>In the limit $N \to \infty$, the eigenvalues of a GUE matrix distribute globally according to Wigner&rsquo;s semicircle law. But the local statistics — the fine-grained distribution of spacings between nearby eigenvalues — follow a universal law. The pair correlation function is</p>
$$R_2^{\text{GUE}}(r) = 1 - \left(\frac{\sin \pi r}{\pi r}\right)^2.$$<p>This distribution has a crucial qualitative feature called <em>level repulsion</em>: as $r \to 0$, $R_2(r) \to 0$. Eigenvalues of random Hermitian matrices strongly avoid each other. A Poisson distribution — which is what you would get for eigenvalues that were statistically independent — would give $R_2(r) = 1$ everywhere, with no such repulsion. The GUE formula suppresses small gaps quadratically: $R_2(r) \sim \pi^2 r^2 / 3$ for small $r$.</p>
<p>Why does GUE statistics arise in physics? This is the content of the Bohigas-Giannoni-Schmit conjecture (1984), which by now has overwhelming numerical support: quantum systems whose classical limit is chaotic and which lack time-reversal symmetry have energy level statistics described by the GUE. Systems with time-reversal symmetry fall into the Gaussian Orthogonal Ensemble (GOE), which has a different but related formula. Nuclear energy levels, quantum billiards with the right shapes, molecular spectra — all of them, when appropriately normalised, show GUE or GOE statistics.</p>
<p>The universality is the point. It does not matter what the specific Hamiltonian is. If the system is sufficiently chaotic, the eigenvalue statistics are universal.</p>
<h2 id="odlyzkos-computation">Odlyzko&rsquo;s Computation</h2>
<p>Montgomery&rsquo;s result was conditional and covered only a limited range of $r$. The natural next step was numerical verification: actually compute a large number of Riemann zeros and measure their pair correlation.</p>
<p>Andrew Odlyzko did exactly this, in a series of computations beginning in the 1980s. The results were striking (<a href="#ref-Odlyzko1987">Odlyzko, 1987</a>). He computed millions of zeros with high precision and compared their empirical pair correlation to the GUE prediction. The agreement was not merely qualitative — it was quantitatively exact, to within the statistical error of the sample.</p>
<p>Odlyzko then pushed further. He computed zeros near the $10^{20}$-th zero, far out on the critical line. Same statistics. He computed zeros near the $10^{22}$-th zero. Same statistics. The agreement held regardless of how far up the critical line one went. This is not a small-sample artifact and it is not coincidence, or at least it would be an extraordinary coincidence of a kind that mathematics has never before encountered.</p>
<p>The plots from Odlyzko&rsquo;s computations are, in my view, some of the most beautiful images in mathematics. You draw the GUE prediction — a smooth curve, starting at zero, rising to approach 1 — and you overlay the empirical histogram from the Riemann zeros. They are the same curve.</p>
<h2 id="berry-keating-and-the-missing-hamiltonian">Berry, Keating, and the Missing Hamiltonian</h2>
<p>If the zeros of $\zeta$ are energy levels, there should be a Hamiltonian $H$ — a self-adjoint operator — whose spectrum is exactly $\{t_n\}$, the imaginary parts of the non-trivial zeros (assuming the Riemann Hypothesis, so that all zeros are of the form $\frac{1}{2} + it_n$).</p>
<p>In 1999, Michael Berry and Jon Keating proposed a candidate (<a href="#ref-BerryKeating1999">Berry &amp; Keating, 1999</a>). Their suggestion was the classical Hamiltonian</p>
$$H_{\text{cl}} = xp,$$<p>where $x$ is position and $p$ is momentum, quantized with appropriate symmetrization:</p>
$$\hat{H} = \frac{1}{2}(\hat{x}\hat{p} + \hat{p}\hat{x}).$$<p>Classically, $H = xp$ describes a system in which the phase-space trajectories are hyperbolas $xp = E = \text{const}$, and the motion is $x(t) = x_0 e^t$, $p(t) = p_0 e^{-t}$ — exponential expansion in position, contraction in momentum. This is essentially the dynamics of an unstable fixed point, and it is classically chaotic in the appropriate sense.</p>
<p>The semiclassical (WKB) approximation gives an eigenvalue counting function</p>
$$N(E) \approx \frac{E}{2\pi} \ln \frac{E}{2\pi} - \frac{E}{2\pi} + \frac{7}{8} + \cdots,$$<p>which matches Riemann&rsquo;s formula for the number of zeros of $\zeta$ with imaginary part up to $T$:</p>
$$N(T) = \frac{T}{2\pi} \ln \frac{T}{2\pi} - \frac{T}{2\pi} + \frac{7}{8} + O\!\left(\frac{\ln T}{T}\right).$$<p>This is not a coincidence: the correspondence is exact at the level of the smooth counting function. The hard part is the oscillatory corrections — and those require the specific eigenvalues, which requires knowing the boundary conditions.</p>
<p>The problem is that $\hat{H} = \frac{1}{2}(\hat{x}\hat{p} + \hat{p}\hat{x})$ as an operator on $L^2(\mathbb{R})$ is not bounded below and has a continuous spectrum, not a discrete one. Turning it into an operator with a discrete spectrum matching the Riemann zeros requires boundary conditions that have not been found. This is the crux: Berry and Keating have the right classical system, but the quantum boundary conditions are missing.</p>
<p>What would be profound about finding $\hat{H}$? If $\hat{H}$ is self-adjoint and bounded below ($\hat{H} \geq 0$), its eigenvalues are all non-negative real numbers. If those eigenvalues are the imaginary parts of the zeros, then all zeros have real part exactly $\frac{1}{2}$ — which is the Riemann Hypothesis. A proof of the existence of such a Hamiltonian would, in one stroke, resolve the most important open problem in mathematics.</p>
<h2 id="primes-as-periodic-orbits-the-gutzwiller-analogy">Primes as Periodic Orbits: The Gutzwiller Analogy</h2>
<p>The quantum chaos connection goes deeper than pair correlations. In semiclassical quantum mechanics, the Gutzwiller trace formula relates the density of quantum energy levels to a sum over classical periodic orbits:</p>
$$d(E) = \bar{d}(E) + \sum_{\gamma} A_\gamma \cos\!\left(\frac{S_\gamma}{\hbar} - \phi_\gamma\right),$$<p>where the sum runs over all classical periodic orbits $\gamma$, $S_\gamma$ is the classical action of the orbit, $A_\gamma$ is an amplitude, and $\phi_\gamma$ is a phase (Maslov index correction). The smooth part $\bar{d}(E)$ comes from the Thomas-Fermi approximation; the oscillatory part encodes quantum interference between orbits.</p>
<p>The direct analogue in number theory is the <em>explicit formula</em> for the prime-counting function. Written as a formula for the oscillatory part of the zero-counting function, it reads</p>
$$\psi(x) = x - \sum_{\rho} \frac{x^\rho}{\rho} - \ln(2\pi) - \frac{1}{2}\ln(1 - x^{-2}),$$<p>where $\psi(x) = \sum_{p^k \leq x} \ln p$ is the Chebyshev function and the sum is over non-trivial zeros $\rho$.</p>
<p>Comparing these two formulas term by term: the zeros $\rho$ of $\zeta$ play the role of the quantum energy levels $E_n$; the primes $p$ — and their prime powers $p^k$ — play the role of the classical periodic orbits $\gamma$. The &ldquo;action&rdquo; of the orbit corresponding to $p^k$ is $k \ln p$. The primes are the primitive periodic orbits; $p^k$ is the $k$-th traversal of that orbit.</p>
<p>This is not a metaphor or a loose analogy. The Selberg trace formula — developed for the Laplacian on hyperbolic surfaces — makes this correspondence rigorous in a related setting: the periodic geodesics on a hyperbolic surface play the role of primes, and the eigenvalues of the Laplacian play the role of Riemann zeros (<a href="#ref-RudnickSarnak1996">Rudnick &amp; Sarnak, 1996</a>). The Riemann zeta function is the limit of a family of such systems, in some sense that is still being made precise.</p>
<p>I find it remarkable that the logarithms of primes — the most elementary sequence in arithmetic — appear as lengths of orbits in what would be a quantum chaotic system. Each prime contributes an oscillation to $\psi(x)$ with &ldquo;frequency&rdquo; proportional to its logarithm. You are, in a sense, hearing the primes as quantum interference.</p>
<p>This connects to a theme that comes up elsewhere on this blog. The <a href="/posts/falling-cat-geometric-phase/">falling cat problem</a> involves Berry phase and geometric holonomy — again a situation where deep structure emerges from symmetry and topology. The <a href="/posts/schrodinger-cat-qubits/">Schrödinger cat in quantum computing</a> involves the spectacular fragility of quantum coherence. The Riemann zeros are, if the conjecture is right, a quantum system that has never decohered — a perfectly coherent spectrum hiding inside the most ancient problem in mathematics.</p>
<h2 id="a-brief-detour-maynard-and-primes-without-digits">A Brief Detour: Maynard and Primes Without Digits</h2>
<p>While we are talking about primes, I cannot resist a detour through two results of James Maynard, who received the Fields Medal in 2022.</p>
<p>The first concerns bounded gaps. Euclid proved that there are infinitely many primes. The Twin Prime Conjecture says there are infinitely many pairs of primes $(p, p+2)$. This remains open. But in 2013, Yitang Zhang proved something extraordinary: there are infinitely many pairs of primes differing by at most 70,000,000 (<a href="#ref-Zhang2014">Zhang, 2014</a>). The bound is large, but the qualitative statement — that gaps between primes are bounded infinitely often — was completely new. Shortly thereafter, Maynard independently proved a much stronger result using the Maynard-Tao sieve: infinitely many prime pairs with gap at most 600 (<a href="#ref-Maynard2015">Maynard, 2015</a>). A crowdsourced effort (Polymath8b) brought the bound down to 246. The Twin Prime Conjecture remains open, but 246 is a long way from 70,000,000.</p>
<p>The second result is stranger. Maynard proved in 2016 that for any decimal digit $d \in \{0, 1, \ldots, 9\}$, there are infinitely many primes whose decimal representation contains no instance of $d$. There are infinitely many primes with no $7$ in their decimal expansion. There are infinitely many primes with no $3$. The proof uses techniques from analytic number theory, specifically exponential sum estimates and sieve methods, and the result holds not just for base 10 but for any base.</p>
<p>This is one of those results that sounds impossible on first hearing. Surely removing an entire digit should make most large numbers unavailable, so the primes run out? Not so. The density of such &ldquo;digitless&rdquo; numbers thins out, but not fast enough to eliminate infinitely many primes.</p>
<h2 id="the-52nd-mersenne-prime-and-what-we-do-not-know">The 52nd Mersenne Prime and What We Do Not Know</h2>
<p>Return to $M_{136{,}279{,}841} = 2^{136{,}279{,}841} - 1$. Mersenne primes have the form $2^p - 1$ where $p$ is a prime (though not all such numbers are prime — $2^{11} - 1 = 2047 = 23 \times 89$). They are tested via the Lucas-Lehmer primality test: define the sequence</p>
$$s_0 = 4, \qquad s_{n+1} = s_n^2 - 2.$$<p>Then $M_p = 2^p - 1$ is prime if and only if $s_{p-2} \equiv 0 \pmod{M_p}$.</p>
<p>The test requires $p - 2$ squarings modulo $M_p$. Each squaring involves numbers with roughly $p$ digits, and modular reduction modulo $M_p = 2^p - 1$ is cheap because it reduces to bit-shifts. This is why GPU parallelism helps enormously: each squaring can be broken into many parallel multiplications of sub-blocks of digits. Durant&rsquo;s cloud network was, in effect, a massively distributed modular arithmetic engine.</p>
<p>We do not know if there are infinitely many Mersenne primes. The heuristic Lenstra-Pomerance-Wagstaff conjecture says yes: the expected number of Mersenne primes $2^p - 1$ with $p \leq x$ is approximately</p>
$$e^\gamma \ln x / \ln 2 \approx 1.78 \cdot \log_2 x,$$<p>where $\gamma \approx 0.5772$ is the Euler-Mascheroni constant. This predicts roughly logarithmic growth in the count — consistent with the 52 known examples — but is nowhere near proved.</p>
<p>The known Mersenne primes do not form a sequence with obviously regular gaps. The exponents $p$ are: 2, 3, 5, 7, 13, 17, 19, 31, 61, 89, 107, 127, &hellip; and then larger, less predictable values. Whether their distribution has GUE-like statistics is not a standard research question (the sample is too small), but the question of whether the primes $p$ for which $2^p - 1$ is prime have any special structure is an active one. For now, the answer is: we do not know.</p>
<h2 id="why-this-matters-and-why-it-does-not-prove-anything">Why This Matters, and Why It Does Not Prove Anything</h2>
<p>Let me be precise about what has and has not been established.</p>
<p>What has been established:</p>
<ul>
<li>Montgomery proved (conditionally, assuming a form of the generalised Riemann Hypothesis) that the pair correlation of Riemann zeros, for a certain range of $r$, is given by $1 - (\sin \pi r / \pi r)^2$.</li>
<li>Odlyzko verified numerically — to extraordinary precision, over billions of zeros — that the full empirical pair correlation matches the GUE prediction.</li>
<li>The Gutzwiller/Selberg analogy between periodic orbits and primes is mathematically precise in related settings (hyperbolic surfaces, function fields over finite fields).</li>
<li>Rudnick and Sarnak proved that the $n$-point correlation functions of Riemann zeros match GUE for all $n$, subject to a plausible conjecture about $\zeta$ (<a href="#ref-RudnickSarnak1996">Rudnick &amp; Sarnak, 1996</a>).</li>
</ul>
<p>What has not been established:</p>
<ul>
<li>There is no known Hamiltonian $\hat{H}$ whose spectrum is the set of Riemann zeros.</li>
<li>The Riemann Hypothesis remains open.</li>
<li>There is no proof that the Montgomery-Odlyzko connection is anything more than an extraordinary numerical coincidence.</li>
</ul>
<p>The broader context is the Langlands program — a still-hypothetical grand unification of number theory, algebraic geometry, and representation theory, sometimes described as a &ldquo;grand unified theory of mathematics.&rdquo; The Langlands correspondence predicts deep connections between $L$-functions (generalisations of $\zeta$) and representations of algebraic groups. The spectral interpretation of Riemann zeros — if it could be made precise — would fit naturally into this framework. Some researchers believe that a proof of the Riemann Hypothesis will come from the Langlands side, not from analytic number theory or quantum mechanics. Others think the quantum chaos connection is the right road. Nobody knows.</p>
<p>What would it mean if the connection is real? It would mean that the prime numbers — discovered by Euclid, studied for two and a half millennia, used today in every TLS handshake and RSA key — are the eigenvalues of a physical Hamiltonian. The abstract number-theoretic structure and the physical quantum mechanical structure would be not merely analogous but identical. That is a claim of the same depth as the unexpected appearance of the same partial differential equations in heat flow, diffusion, and Brownian motion: a discovery that what seemed to be different phenomena are manifestations of the same underlying law.</p>
<p>Or it could be a very surprising coincidence. Mathematics has a long history of producing such coincidences — the same numbers appearing in unrelated contexts for reasons that, when understood, turned out not to be coincidences at all. I suspect this is not a coincidence. But suspicion is not proof.</p>
<h2 id="a-closing-reflection">A Closing Reflection</h2>
<p>I started this post with the 52nd Mersenne prime because it is the news item that prompted me to write. GPU clusters finding 41-million-digit primes are genuinely impressive technology. But I keep returning to the image of Montgomery and Dyson at tea in 1972, and the formula $1 - (\sin \pi r / \pi r)^2$ connecting two conversations that had nothing to do with each other.</p>
<p>I have spent some time with random matrix theory, and separately with the zeta function, and the thing that still strikes me is how <em>clean</em> the connection is. This is not a numerical coincidence of the form &ldquo;these two quantities agree to 3 decimal places.&rdquo; Odlyzko&rsquo;s plots show agreement across many orders of magnitude, for zeros computed billions of entries into the sequence. The GUE curve and the empirical histogram are, visually, the same curve.</p>
<p>As someone trained as a physicist, I find this both encouraging and slightly unsettling. Encouraging because it suggests that the primes are not random — they have a structure, one that matches the eigenvalue repulsion of quantum chaotic systems, and that structure might be the key to proving the Riemann Hypothesis. Unsettling because it means that the quantum mechanical formalism — which I always thought was a description of a physical world — seems to be reaching into pure arithmetic, where there is no wave function, no Hilbert space, no measurement. The primes do not know they are supposed to be energy levels. And yet, statistically, they are.</p>
<p>If you find a flaw in this picture, or know of a result I have missed, I am genuinely interested. Peer review is welcome — open an issue on <a href="https://github.com/sebastianspicker/sebastianspicker.github.io/issues">GitHub</a>.</p>
<hr>
<h2 id="references">References</h2>
<ul>
<li>
<p><span id="ref-Riemann1859"></span>Riemann, B. (1859). Über die Anzahl der Primzahlen unter einer gegebenen Grösse. <em>Monatsberichte der Berliner Akademie</em>.</p>
</li>
<li>
<p><span id="ref-Montgomery1973"></span>Montgomery, H. L. (1973). The pair correlation of zeros of the zeta function. <em>Analytic Number Theory</em>, Proc. Symp. Pure Math., 24, 181–193.</p>
</li>
<li>
<p><span id="ref-Odlyzko1987"></span>Odlyzko, A. M. (1987). On the distribution of spacings between zeros of the zeta function. <em>Mathematics of Computation</em>, 48, 273–308. <a href="https://doi.org/10.2307/2007890">DOI: 10.2307/2007890</a></p>
</li>
<li>
<p><span id="ref-BerryKeating1999"></span>Berry, M. V., &amp; Keating, J. P. (1999). The Riemann zeros and eigenvalue asymptotics. <em>SIAM Review</em>, 41(2), 236–266. <a href="https://doi.org/10.1137/S0036144598347497">DOI: 10.1137/S0036144598347497</a></p>
</li>
<li>
<p><span id="ref-Zhang2014"></span>Zhang, Y. (2014). Bounded gaps between primes. <em>Annals of Mathematics</em>, 179(3), 1121–1174. <a href="https://doi.org/10.4007/annals.2014.179.3.7">DOI: 10.4007/annals.2014.179.3.7</a></p>
</li>
<li>
<p><span id="ref-Maynard2015"></span>Maynard, J. (2015). Small gaps between primes. <em>Annals of Mathematics</em>, 181(1), 383–413. <a href="https://doi.org/10.4007/annals.2015.181.1.7">DOI: 10.4007/annals.2015.181.1.7</a></p>
</li>
<li>
<p><span id="ref-RudnickSarnak1996"></span>Rudnick, Z., &amp; Sarnak, P. (1996). Zeros of principal L-functions and random matrix theory. <em>Duke Mathematical Journal</em>, 81(2), 269–322. <a href="https://doi.org/10.1215/S0012-7094-96-08115-6">DOI: 10.1215/S0012-7094-96-08115-6</a></p>
</li>
<li>
<p><span id="ref-GIMPS2024"></span>GIMPS (2024). 2^136279841-1 is Prime! Great Internet Mersenne Prime Search. Retrieved from <a href="https://www.mersenne.org/primes/?press=M136279841">https://www.mersenne.org/primes/?press=M136279841</a></p>
</li>
</ul>
<hr>
<h2 id="changelog">Changelog</h2>
<ul>
<li><strong>2026-02-17</strong>: Corrected the date of the Montgomery-Dyson meeting from 1973 to 1972 (the paper was published in the 1973 proceedings volume, but the meeting at the IAS took place in April 1972).</li>
</ul>
]]></content:encoded>
    </item>
    <item>
      <title>The Impossible Heptagon</title>
      <link>https://sebastianspicker.github.io/posts/tool-impossible-heptagon/</link>
      <pubDate>Mon, 15 Jan 2024 00:00:00 +0000</pubDate>
      <guid>https://sebastianspicker.github.io/posts/tool-impossible-heptagon/</guid>
      <description>Danny Carey calls it sacred geometry. Gauss proved it non-constructible. They are, unexpectedly, describing the same object.</description>
      <content:encoded><![CDATA[<p>Danny Carey — drummer of Tool, one of the most rhythmically inventive musicians in rock — keeps a seven-pointed star on his kit and speaks about it using the language of sacred geometry. The heptagram appears in Tool&rsquo;s visual artwork, in the Thelemic symbolism Carey draws on, in pre-modern cosmological diagrams, and in the decorative traditions of several cultures that had no contact with each other. The claim, loosely stated, is that seven-fold symmetry is privileged: that it reflects something structurally true, that its forms carry significance beyond the aesthetic.</p>
<p>The scientific reflex here is usually impatience. &ldquo;Sacred geometry&rdquo; occupies an uncomfortable cultural space — mathematically dressed, factually thin, reliant on the listener not checking claims too carefully. The golden ratio does not appear everywhere in nature. Most things described as sacred in this tradition are better described as things the speaker found surprising before learning a more precise vocabulary.</p>
<p>But the heptagon is genuinely strange. Not for the reasons usually given. For a different reason — a theorem.</p>
<p><strong>The regular heptagon cannot be constructed with compass and straightedge.</strong></p>
<p>Not &ldquo;it is difficult.&rdquo; Not &ldquo;no one has found a construction yet.&rdquo; The regular seven-sided polygon — all sides equal, all interior angles equal — is <em>provably impossible</em> to construct using an unmarked ruler and compass in finitely many steps. This has been known since 1801.</p>
<h2 id="the-classical-constraint">The Classical Constraint</h2>
<p>Greek geometry restricted its tools deliberately. An unmarked straightedge draws lines through two known points. A compass draws circles centred at a known point with a given radius. No angle trisection. No markings. No graduated instruments. Just these two operations, applied one at a time, finitely many times.</p>
<p>Within this constraint, a great deal is achievable. A perpendicular bisector. An equilateral triangle. A regular pentagon — which requires the golden ratio and takes some work, but is reachable. A regular hexagon (trivially: six equilateral triangles around a centre).</p>
<p>Then: nothing for the heptagon. Greek geometers left no construction. Medieval Islamic mathematicians, who knew the regular polygon problem well, left no construction. Albrecht Dürer, in his 1525 <em>Underweysung der Messung</em>, gave an approximate construction that falls short by a small but nonzero margin. Each generation encountered the same wall.</p>
<p>In 1796, an 18-year-old Gauss proved that the regular 17-gon <em>is</em> constructible — a result so unexpected that he reportedly decided at that moment to become a mathematician rather than a philologist. In his 1801 <em>Disquisitiones Arithmeticae</em> he gave the complete characterisation of which regular polygons are constructible and which are not <a href="#ref-1">[1]</a>. The heptagon was definitively placed among the impossible.</p>
<h2 id="gausss-theorem">Gauss&rsquo;s Theorem</h2>
<p>A regular $n$-gon is constructible with compass and straightedge if and only if $n$ has the form</p>
$$n = 2^k \cdot p_1 \cdot p_2 \cdots p_m$$<p>where $k \geq 0$ and the $p_i$ are distinct <strong>Fermat primes</strong> — primes of the form $2^{2^j} + 1$.</p>
<p>The Fermat primes currently known:</p>
<table>
  <thead>
      <tr>
          <th>$j$</th>
          <th>$F_j = 2^{2^j}+1$</th>
          <th>Prime?</th>
      </tr>
  </thead>
  <tbody>
      <tr>
          <td>0</td>
          <td>3</td>
          <td>✓</td>
      </tr>
      <tr>
          <td>1</td>
          <td>5</td>
          <td>✓</td>
      </tr>
      <tr>
          <td>2</td>
          <td>17</td>
          <td>✓</td>
      </tr>
      <tr>
          <td>3</td>
          <td>257</td>
          <td>✓</td>
      </tr>
      <tr>
          <td>4</td>
          <td>65537</td>
          <td>✓</td>
      </tr>
      <tr>
          <td>5</td>
          <td>4 294 967 297</td>
          <td>✗ (Euler, 1732)</td>
      </tr>
      <tr>
          <td>6</td>
          <td>18 446 744 073 709 551 617</td>
          <td>✗</td>
      </tr>
      <tr>
          <td>⋮</td>
          <td>⋮</td>
          <td>no further Fermat primes known</td>
      </tr>
  </tbody>
</table>
<p>Five Fermat primes are known, all identified by the seventeenth century. Fermat himself conjectured that all numbers of this form are prime; he was wrong from $j = 5$ onward. Whether any further Fermat primes exist remains an open problem.</p>
<p>The constructible regular polygons therefore include the triangle (3), square (4), pentagon (5), hexagon (6), octagon (8), decagon (10), 15-gon, 17-gon, 257-gon, 65537-gon, and products of these with powers of 2. The 65537-gon was actually fully constructed by Johann Gustav Hermes, who spent around ten years on the computation in the 1880s and deposited a manuscript reportedly filling a large trunk at the University of Göttingen, where it remains.</p>
<p>Seven is prime, but $7 \neq 2^{2^j} + 1$ for any $j$ — it is not a Fermat prime. Therefore the regular heptagon is not on the list. It is not constructible.</p>
<h2 id="the-algebra-behind-the-geometry">The Algebra Behind the Geometry</h2>
<p>Why does the structure of Fermat primes determine constructibility? The connection goes through algebra <a href="#ref-2">[2]</a><a href="#ref-3">[3]</a>.</p>
<p>Every compass-and-straightedge construction corresponds to solving a sequence of equations of degree at most 2. Bisecting an angle, finding an intersection of a line and a circle — each step is a quadratic operation. After $k$ such steps, the numbers reachable lie in some field extension of $\mathbb{Q}$ (the rationals) with degree over $\mathbb{Q}$ at most $2^k$. Constructibility therefore requires the degree of the relevant extension to be a power of 2.</p>
<p>To construct a regular $n$-gon, you need to construct the angle $2\pi/n$, which requires constructing $\cos(2\pi/n)$. The question is: over what kind of field extension does $\cos(2\pi/n)$ sit?</p>
<p>For $n = 7$: let $\omega = e^{2\pi i/7}$, a primitive 7th root of unity. The minimal polynomial of $\omega$ over $\mathbb{Q}$ is the 7th cyclotomic polynomial</p>
$$\Phi_7(x) = x^6 + x^5 + x^4 + x^3 + x^2 + x + 1,$$<p>which is irreducible over $\mathbb{Q}$, giving $[\mathbb{Q}(\omega) : \mathbb{Q}] = 6$. Since $\cos(2\pi/7) = (\omega + \omega^{-1})/2$, and since $\omega$ satisfies a degree-2 polynomial over $\mathbb{Q}(\cos 2\pi/7)$, we get</p>
$$[\mathbb{Q}(\cos 2\pi/7) : \mathbb{Q}] = 3.$$<p>Specifically, $c = \cos(2\pi/7)$ is the root of the irreducible cubic</p>
$$8c^3 + 4c^2 - 4c - 1 = 0,$$<p>or equivalently, $\alpha = 2\cos(2\pi/7)$ satisfies</p>
$$\alpha^3 + \alpha^2 - 2\alpha - 1 = 0.$$<p>The three roots of this cubic are $2\cos(2\pi/7)$, $2\cos(4\pi/7)$, and $2\cos(6\pi/7)$. By Vieta&rsquo;s formulas their sum is $-1$ and their product is $1$ — which can be verified directly from the identity $\cos(2\pi/7) + \cos(4\pi/7) + \cos(6\pi/7) = -1/2$.</p>
<p>The degree of the extension is 3. Three is not a power of 2. Therefore $\cos(2\pi/7)$ cannot be reached by any tower of quadratic extensions of $\mathbb{Q}$. Therefore the regular heptagon is not constructible. $\square$</p>
<p>Compare the pentagon: $\cos(2\pi/5) = (\sqrt{5}-1)/4$, satisfying the quadratic $4x^2 + 2x - 1 = 0$. Degree 2 — a power of 2. Constructible.</p>
<p>The 17-gon: the Galois group of $\mathbb{Q}(\zeta_{17})/\mathbb{Q}$ is $(\mathbb{Z}/17\mathbb{Z})^* \cong \mathbb{Z}/16\mathbb{Z}$, order $16 = 2^4$. The extension decomposes into four quadratic steps. This is exactly what Gauss computed at 18.</p>
<p>For 7: $(\mathbb{Z}/7\mathbb{Z})^* \cong \mathbb{Z}/6\mathbb{Z}$, order $6 = 2 \times 3$. The factor of 3 is the obstruction. The Galois group is not a 2-group, so the extension cannot be decomposed into quadratic steps. The heptagon is out of reach.</p>
<h2 id="sacred-precisely">Sacred, Precisely</h2>
<p>The phrase &ldquo;sacred geometry&rdquo; usually does work that &ldquo;elegant mathematics&rdquo; could do more honestly. But the heptagon is a case where something with genuine mathematical content sits underneath the mystical framing.</p>
<p>The Platonic tradition held that certain geometric forms exist as ideals — perfect, unchanging, more real than their physical approximations. The philosopher&rsquo;s claim is that the heptagon exists in a realm beyond its material instantiation. The mathematician&rsquo;s claim is: the heptagon is perfectly well-defined — seven equal sides, seven equal angles — but it cannot be reached from $\mathbb{Q}$ by the operations available to ruler and compass. You can approximate it to any desired precision. You can construct it exactly using origami, which allows angle trisection and is strictly more powerful than compass and straightedge <a href="#ref-4">[4]</a>. But the classical constructive program — the one that reaches the pentagon, the hexagon, the 17-gon, the 65537-gon — cannot reach the heptagon.</p>
<p>There is a precise mathematical sense in which it lies outside the constructible world. Whether that constitutes sacredness is a question for a different kind of argument. But it is not nothing. The Pythagoreans were working without Galois theory; they had an intuition without the theorem. The theorem, when it came, confirmed that intuition about seven while explaining it more clearly than they could.</p>
<p>Carey&rsquo;s intuition — that 7 sits outside the ordinary — is, by this route, formally correct.</p>
<h2 id="what-the-heptagram-is">What the Heptagram Is</h2>
<p>The regular heptagon may be impossible to construct exactly, but the heptagram — the seven-pointed star — is perfectly drawable. Connecting every second vertex of an approximate regular heptagon gives $\{7/2\}$ in Schläfli notation <a href="#ref-5">[5]</a>; connecting every third vertex gives $\{7/3\}$. Both are closed figures. Both appear throughout pre-modern symbolic traditions, which is unsurprising: they are the most intricate star polygons drawable with a single pen stroke before complexity outruns visibility.</p>
<p>They are also generators of rhythmic structure. Because 7 is prime, every star polygon on seven points visits all seven vertices in a single closed traversal — a property that does not hold for six-pointed or eight-pointed stars. This turns out to matter for how drum patterns are built across multiple bars. That connection — from the primality of 7 to the architecture of rhythmic accent cycles — is the subject of the companion post, <a href="/posts/tool-star-polygons-drum-machines/">Star Polygons and Drum Machines</a>.</p>
<p>The broader series on mathematics in Tool&rsquo;s music began with the Fibonacci structure embedded in the time signatures and syllable counts of &ldquo;Lateralus&rdquo; <a href="#ref-6">[6]</a>, and the group-theoretic structure underlying twelve-tone equal temperament provides the same algebraic scaffolding seen here <a href="#ref-7">[7]</a>.</p>
<h2 id="references">References</h2>
<p><span id="ref-1"></span>[1] Gauss, C.F. (1801). <em>Disquisitiones Arithmeticae</em>. Leipzig: Fleischer. (§VII.)</p>
<p><span id="ref-2"></span>[2] Stewart, I. (2004). <em>Galois Theory</em> (3rd ed.). CRC Press. Ch. 4.</p>
<p><span id="ref-3"></span>[3] Conway, J.H. &amp; Guy, R.K. (1996). <em>The Book of Numbers</em>. Springer. pp. 190–202.</p>
<p><span id="ref-4"></span>[4] Hull, T. (2011). Solving cubics with creases: The work of Beloch and Lill. <em>The American Mathematical Monthly</em>, 118(4), 307–315. <a href="https://doi.org/10.4169/amer.math.monthly.118.04.307">DOI: 10.4169/amer.math.monthly.118.04.307</a></p>
<p><span id="ref-5"></span>[5] Coxeter, H.S.M. (1973). <em>Regular Polytopes</em> (3rd ed.). Dover. Ch. 2.</p>
<p><span id="ref-6"></span>[6] See <a href="/posts/fibonacci-lateralus/">Fibonacci and Lateralus</a> on this blog.</p>
<p><span id="ref-7"></span>[7] See <a href="/posts/twelve-tet-group-theory-musical-tuning/">Twelve-TET and Group Theory</a> on this blog.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Twelve Is Not an Accident: The Group Theory of Musical Tuning</title>
      <link>https://sebastianspicker.github.io/posts/twelve-tet-group-theory-musical-tuning/</link>
      <pubDate>Fri, 15 Dec 2023 00:00:00 +0000</pubDate>
      <guid>https://sebastianspicker.github.io/posts/twelve-tet-group-theory-musical-tuning/</guid>
      <description>Why does the octave divide into twelve? The answer lies not in aesthetics but in the continued-fraction convergents of log₂(3/2) — and the same group structure that gives Messiaen his modes.</description>
      <content:encoded><![CDATA[<p>Sit down at a piano and count the keys in one octave. Twelve. Seven white, five black, twelve total pitch classes before the pattern repeats. Ask a musician why twelve and they will probably say something about Western tradition, the church modes, or maybe vaguely gesture at the circle of fifths. Ask a musicologist and you might hear about Pythagoras, or the development of equal temperament in the Baroque period, or the well-tempered tuning systems of J. S. Bach. All of that history is real and worth knowing. But none of it explains <em>why</em> the number 12 works, and why every serious attempt at a usable keyboard instrument across widely separated cultures converges on the same cardinality.</p>
<p>The real answer is in number theory. Specifically, it is in the continued fraction expansion of a single irrational number: $\log_2(3/2)$. The number 12 is not a cultural choice. It is the smallest integer that gives a genuinely good rational approximation to that number — subject to the constraint that a human hand can navigate the resulting keyboard. Once you see the argument, the feeling of contingency evaporates completely. Twelve is forced on us.</p>
<p>Along the way, the same mathematical structure — the cyclic group $\mathbb{Z}_{12}$ — explains why Messiaen&rsquo;s modes of limited transposition exist, why the circle of fifths closes exactly, and why certain chord types (augmented triads, diminished seventh chords, the whole-tone scale) have a strange self-similar quality that composers have exploited for centuries. If you want the full treatment of the Messiaen connection, I wrote a dedicated post: <a href="/posts/messiaen-modes-group-theory/">Messiaen, Modes, and the Group Theory of Harmony</a>. Here I want to build the foundations from scratch, starting with the one interval that makes all of this necessary.</p>
<hr>
<h2 id="the-interval-that-started-everything">The interval that started everything</h2>
<p>The perfect fifth has a frequency ratio of exactly 3:2. Play two strings in that ratio and the sound is stable, open, and unmistakably consonant — second only to the octave (2:1) in the hierarchy of simple intervals. The reason is physics: the overtone series of any vibrating string includes the fundamental frequency $f$, then $2f$, $3f$, $4f$, and so on. Two notes a perfect fifth apart share the overtone at $3f$ (for the lower note) and $2f'$ (for the upper note, where $f' = 3f/2$): those are the same frequency, $3f$. Shared overtones mean the two notes reinforce rather than fight each other. This is why the fifth sounds stable: it is literally built into the harmonic structure of physical vibration.</p>
<p>Humans discovered the fifth independently in ancient Greece, China, India, and Mesopotamia. It is not a cultural artifact <a href="#ref-4">[4]</a>. Given that stability, it is natural to ask: can we build a complete pitch system by stacking fifths? Take a starting note, go up a fifth, up another, up another, and keep going. The notes you produce — C, G, D, A, E, B, F♯, … — are acoustically related to the starting point in a simple way, and they sound good together. This is the Pythagorean tuning system, and it underlies the construction of diatonic scales.</p>
<p>But here is the problem. A fifth raises the pitch by a factor of 3/2. An octave raises it by a factor of 2. These are independent: one is a power of 3 and the other a power of 2, and no power of 3/2 will ever equal a power of 2 exactly. In the language of modern mathematics, $\log_2(3/2)$ is irrational — this follows directly from the fundamental theorem of arithmetic, since no product of powers of 2 can equal a product of powers of 3. Whether it is also transcendental is an open question; a proof would follow from Schanuel&rsquo;s conjecture, but that conjecture remains unresolved. What matters for tuning is the irrationality alone. Stacking pure fifths and stacking octaves are incommensurable operations. The circle of fifths can never close in pure Pythagorean tuning. We will always end up slightly sharp or flat relative to where we started.</p>
<p>This incommensurability is the central problem of musical tuning. Everything else — equal temperament, just intonation, meantone tuning, the Pythagorean comma, the whole apparatus of tuning theory — is a response to it.</p>
<hr>
<h2 id="equal-temperament-and-the-approximation-problem">Equal temperament and the approximation problem</h2>
<p>In an equal temperament with $N$ notes per octave, we divide the octave into $N$ equal logarithmic steps. Each step corresponds to a frequency ratio of $2^{1/N}$. We then ask: how many steps $k$ gives the best approximation to a perfect fifth?</p>
<p>The condition is simply that $2^{k/N}$ should be close to $3/2$, which means $k/N$ should be close to $\log_2(3/2)$. So we need a good rational approximation to</p>
$$\log_2\!\left(\frac{3}{2}\right) = \log_2 3 - 1 \approx 0.584962\ldots$$<p>The classical tool for finding best rational approximations is the continued fraction. Any real number $x$ can be written as</p>
$$x = a_0 + \cfrac{1}{a_1 + \cfrac{1}{a_2 + \cfrac{1}{a_3 + \cdots}}}$$<p>where the $a_i$ are non-negative integers (positive for $i \geq 1$), called the partial quotients. For $\log_2(3/2)$ the expansion is</p>
$$\log_2\!\left(\frac{3}{2}\right) = [0;\, 1,\, 1,\, 2,\, 2,\, 3,\, 1,\, 5,\, 2,\, 23,\, 2,\, \ldots]$$<p>The truncated continued fractions — the convergents — give the sequence of best rational approximations:</p>
$$\frac{0}{1},\quad \frac{1}{1},\quad \frac{1}{2},\quad \frac{3}{5},\quad \frac{7}{12},\quad \frac{24}{41},\quad \frac{31}{53},\quad \frac{179}{306},\quad \ldots$$<p>Each convergent $k/N$ corresponds to a tuning system: the denominator $N$ is the number of equal steps per octave, and the numerator $k$ is the number of steps that best approximates a fifth. So we get: 1-TET (trivial), 2-TET (trivial), 5-TET, 12-TET, 41-TET, 53-TET, 306-TET, and so on <a href="#ref-1">[1]</a>, <a href="#ref-2">[2]</a>.</p>
<p>The key property of convergents is that they give <em>uniquely good</em> approximations. No rational number with a smaller denominator comes closer to the true value than a convergent does. So 7/12 is not merely a decent approximation to $\log_2(3/2)$ — it is provably the best approximation with denominator at most 12. To do better with a denominator below 41, you cannot.</p>
<p>To put numbers on it: in 12-TET, the fifth is $2^{7/12} \approx 1.498307\ldots$, while the true fifth is exactly $1.500000$. The error is about 0.11%, or roughly 2 cents (hundredths of a semitone). In 53-TET, the fifth is $2^{31/53} \approx 1.499941\ldots$, an error of less than 0.004%, about 0.07 cents — essentially indistinguishable from pure. Both 12 and 53 are convergents. Intermediate values like 19-TET or 31-TET are not convergents (they are not best approximations), and their fifths, while sometimes used in experimental or microtonal music, are less accurate relative to their complexity.</p>
<p>Why does this matter? Because a tuning system that approximates the fifth poorly will produce harmonies that beat visibly — the slight mistuning causes the sound to waver in a way that trained ears find uncomfortable in sustained chords. A good fifth approximation is not a luxury; it is the condition for the system to be musically usable in the harmonic practice that most of the world&rsquo;s music assumes.</p>
<hr>
<h2 id="the-pythagorean-comma">The Pythagorean comma</h2>
<p>Before equal temperament became standard (roughly the 18th century in Western Europe), instruments were tuned using pure Pythagorean fifths: exact 3:2 ratios, stacked on top of each other. This gives beautiful, stable individual fifths, but it collects a debt.</p>
<p>After stacking 12 pure fifths, you have climbed in frequency by $(3/2)^{12}$:</p>
$$(3/2)^{12} = \frac{3^{12}}{2^{12}} = \frac{531441}{4096} \approx 129.746\ldots$$<p>Meanwhile, 7 octaves is $2^7 = 128$. The ratio between these is</p>
$$\frac{(3/2)^{12}}{2^7} = \frac{3^{12}}{2^{19}} = \frac{531441}{524288} \approx 1.01364$$<p>This is the Pythagorean comma: roughly 23.46 cents, or about a quarter of a semitone <a href="#ref-4">[4]</a>. In Pythagorean tuning, the circle of fifths never closes. After 12 fifths you arrive at a note that is nominally the same pitch class as the starting point — but sharp by 23.46 cents. That final fifth, the one that &ldquo;should&rdquo; close the circle, sounds badly out of tune. It was historically called the &ldquo;wolf fifth&rdquo; because it howls.</p>
<p>Equal temperament solves this by distributing the comma across all 12 fifths. Each fifth is flattened by $23.46/12 \approx 1.955$ cents. The individual fifths are no longer pure, but the error is small enough to be acceptable — and crucially, it is <em>uniform</em>, so every key sounds equally good (or equally impure, depending on your perspective).</p>
<p>The Pythagorean comma being small — about 1.96% of the octave — is precisely why 12-TET works. It is small because 7/12 is an unusually good convergent of $\log_2(3/2)$. The two facts are the same fact. The comma is the numerator of the error when you approximate $\log_2(3/2)$ by $7/12$, multiplied up by 12 fifths&rsquo; worth of accumulation. When the approximation is good, the comma is small, and the distribution is imperceptible. This is why the piano is tuned the way it is.</p>
<hr>
<h2 id="the-group-theory">The group theory</h2>
<p>We are now ready for the algebra. In 12-TET, pitch classes form the set $\{0, 1, 2, \ldots, 11\}$ where we identify 0 with C, 1 with C♯, 2 with D, 3 with D♯, 4 with E, 5 with F, 6 with F♯, 7 with G, 8 with G♯, 9 with A, 10 with A♯, and 11 with B. Addition is modulo 12: after 11 comes 0 again, because after B comes C in the next octave (same pitch class). This is $\mathbb{Z}_{12}$, the integers mod 12, and it is a group under addition <a href="#ref-1">[1]</a>.</p>
<p>Transposition by a semitone is addition of 1. Transposition by a perfect fifth is addition of 7, because the fifth is 7 semitones in 12-TET. Start from C (0) and repeatedly add 7, always reducing modulo 12:</p>
$$0 \to 7 \to 14 \equiv 2 \to 9 \to 16 \equiv 4 \to 11 \to 18 \equiv 6 \to 13 \equiv 1 \to 8 \to 15 \equiv 3 \to 10 \to 17 \equiv 5 \to 12 \equiv 0$$<p>In note names: C, G, D, A, E, B, F♯, C♯, G♯, D♯/E♭, A♯/B♭, F, C. That is the circle of fifths — all 12 pitch classes visited exactly once before returning to the start. The circle of fifths is the orbit of 0 under repeated addition of 7 in $\mathbb{Z}_{12}$.</p>
<p>Why does the orbit visit all 12 elements? Because $\gcd(7, 12) = 1$. This is Bézout&rsquo;s theorem applied to cyclic groups: an element $g$ generates $\mathbb{Z}_n$ (i.e., its orbit under repeated addition covers all of $\mathbb{Z}_n$) if and only if $\gcd(g, n) = 1$. The generators of $\mathbb{Z}_{12}$ are exactly the elements coprime to 12: that is $\{1, 5, 7, 11\}$. Musically: transposition by 1 semitone (chromatic scale), by 5 semitones (perfect fourth), by 7 semitones (perfect fifth), or by 11 semitones (major seventh) each generates all 12 pitch classes. Transposition by 2 (a whole tone) does not — it produces only the 6-element whole-tone scale. Transposition by 3 (a minor third) produces only the 4-element diminished seventh chord.</p>
<p>This is not a curiosity; it is the algebraic skeleton of tonal music. The circle of fifths closes because 7 and 12 are coprime. That coprimality is guaranteed by the continued fraction structure: the numerator and denominator of a convergent in lowest terms are always coprime (as they must be, being a reduced fraction), and 7/12 is such a convergent.</p>
<p>Now consider the subgroups of $\mathbb{Z}_{12}$. By Lagrange&rsquo;s theorem, subgroups of a finite group must have orders dividing the group order. The divisors of 12 are 1, 2, 3, 4, 6, and 12, so these are the only possible subgroup orders. For cyclic groups there is exactly one subgroup of each order dividing $n$, and it is generated by $n/d$ where $d$ is the subgroup order. The full list:</p>
<p>The trivial subgroup of order 1 is just $\{0\}$. The subgroup of order 2 is $\{0, 6\}$, generated by 6 — that is, the tritone axis, the interval of exactly half an octave. The subgroup of order 3 is $\{0, 4, 8\}$, generated by 4 — this is the augmented triad, three notes equally spaced around the octave by major thirds. The subgroup of order 4 is $\{0, 3, 6, 9\}$, generated by 3 — the diminished seventh chord, four notes equally spaced by minor thirds. The subgroup of order 6 is $\{0, 2, 4, 6, 8, 10\}$, generated by 2 — the whole-tone scale. And the full group of order 12 is all of $\mathbb{Z}_{12}$.</p>
<p>Each of these has a musical life. The augmented triad ($\{0, 4, 8\}$) sounds ambiguous because it maps onto itself under transposition by a major third — there are only 4 distinct augmented triads total, not 12. Composers exploit this ambiguity when they want harmonic instability without committing to a direction. The diminished seventh ($\{0, 3, 6, 9\}$) is similarly ambiguous: it has only 3 distinct forms and can resolve to any of several keys, which is why it appears so often at structural pivots in Romantic music. These properties are direct consequences of the subgroup structure of $\mathbb{Z}_{12}$.</p>
<hr>
<h2 id="messiaens-modes-as-cosets">Messiaen&rsquo;s modes as cosets</h2>
<p>Olivier Messiaen described his &ldquo;modes of limited transposition&rdquo; in his 1944 treatise <em>Technique de mon langage musical</em>. He identified seven scales — including the whole-tone scale and the octatonic scale — that have the peculiar property of mapping onto themselves under some transposition strictly smaller than an octave. He found them by ear, by introspection, and by exhaustive search at the keyboard. He did not have the group theory. But the group theory makes their existence not merely explainable but <em>inevitable</em>.</p>
<p>Here is the key definition. A scale $S \subseteq \mathbb{Z}_{12}$ is a mode of limited transposition if there exists some $t \in \{1, 2, \ldots, 11\}$ such that $S + t \equiv S \pmod{12}$ (as a set). In other words, transposing the scale by $t$ semitones maps the scale onto itself. The integer $t$ is called a period of the scale.</p>
<p>Now, the set of all periods of $S$ — together with 0 — forms a subgroup of $\mathbb{Z}_{12}$ (it is closed under addition modulo 12, since if both $t_1$ and $t_2$ are periods then so is $t_1 + t_2$). Call this subgroup $H$. The condition for $S$ to be a mode of limited transposition is simply that $H$ is nontrivial — that is, $H \neq \{0\}$.</p>
<p>Moreover, if $H$ is the period subgroup of $S$, then $S$ must be a union of cosets of $H$ in $\mathbb{Z}_{12}$. This follows immediately from the fact that $H$ acts on $S$ by translation and maps $S$ to itself: every element of $S$ belongs to exactly one coset of $H$, and $S$ is a union of whole cosets. The size of $S$ must therefore be a multiple of $|H|$.</p>
<p>The whole-tone scale $\{0, 2, 4, 6, 8, 10\}$ is itself the unique subgroup of order 6 in $\mathbb{Z}_{12}$. Its period subgroup is the whole-tone scale itself. Transposing by any even number (2, 4, 6, 8, or 10) maps it to itself. Transposing by an odd number gives the complementary whole-tone scale $\{1, 3, 5, 7, 9, 11\}$. There are therefore only 2 distinct transpositions of the whole-tone scale, not 12.</p>
<p>The octatonic (diminished) scale $\{0, 1, 3, 4, 6, 7, 9, 10\}$ has period subgroup $\{0, 3, 6, 9\}$ — the subgroup of order 4. It is a union of two cosets: $\{0, 3, 6, 9\}$ itself and $\{1, 4, 7, 10\}$. Transposing by 3 maps it onto itself. There are only 3 distinct transpositions. Messiaen calls this his Mode 2.</p>
<p>The general formula is clean: a mode of limited transposition with period subgroup of order $d$ has exactly $12/d$ distinct transpositions. For the whole-tone scale, $d = 6$ gives $12/6 = 2$ transpositions. For the octatonic scale, $d = 4$ gives $12/4 = 3$ transpositions.</p>
<p>What Messiaen found by ear was the complete classification of subsets of $\mathbb{Z}_{12}$ that are unions of cosets of a nontrivial subgroup <a href="#ref-5">[5]</a>. The group theory makes their existence a theorem rather than a discovery. I find this genuinely beautiful: a composer&rsquo;s intuition about harmonic symmetry turns out to be an exercise in the theory of cosets of cyclic groups. For the full analysis of each of Messiaen&rsquo;s seven modes in these terms, see <a href="/posts/messiaen-modes-group-theory/">Messiaen, Modes, and the Group Theory of Harmony</a>.</p>
<hr>
<h2 id="why-not-53">Why not 53?</h2>
<p>Given that 53-TET approximates the fifth with an error of less than 0.004% — compared to 12-TET&rsquo;s 0.11% — one might ask why we do not simply use 53-TET. The mathematical case is overwhelming. In addition to the nearly perfect fifth, 53-TET gives excellent approximations to the just major third (frequency ratio 5:4) and the just minor third (6:5). It was seriously advocated by the 19th-century theorist Robert Holford Macdowall Bosanquet, who even built a 53-key harmonium to demonstrate it. The Chinese theorist Jing Fang described a 53-note system in the 1st century BC. The Arabic music theorist Al-Farabi considered 53-division scales in the 10th century. Everyone who has ever thought carefully about tuning arrives at 53 eventually.</p>
<p>And yet no 53-TET instrument has ever entered widespread use. The reason is anatomical, not mathematical. A piano with 53 keys per octave spans more than 2 metres per octave at any reasonable key size — impossible to play. A guitar with 53 frets per octave has frets spaced roughly 3–4 millimetres apart in the upper register: no human fingertip is narrow enough to press a single fret without touching its neighbours. Even if you could play it, reading 53-TET notation would require an entirely new theoretical and pedagogical apparatus.</p>
<p>The constraint is: we want the largest $N$ such that (a) $N$ is a convergent denominator of $\log_2(3/2)$, so the fifth approximation is genuinely good, and (b) $N$ is small enough to navigate with human hands and readable at a glance. The convergent denominators are 1, 2, 5, 12, 41, 53, 306, &hellip; Of these, 12 is the largest that satisfies condition (b). The next convergent, 41, already strains human dexterity — 41-TET keyboard instruments have been built experimentally but never mass-produced. At 53 the case is closed.</p>
<p>One might argue about where exactly the cutoff is, and reasonable people might draw it at 19 or 31 (which are not convergents but have other virtues). But the point is that 12 is not merely a local optimum found by trial and error. It is the specific value where the continued fraction and human physiology intersect.</p>
<hr>
<h2 id="closing">Closing</h2>
<p>There is something I find genuinely satisfying about this argument. Music feels like the most human of activities — expressive, cultural, steeped in history and tradition. And yet the number 12, which lies at the foundation of so much of the world&rsquo;s music, is not a human choice at all. It is the continued-fraction convergent of an irrational number that was fixed by the physics of vibrating strings long before any human struck a tuning fork.</p>
<p>The circle of fifths closes because $\gcd(7, 12) = 1$: a fact about integers, not about culture. Messiaen&rsquo;s modes exist because $\mathbb{Z}_{12}$ has nontrivial proper subgroups: a fact about cyclic groups, not about 20th-century French aesthetics. The augmented triad sounds ambiguous because it is a coset of the order-3 subgroup of $\mathbb{Z}_{12}$: a fact about quotient groups, not about Romantic harmony conventions.</p>
<p>I came to music theory sideways — through acoustics, then signal processing, then the mathematics of scales. What surprised me, when I finally worked through the continued fraction argument properly, was not that the math existed but that it was so <em>tight</em>. There is essentially no freedom in the answer. Given the constraint that a musical scale should be built around the most consonant interval (after the octave), should form a closed group structure, and should be navigable by a human performer, the answer is 12. Not approximately 12, not 12 as a historical compromise. Exactly 12.</p>
<p>The number is not a tradition. It is a theorem.</p>
<hr>
<p>For more on related themes: the Fibonacci sequence and golden ratio in music appear in <a href="/posts/fibonacci-lateralus/">Fibonacci, Lateralus, and the Golden Ratio</a>. The Euclidean algorithm and rhythmic structure are explored in <a href="/posts/euclidean-rhythms/">Euclidean Rhythms</a> — a sister post to this one in the math-and-music thread. And for the physics of audio sampling rates, where a similar interplay of number theory and practical constraints forces another specific number, see <a href="/posts/why-44100-hz-cd-sampling-rate/">Why 44,100 Hz?</a>.</p>
<hr>
<h2 id="references">References</h2>
<p><span id="ref-1"></span>[1] Balzano, G. J. (1980). The group-theoretic description of 12-fold and microtonal pitch systems. <em>Computer Music Journal</em>, 4(4), 66–84.</p>
<p><span id="ref-2"></span>[2] Carey, N., &amp; Clampitt, D. (1989). Aspects of well-formed scales. <em>Music Theory Spectrum</em>, 11(2), 187–206.</p>
<p><span id="ref-3"></span>[3] Milne, A., Sethares, W. A., &amp; Plamondon, J. (2007). Isomorphic controllers and dynamic tuning. <em>Computer Music Journal</em>, 31(4), 15–32.</p>
<p><span id="ref-4"></span>[4] Lloyd, L. S., &amp; Boyle, H. (1978). <em>Intervals, Scales and Temperaments</em>. St. Martin&rsquo;s Press.</p>
<p><span id="ref-5"></span>[5] Douthett, J., &amp; Steinbach, P. (1998). Parsimonious graphs: A study in parsimony, contextual transformations, and modes of limited transposition. <em>Journal of Music Theory</em>, 42(2), 241–263.</p>
<hr>
<h2 id="changelog">Changelog</h2>
<ul>
<li><strong>2025-11-20</strong>: Updated the spelling of &ldquo;Robert Holford Macdowall Bosanquet&rdquo; (previously rendered as &ldquo;Macdowell&rdquo;).</li>
<li><strong>2025-11-20</strong>: Changed &ldquo;about 1.36% of the octave&rdquo; to &ldquo;about 1.96% of the octave.&rdquo; The 1.36% figure is the frequency ratio above unity (531441/524288 ≈ 1.01364); the logarithmic fraction of the 1200-cent octave is 23.46/1200 ≈ 1.96%.</li>
<li><strong>2025-11-20</strong>: Changed &ldquo;12 octaves&rsquo; worth of accumulation&rdquo; to &ldquo;12 fifths&rsquo; worth of accumulation.&rdquo; The Pythagorean comma accumulates over 12 stacked fifths (which span approximately 7 octaves), not 12 octaves.</li>
</ul>
]]></content:encoded>
    </item>
    <item>
      <title>Spiral Out: Tool&#39;s Lateralus, the Fibonacci Sequence, and the Mathematics of Musical Structure</title>
      <link>https://sebastianspicker.github.io/posts/fibonacci-lateralus/</link>
      <pubDate>Tue, 08 Nov 2022 00:00:00 +0000</pubDate>
      <guid>https://sebastianspicker.github.io/posts/fibonacci-lateralus/</guid>
      <description>Alongside physics and astronomy, two other things have occupied an unreasonable share of my attention since adolescence: mathematics and music. Lateralus by Tool — released 2001, still in rotation — is the piece that most conspicuously occupies the intersection. The song is structurally built around the Fibonacci sequence, from the syllable counts in Maynard Keenan&amp;rsquo;s vocals to the time signature pattern that concatenates to F(16). This post works through the mathematics in some detail and asks why it works musically.</description>
      <content:encoded><![CDATA[<h2 id="two-passions-one-song">Two Passions, One Song</h2>
<p>Physics training means coming to mathematics as a tool before arriving at it as
an object of aesthetic interest, and it
took me longer than it should have to notice that a proof can be
beautiful in the same way a piece of music can be beautiful — not
despite its rigour but because of it. Both reward attention to
structure. Both have surfaces accessible to a casual listener and depths
that only reveal themselves when you look harder.</p>
<p>Lateralus, the title track of Tool&rsquo;s 2001 album, is a convenient case
study for the overlap. It is not the only piece of music built around
Fibonacci numbers — Bartók made the connection decades earlier, and it
appears in scattered places across Western and non-Western traditions —
but it is among the most thoroughly and deliberately constructed, and
the mathematical structure is audible rather than merely theoretical.</p>
<p>What follows is an attempt to do justice to both dimensions: the
mathematics of the Fibonacci sequence and the golden ratio, and the
musical mechanics of how those structures show up and what they do.</p>
<hr>
<h2 id="the-fibonacci-sequence">The Fibonacci Sequence</h2>
<p>The sequence is defined by a recurrence relation. Starting from the
initial values $F(1) = 1$ and $F(2) = 1$, each subsequent term is the
sum of the two preceding ones:</p>
$$F(n) = F(n-1) + F(n-2), \quad n \geq 3$$<p>This gives:</p>
$$1,\; 1,\; 2,\; 3,\; 5,\; 8,\; 13,\; 21,\; 34,\; 55,\; 89,\; 144,\; 233,\; 377,\; 610,\; \mathbf{987},\; 1597,\; \ldots$$<p>The term $987$ is the sixteenth Fibonacci number, $F(16)$. Keep that
in mind.</p>
<p>The recurrence can be encoded compactly in a matrix formulation. For
$n \geq 1$:</p>
$$\begin{pmatrix} F(n+1) \\ F(n) \end{pmatrix} = \begin{pmatrix} 1 & 1 \\ 1 & 0 \end{pmatrix}^n \begin{pmatrix} 1 \\ 0 \end{pmatrix}$$<p>This is more than notational tidiness — it connects the Fibonacci
sequence to the eigenvalues of the matrix
$\mathbf{A} = \bigl(\begin{smallmatrix}1 & 1 \\ 1 & 0\end{smallmatrix}\bigr)$,
which are exactly $\varphi$ and $-1/\varphi$ where $\varphi$ is the
golden ratio. That connection gives us Binet&rsquo;s formula, a closed-form
expression for the $n$-th Fibonacci number:</p>
$$F(n) = \frac{\varphi^n - \psi^n}{\sqrt{5}}, \quad \varphi = \frac{1+\sqrt{5}}{2},\quad \psi = \frac{1-\sqrt{5}}{2} = -\frac{1}{\varphi}$$<p>Since $|\psi| < 1$, the term $\psi^n / \sqrt{5}$ diminishes rapidly,
and for large $n$ we have the convenient approximation:</p>
$$F(n) \approx \frac{\varphi^n}{\sqrt{5}}$$<p>This means Fibonacci numbers grow <em>exponentially</em>, at a rate governed by
the golden ratio. The sequence does not grow linearly or polynomially; it
spirals outward.</p>
<hr>
<h2 id="the-golden-ratio">The Golden Ratio</h2>
<p>The golden ratio $\varphi$ appears as the limit of consecutive Fibonacci
ratios:</p>
$$\varphi = \lim_{n \to \infty} \frac{F(n+1)}{F(n)} = \frac{1+\sqrt{5}}{2} \approx 1.61803\ldots$$<p>It can be derived from a simple geometric proportion: divide a line
segment into two parts such that the ratio of the whole segment to the
longer part equals the ratio of the longer part to the shorter part.
Calling those ratios $r$:</p>
$$\frac{a+b}{a} = \frac{a}{b} = r \implies r^2 - r - 1 = 0 \implies r = \frac{1+\sqrt{5}}{2} = \varphi$$<p>What makes $\varphi$ mathematically distinctive is its continued fraction
representation:</p>
$$\varphi = 1 + \cfrac{1}{1 + \cfrac{1}{1 + \cfrac{1}{1 + \cdots}}}$$<p>This is the simplest possible infinite continued fraction. It is also, in
a precise sense, the <em>hardest</em> real number to approximate by rational
fractions. The convergents of a continued fraction are the best rational
approximations to a real number at each level of precision; the
convergents of $\varphi$ are exactly the ratios of consecutive Fibonacci
numbers: $1/1$, $2/1$, $3/2$, $5/3$, $8/5$, $13/8$, $\ldots$ These
converge more slowly to $\varphi$ than the convergents of any other
irrational number. $\varphi$ is, in this sense, maximally irrational.</p>
<p>That property has a physical consequence. In botanical phyllotaxis — the
arrangement of leaves, seeds, and petals on plants — structures that grow
by adding new elements at a fixed angular increment will pack most
efficiently when that increment is as far as possible from any rational
fraction of a full rotation. The optimal angle is:</p>
$$\theta = \frac{2\pi}{\varphi^2} \approx 137.508°$$<p>This is the <em>golden angle</em>, and it is the reason sunflower seed spirals
count $55$ and $89$ (consecutive Fibonacci numbers) in their two
counter-rotating sets. The mathematics of efficient growth in nature
and the mathematics of the Fibonacci sequence are the same mathematics.</p>
<p>The golden spiral — the logarithmic spiral whose growth factor per
quarter turn is $\varphi$ — is the visual representation of this: it
is self-similar, expanding without bound while maintaining constant
proportionality.</p>
<hr>
<h2 id="fibonacci-numbers-in-music-before-tool">Fibonacci Numbers in Music: Before Tool</h2>
<p>The connection between the Fibonacci sequence and musical structure is
not Tool&rsquo;s invention. The most carefully documented case is Béla
Bartók, whose Music for Strings, Percussion and Celesta (1936) has been
analysed exhaustively by Ernő Lendvai. In the first movement, the
climax arrives at bar 55 (a Fibonacci number), and Lendvai counted the
overall structure as 89 bars — the score has 88, but he added an implied
final rest bar to reach the Fibonacci number — dividing at bar 55 with
near-mathematical precision. Lendvai argued that Bartók consciously embedded Fibonacci
proportions into formal structure, tonal architecture, and thematic
development throughout much of his output.</p>
<p>Whether these proportions were conscious design or an instinct that
selected naturally resonant proportions is contested. The same question
applies to claims about Mozart and Chopin. What is more defensible is
a structural observation about the piano keyboard and Western scales
that requires no attribution of intent:</p>
<p>A single octave on the piano keyboard has <strong>13 keys</strong>, comprising <strong>8
white keys</strong> and <strong>5 black keys</strong>. The black keys are grouped as <strong>2</strong>
and <strong>3</strong>. The numbers $2, 3, 5, 8, 13$ are five consecutive Fibonacci
numbers — $F(3)$ through $F(7)$.</p>
<p>The standard Western scales make this concrete. The major scale
contains <strong>7 distinct pitches</strong> within an octave of <strong>12 semitones</strong>.
The pentatonic scale (ubiquitous in folk, blues, rock) contains <strong>5</strong>
pitches. The chromatic scale contains <strong>12</strong> pitch classes per octave;
counting both endpoints of the octave (C to C) gives <strong>13</strong> chromatic
notes, the next Fibonacci number.</p>
<p>Harmonic intervals in just intonation are rational approximations of
simple frequency ratios: the octave (2:1), the perfect fifth (3:2),
the perfect fourth (4:3), the major third (5:4), the minor third (6:5).
The numerators and denominators are small integers, often Fibonacci
numbers or their neighbours. The major triad — the structural foundation
of tonal Western music — consists of intervals in frequency ratios
$4:5:6$, three consecutive integers that bracket the Fibonacci-adjacent
range.</p>
<p>This does not mean that Western music is secretly Fibonacci. It means
that the integer frequency ratios that produce consonant intervals are
the small integers, and small integers include the small Fibonacci
numbers. The connection is genuine but not exclusive.</p>
<hr>
<h2 id="lateralus">Lateralus</h2>
<p>Tool&rsquo;s <em>Lateralus</em> (2001, album of the same name) is unusual in that
the Fibonacci construction is not an analytical inference applied after
the fact — it was discussed publicly by the band. Drummer Danny Carey has
spoken about his engagement with sacred geometry and mathematical
structure, and the song&rsquo;s construction has been described as intentional
by multiple band members.</p>
<p>There are two primary levels of Fibonacci structure in the song. The
third — the thematic content of the lyrics — makes the mathematical
frame explicit.</p>
<h3 id="the-syllable-count">The Syllable Count</h3>
<p>The opening verses are constructed so that successive lines contain
syllable counts following the Fibonacci sequence ascending:
$1, 1, 2, 3, 5, 8, 13$. The first syllable count is a single word.
The second is another. The third is a two-syllable phrase. The sequence
continues, each line adding the weight of the previous two, until the
thirteenth-syllable line, which in structure and delivery feels like the
crest of a wave.</p>
<p>The second half of the verse then descends: $13, 8, 5, 3, 2, 1, 1$.
Or, in some analyses, the chorus and pre-chorus sections begin a new
ascending Fibonacci run before the full descent, creating a nested
structure of expansions and contractions.</p>
<p>The audible effect of this design is not arbitrary. A sequence of lines
whose syllable counts follow $1, 1, 2, 3, 5, 8, 13$ creates a
consistently accelerating density of text over the same musical time.
The vocal line becomes more compressed as the syllable count rises,
building tension — and then the descent releases it. This is not how
most pop or rock lyrics are structured. It produces a breathing,
organic quality, the way a plant reaches toward light.</p>
<h3 id="the-time-signature-987">The Time Signature: 987</h3>
<p>The verse sections of the song cycle through three time signatures in
succession: $9/8$, then $8/8$, then $7/8$.</p>
$$9/8 + 8/8 + 7/8$$<p>This three-bar pattern repeats. Now: the sequence of numerators is $9$,
$8$, $7$. Written as a three-digit number: <strong>987</strong>. And as noted above,
$987 = F(16)$, the sixteenth Fibonacci number.</p>
<p>Whether this is a deliberate encoding or a remarkable coincidence is a
matter of interpretation. The time signature sequence is definitely
deliberate — asymmetric meters of this kind require careful compositional
choice. The fact that their numerators concatenate to a Fibonacci number
is either intentional and clever or accidental and still remarkable.
Either way, the time signature pattern has a musical function independent
of the Fibonacci reading.</p>
<p>In standard rock, time is almost always $4/4$: four even beats per bar,
a pulse that is maximally predictable and maximally amenable to groove.
The $9/8 + 8/8 + 7/8$ pattern is the opposite. Each bar has a different
length. The listener&rsquo;s internal metronome, calibrated to $4/4$, cannot
lock onto the pattern. The music generates forward momentum not through
a repeated downbeat but through the continuous, non-periodic unfolding
of measures whose lengths shift. This is the rhythmic analogue of a
spiral: no two revolutions are identical in length, but the growth is
consistent.</p>
<p>The chorus and other sections use different time signatures, including
stretches in $5/8$ and $7/8$ — Fibonacci numbers again, and specifically
the $5, 8, 13$ triplet that appears so often in this context.</p>
<h3 id="the-thematic-content">The Thematic Content</h3>
<p>The lyrics are explicitly about spirals, Fibonacci growth, and the
experience of reaching beyond a current state of development. They
reference the idea of expanding one&rsquo;s perception outward through
accumulating cycles, each containing and exceeding the previous one.
The chorus refrain — about spiralling outward — names the mathematical
structure of the golden spiral directly. The song is, in its own terms,
about the process that the mathematics describes.</p>
<p>This kind of thematic coherence between structure and content is what
makes the construction interesting rather than merely clever. The
Fibonacci structure is not decorative. It is the argument of the song
made manifest in its form.</p>
<hr>
<h2 id="why-fibonacci-structure-works-in-music">Why Fibonacci Structure Works in Music</h2>
<p>The most interesting question is not whether the Fibonacci structure is
there — it clearly is — but why it produces the musical effect it does.</p>
<p>Consider what the Fibonacci sequence represents physically. It is the
growth law of structures that build on their own preceding state:
$F(n) = F(n-1) + F(n-2)$. Unlike arithmetic growth (add a constant)
or geometric growth (multiply by a constant), Fibonacci growth is
<em>self-referential</em>. Each term contains the memory of the previous two.
The sequence is expansive but not uniform; it accelerates, but always
in proportion to what came before.</p>
<p>Musical tension and release are, in an important sense, the same
mechanism. A phrase creates an expectation; its continuation either
confirms or subverts that expectation; resolution reduces the tension.
What makes a musical phrase feel like it is building toward something
is precisely the progressive accumulation of expectation — each bar
adding its weight to the previous, the accumulated tension requiring
resolution at a scale proportional to the build-up. The Fibonacci
syllable structure in Lateralus generates this literally: each line is
denser than the previous two lines&rsquo; combined syllable count would
suggest is comfortable, until the structure has to breathe.</p>
<p>The time signature asymmetry works similarly. In $4/4$, the beat is
predictable, and the listener&rsquo;s body can lock to it and then coast on
that lock. In $9/8 + 8/8 + 7/8$, the beat is never fully locked — the
pattern is periodic (it repeats) but the internal structure of each
repetition is shifting. The listener is perpetually catching up,
perpetually leaning slightly into the music to find the next downbeat.
This is not discomfort — it is engagement. The mathematical reason is
that the pattern is large enough to be periodic (it does repeat) but
small enough to be audible as a unit. The brain can learn the 24-beat
super-pattern; it just requires attention that $4/4$ does not.</p>
<p>There is a deeper reason why golden-ratio proportions feel right in
musical form. The golden section of a piece — the point at which the
piece divides in the $\varphi : 1$ ratio — is the point of maximum
accumulated development before the final resolution. In a five-minute
piece, the golden section falls at roughly 3:05. This is, empirically,
where the emotional and structural climax tends to sit in a wide range
of well-regarded music, from Baroque to jazz. Whether composers
consciously target this proportion or whether the proportion is what
accumulated development looks like when done well is not easily
separable. But the mathematical reason it is <em>a</em> proportion worth
targeting is that $\varphi$ is the only division point that is
self-similar: the ratio of the whole to the longer part equals the ratio
of the longer part to the shorter part. There is no arbitrary scale
associated with the golden section; it is scale-invariant, the same
proportion at every level of analysis.</p>
<hr>
<h2 id="a-brief-note-on-binet-and-limits">A Brief Note on Binet and Limits</h2>
<p>The closed-form expression for Fibonacci numbers,</p>
$$F(n) = \frac{\varphi^n - \psi^n}{\sqrt{5}},$$<p>has a pleasing consequence for large $n$. Since $|\psi| \approx 0.618 < 1$,
the term $\psi^n \to 0$, and $F(n)$ is simply the nearest integer to
$\varphi^n / \sqrt{5}$. The integers produced by the Fibonacci recurrence
are the integers that $\varphi^n / \sqrt{5}$ passes closest to. The
exponential growth of $\varphi^n$ and the rounding to integers together
give the sequence.</p>
<p>This is also why the ratios $F(n+1)/F(n)$ converge to $\varphi$
exponentially fast — the error is $\mathcal{O}(|\psi/\varphi|^n)
= \mathcal{O}(\varphi^{-2n})$ — and why, for musical purposes, the
Fibonacci ratios $8:5$, $13:8$, $21:13$ are already excellent
approximations of the golden ratio, close enough that the ear cannot
distinguish them from $\varphi$ in any direct sense.</p>
<hr>
<h2 id="what-lateralus-is">What Lateralus Is</h2>
<p><em>Lateralus</em> is not a math lecture set to music. It is a nine-minute
progressive metal track that is physically involving, rhythmically
complex, and lyrically coherent. The Fibonacci structure would be
worthless if the song were not also, on purely musical terms, good.</p>
<p>What the mathematics adds is a vocabulary for something the song achieves
anyway: the sense of growing without ever arriving, of each section being
both a resolution of what came before and an opening toward something
larger. The golden spiral does not end. The Fibonacci sequence does not
converge. The song does not resolve in the sense that a classical sonata
resolves; it spirals to a close.</p>
<p>The reason this is worth writing about is that it makes concrete a
connection that is usually stated vaguely: mathematics and music are
similar. They are similar in specific and articulable ways. The
self-referential structure of the Fibonacci recurrence, the scale-
invariance of the golden ratio, the information-theoretic account of
tension and expectation — these are not metaphors for musical experience.
They are, in this case, the actual mechanism.</p>
<hr>
<h2 id="references">References</h2>
<p>Lendvai, E. (1971). <em>Béla Bartók: An Analysis of His Music.</em> Kahn &amp;
Averill.</p>
<p>Benson, D. J. (2006). <em>Music: A Mathematical Offering.</em> Cambridge
University Press. <em>(For an introduction to the general theory of tuning,
temperament, and harmonic series.)</em></p>
<p>Tool. (2001). <em>Lateralus.</em> Volcano Records.</p>
<p>Livio, M. (2002). <em>The Golden Ratio: The Story of Phi, the World&rsquo;s Most
Astonishing Number.</em> Broadway Books.</p>
<p>Knott, R. (2013). Fibonacci numbers and the golden section in art,
architecture and music. <em>University of Surrey Mathematics Department.</em>
<a href="https://r-knott.surrey.ac.uk/Fibonacci/fibInArt.html">https://r-knott.surrey.ac.uk/Fibonacci/fibInArt.html</a></p>
<hr>
<h2 id="changelog">Changelog</h2>
<ul>
<li><strong>2025-11-20</strong>: Clarified the Bartók bar count: the written score has 88 bars; Lendvai&rsquo;s analysis counted 89 by adding an implied final rest bar to reach the Fibonacci number. Previously stated as &ldquo;89 bars&rdquo; without qualification.</li>
</ul>
]]></content:encoded>
    </item>
  </channel>
</rss>
