The Same Thing Twice

Four textbooks describe a quantity. They use different words, cite different people, and never mention each other. Each entry here measures the thing independently and checks whether the numbers collide.

Working notebook · October 2026 · Columbia, Missouri

THE RULE

Simulate first, agree afterward

A cross-domain parallel is cheap to assert and easy to dress up. The only version worth keeping is one that survives a measurement it could have failed. So every claim below gets at least two routes to the same number — one analytic, one simulated — written so that neither can see the other's answer. Where they disagree, the disagreement is the finding.

The eighty-one investigations are below. Most produced a surprise, and in every case the surprise was a measurement error with a diagnosable cause, or a prediction of mine that was simply wrong, rather than a broken theorem. One of those errors recurred four times in three disguises before I understood it; that is collected near the end, because it turned out to be the most transferable part of the whole exercise. From Investigation 18 on, my predictions were written down before any code ran, and each of those sections has a box showing which held, which missed, and what I didn’t see coming.

INDEX

Contents

Write to me

INVESTIGATION 01

Rigidity is a counting problem before it is a geometry problem

18 October 2026

CAD constraint solvers typically throw the whole system at Newton–Raphson and discover over-constraint when the Jacobian goes singular. Combinatorial rigidity theory answered this in 1970, in a literature that barely overlaps.

Laman's theorem characterises generic rigidity in the plane by edge counting alone, and the pebble game decides it in near-linear time on the constraint graph — before any numerics run, and with the ability to name which existing constraints make a new one redundant.

fully braced 6×6 grid 85 bars Laman bound 2n−3 69 flagged redundant 16 ← 85 − 69, exactly

That is the known result that diagonal-bracing every cell of a grid is wasteful, reproduced from the graph with nothing but the counting rule. A hinge — two rigid triangles sharing one joint — comes back as two overlapping rigid components, which is what a hinge is.

Rigidity Bench →Build bar-and-joint structures and drag a joint to feel the leftover freedom. Rigid components tint, redundant constraints go dashed red.

I audited this tool, and it failed

Laman's theorem describes generic configurations, and CAD sketches are the opposite of generic — axis-aligned, mirror-symmetric, laid out on round numbers. I wrote that down as a caveat and moved on, which is not the same as measuring it. So: 18 CAD-like sketches, each paired with a generic twin carrying the identical constraint graph at random coordinates. The pebble game sees only the graph, so its verdict is the same for both; any divergence is caused by geometry alone.

Each was checked against the rank of the true constraint Jacobian at its actual coordinates. The audit runs the shipped engine, not a reimplementation of it.

18 CAD-like sketches versus the Jacobian rank. Nine correct — and which nine is the surprise.
FamilyVerdictWorst error
braced rectangles4/4 correct—
braced lattices2/2 correct—
regular polygons + spokes3/3 correct—
symmetric trusses3/3 wrongclaims 7 independent, truly 6
concentric rings2/2 wrongclaims 12, truly 11
collinear chains2/2 wrongclaims 11, truly 6
H/V rectangles2/2 wrongclaims 6, truly 8

Regular coordinates are not the problem; degeneracy is. A 4×4 braced lattice at exact integer coordinates is answered correctly. What breaks the method is mirror symmetry, collinearity and concentricity — and a collinear chain is reported well-constrained while actually carrying three internal degrees of freedom. Perturb any of those coordinates by 10⁻⁶ and the combinatorial answer becomes right again, which is the signature of a genuine genericity failure.

And one failure was not genericity at all. This page used to say that horizontal-plus-vertical on a point pair reads redundant "though it is geometrically fine" — attributing it to special coordinates. That was wrong. The generic twin appeared to fail identically — but that twin used random coordinates that did not satisfy the horizontal and vertical constraints, so it was not a realisation of the sketch at all, and the argument built on it was unsound. Redone properly (points sampled on the constraint variety, including the square and a 10−4 sliver), the rectangle has true rank 8 at every sample while the pebble game reports 6. The conclusion stands; the evidence for it is now the right kind. The real cause: the (2,3) pebble game is a theorem about distance constraints, while direction constraints obey (2,2)-sparsity, so mixing them needs a mixed matroid. It also errs in the opposite direction, under-counting independence rather than over-counting it. A caveat pointing the wrong way is worse than no caveat.

The engine now returns a warnings array saying both of these in place, and the bench shows them. The method still earns its keep on ordinary braced structures — but "fast pre-filter, not a proof" was too gentle, and the tool was not being honest about which of its answers to distrust.

Which constraint should I delete?

When the solver says a sketch is over-constrained, the number of constraints to remove is not up for negotiation: every maximal independent set of a matroid has the same size, so it is always constraints minus rank. What is open is which ones. The engine answered that by accident of drawing order — it flags whatever you drew last, and reversing the order changed the flagged set in every one of 60 test sketches.

I expected the explanation it gives for each flagged bar to be too broad, since it lists every constraint inside the failed dense block. It is not. The failed search reaches the minimal tight block containing both endpoints, a tight block carries exactly 2|V|−3 edges so nothing else can sit inside it, and that block plus the rejected bar is the circuit. On 145 redundant bars the engine's list matched the true circuit, computed independently from the Jacobian, every time. A prediction that failed in the useful direction.

60 random over-constrained sketches, generic coordinates, bar costs 1–9, against brute force over every deletion set.
StrategyCheapest repair foundMean overpay
as drawn (what the engine did)5 / 607.98
insert the costliest-to-lose bars first60 / 600.00

The fix needs no new machinery. Run the pebble game with the constraints you least want to lose inserted first; the ones it rejects are a minimum-cost repair. That is Kruskal's algorithm — sort, then keep whatever stays independent — the same procedure that built the spanning tree in investigation 05, with "acyclic" swapped for "Laman-sparse". The greedy algorithm is optimal on exactly the structures that are matroids, and both of these are.

The bench now has a Suggested repair panel in its details sheet. Change what you prefer to keep and the set of bars changes; the count never does. Apply it and the sketch goes from over-braced to rigid. It refuses to apply when direction constraints are present, for the reason in the audit above: wrong matroid, wrong answer.

↑ Contents

INVESTIGATION 02

One eigenvalue, four textbooks

18 October 2026

Mixing time in Markov chains, expansion in graph theory, the first non-rigid vibration mode in structural mechanics, and iterative-solver convergence in numerical PDE. Taught as four unrelated facts; λ₂ of the Laplacian is all of them.

λ₂ was computed once per graph. Each of the four quantities was then measured by its own simulation: a lazy random walk released on a node, brute-force search over all 2ⁿ⁻¹ cuts, a Verlet integration of masses and springs read through an FFT, and Richardson iteration with optimal damping.

Dumbbell graph, two 7-cliques bridged — n = 14, degree 6, λ₂ = 0.468871. Four other graphs agree to the same precision.
QuantityMeasuredPredictedRatio
mixing decay / step0.9609270.9609271.00000
sparsest cut0.0476190.039 – 0.395inside
ω₂, first mode0.6848670.6847421.00018
solver contraction0.8958070.8958061.00000

The true sparsest cut lands inside the Cheeger window every time, pressed against the lower bound exactly as a bottlenecked graph should be.

Spectral Gap Bench →Node colour is the Fiedler vector. Watch one eigenvector be the cut, the vibration mode, the slow direction of the walk, and the solver's surviving error at once.

Where it stops being true: every graph above is regular, and that is load-bearing. On an irregular graph the four come apart — mixing and expansion follow the normalized Laplacian, unit-mass vibration follows the combinatorial one.

The repair, and what it says the object really is

That split suggested the unifying object was never the graph but the quadratic form xᵀLx under a choice of inner product — so giving each node a mass equal to its degree, solving Lv = λDv instead of Lv = λv, should put the four back together on any graph. Tested on four deliberately lopsided graphs, degrees running from 1 to 7:

Vibration frequency against the shared λ₂, as relative error. Unit masses are the split; degree masses are simulation precision.
GraphDegreesUnit massesDegree masses
lollipop K5+31–536.8% off0.36%
double star 4/21–517.5% off0.19%
kite n=101–538.1% off0.15%
random irregular1–728.2% off0.01%

The tidiest part came from the column I wasn't watching. Plain Richardson tracks the combinatorial condition number; Jacobi-preconditioned Richardson tracks the generalized one. Changing a solver's preconditioner and changing a structure's mass matrix are the same act — both are a choice of inner product, and both move the answer from one λ₂ to the other.

↑ Contents

INVESTIGATION 03

A multimeter that counts spanning trees

18 October 2026

Effective resistance in circuit theory, commute time in Markov chains, and edge frequency in uniform spanning trees. Three fields, and the prediction is specific enough that it cannot survive by coincidence.

For a graph of 1 Ω resistors, the resistance measured across an edge should equal the fraction of all spanning trees that contain that edge. Four independent routes were run: a linear solve of Ohm's law, Monte-Carlo random walks counting steps and nothing else, brute-force enumeration of every spanning tree, and the Laplacian pseudoinverse.

Irregular graph, degrees 2 – 4, 108 spanning trees enumerated. Circuit, tree and spectral agree to 2 × 10⁻¹⁶; the walk is Monte Carlo.
EdgeCircuit ΩWalk / 2mP(in tree)Spectral
0 – 10.638890.635670.638890.63889
2 – 00.555560.558140.555560.55556
2 – 30.750000.751370.750000.75000
0 – 70.750000.751520.750000.75000

Edge 2–3 sits in exactly 81 of 108 spanning trees. A meter across it reads 0.75 Ω. You can answer a combinatorial enumeration question with a breadboard.

Unlike λ₂, this needed no regularity — it holds on degrees 2 through 4 with no patch. Resistance is built from the Laplacian pseudoinverse rather than its spectrum, so the degree weighting is absorbed into the 2m factor instead of having to be cancelled.

π, from a grid of identical resistors

On the infinite square lattice the resistance between diagonal neighbours should be 2/π. Nothing transcendental is present in the setup: every resistor is 1 Ω and every node is an integer lattice point.

321×321 grid, raw 3.1415402470 after extrapolation 3.1415929618 true π 3.1415926536

The convergence order came out p = 1.993 — boundary corrections fall like 1/L², measured from the computed values rather than assumed.

And the adjacent case is forced by conservation

Foster's theorem says the effective resistances sum to exactly n − 1. On a lattice where every edge is equivalent by symmetry, with coordination number z and therefore nz/2 edges, every edge must carry R = 2/z. That prediction was written down before any of these were computed.

Squarez = 40.5000009
Triangularz = 60.3333444
Honeycombz = 30.6666821
Kagomez = 40.5000093

Each lattice was generated from coordinates and bonded purely by distance, with its interior coordination number asserted before anything was solved. The sharp test is the last pair: kagome and square are different lattices that share z = 4, and they land on the same number to seven decimal places.

The Infinite Resistor Grid →The ½ Ω has a three-picture proof with no algebra in it: inject a current, extract a current, superpose. Drawn out, with the diagonal case where π appears.

↑ Contents

INVESTIGATION 04

Backpropagation was already a hundred years old

18 October 2026

The adjoint method in computational physics, backpropagation in machine learning, and Pontryagin's costate equation in optimal control are three derivations of reverse-mode gradients. The literatures barely overlap. The question is not only whether they agree, but which two are the same algorithm and which is merely the continuum limit of the others.

A damped pendulum under a time-varying torque, integrated by explicit Euler, with a loss over the trajectory. The gradient of that loss with respect to the damping coefficient was then computed four ways, sharing no code: central finite differences as ground truth; a tape-based reverse-mode autodiff engine written from scratch and run over the unrolled simulation; a hand-derived backward recursion for the Euler scheme; and the costate ODE integrated backward from its terminal condition.

2000 steps, dt = 0.002. Finite differences carry their own roundoff floor near 10⁻⁹, which is what the first three are pressed against.
RouteFielddJ/dcvs. finite diff
Finite differencesground truth−0.019151569108—
Backpropagationmachine learning−0.0191515673331.8×10⁻⁹
Discrete adjointcomputational physics−0.0191515673331.8×10⁻⁹
Continuous adjointoptimal control−0.0192393285008.8×10⁻⁵

Backpropagation and the discrete adjoint do not merely agree — they agree to 1.6×10⁻¹⁵, and across every one of the two thousand control gradients the largest disagreement is 1.4×10⁻¹⁷. That is not two methods landing on one answer. That is one algorithm, written down twice by people who did not know about each other.

The continuous adjoint is the interesting one, because it is wrong at any finite step size — and correctly so. It differentiates the differential equation; the other two differentiate the program that approximates it. The gap is first order in the step:

dt |continuous − backprop| ratio 0.016000 7.764e-04 — 0.008000 3.666e-04 2.118 0.004000 1.781e-04 2.059 0.002000 8.776e-05 2.029 0.001000 4.356e-05 2.015 0.000500 2.170e-05 2.007

Halving the step halves the error, converging on a ratio of exactly 2. This is the distinction between discretize-then-optimize and optimize-then-discretize, and it is not academic: an optimizer fed the continuous gradient is descending a surface slightly different from the one it is being scored on.

Worth recording: this is the only investigation here whose prediction survived on the first run, with no anomaly to chase. Written down in advance, confirmed, nothing to debug. Reported because the other three were not like that, and a notebook that only shows the clean runs is lying by selection.

↑ Contents

INVESTIGATION 05

A 1956 algorithm computes a 2005 invariant

18 October 2026

The death times in the 0-dimensional persistence barcode, the merge heights of a single-linkage dendrogram, and the edge weights of a minimum spanning tree. Topological data analysis, statistical clustering, and Kruskal.

There is a trap in testing this. The usual way to compute H₀ persistence is union-find over sorted edges — which is Kruskal, so comparing those two proves nothing. So here H₀ is computed the long way: sort every simplex by filtration value, build the GF(2) boundary matrix, and reduce it with column operations until each column's lowest nonzero row is unique. That shares no structure with greedy edge selection or with agglomerative merging.

Four routes, on three point clouds: Prim growing one tree by nearest outside vertex; naive agglomerative clustering that never builds a graph at all; boundary-matrix reduction; and a sweep that rebuilds the graph from scratch at each radius and counts components by breadth-first search.

uniform cloud, n = 28, 27 finite bars Prim total 35.966549320 longest bar 3.009162694 linkage total 35.966549320 longest bar 3.009162694 boundary total 35.966549320 longest bar 3.009162694 sweep total 35.966549320 longest bar 3.009162694 max |difference|, any pair 0.000e+00

Not agreement to machine precision — the same floating-point numbers, on all three clouds. Four computations that share no code produce one list.

The practical reading is in the clustered case. Three Gaussian blobs give bars of 0.810, 0.864, 0.866, 1.040 and 2.221: a noise floor, then two that stand clear of it. Two long finite bars plus the one infinite bar is the barcode saying three clusters — and it is the identical gap a statistician looks for when deciding where to cut a dendrogram. Choosing the number of clusters and reading a barcode are one act, performed by people who cite different papers for it.

↑ Contents

INVESTIGATION 06

One theorem, four names, and one that would not convert

18 October 2026

Max-flow equals min-cut. The value of a zero-sum game equals the value of its dual game. A linear program's optimum equals its dual's. Either a system has a solution or Farkas hands you a certificate that it has none. Investigation 02 met the first of these; this asks whether the other three are the same object, not just the same slogan.

These are textbook theorems, so agreement of values proves little. The tests worth running are the ones where a certificate in one language has to be translated into another and still check out. All on 60 random directed networks (5–7 nodes, 5–19 edges, integer capacities, maximum flow 1–18), each solved four independent ways: Edmonds–Karp augmenting paths, brute-force enumeration of every s–t cut, the flow LP, and the cut LP written out by hand.

max-flow = min-cut (enumeration) 60 / 60 flow LP optimum = max-flow 60 / 60 hand-written cut LP optimum = flow 60 / 60 demand d = max-flow + 1 (infeasible): Farkas certificate found 60 / 60 its level sets contain a cut < d 60 / 60 demand d = max-flow (feasible): no certificate exists 60 / 60

The Farkas certificate is a cut, literally. For the system “send d units from s to t within capacities,” I did not derive the certificate by hand. I assembled the constraint matrix, asked a generic solver for a vector y with yA ≥ 0 and y·b < 0, and read what came back. Normalising the source multiplier to 1, the conditions on y are exactly the cut LP’s constraints (a potential on each node, an edge variable at least the potential drop across it), and y·b < 0 says that cut costs less than d. Thresholding the potentials produced a genuine cut of capacity below d in all 60 cases. When the demand was exactly the max flow, the solver found no certificate in all 60 — the “exactly one of the two” in Farkas, observed.

A prediction that could have failed. The usual proof that the cut LP has integral optima averages over thresholds: the LP value equals the mean capacity of the level sets, and no cut beats the minimum, so if the potential is optimal then every level set must itself be a minimum cut. That is checkable on a deliberately fractional optimum. On the 15 networks with two or more distinct minimum cuts I took the 50/50 mix of two of them (a potential taking the value ½ on the nodes they disagree about), confirmed it is dual-optimal, and tested the level sets at thresholds 0.25, 0.5 and 0.75. All 15 were minimum cuts. Fractional dual optima are not noise to be rounded away; they are convex combinations of cuts that all cut the same.

The game, and the version that failed

The standard way to see any LP as a game is Dantzig’s embedding into a symmetric game, with the LP optimum recovered as x/t from the equilibrium strategy. I ran it, solving the game by multiplicative-weights self-play so that nothing shared code with the LP solver. It did not work. Over 12 networks the recovered flow value was off by 30% at the median (range 1% to 60%), and the recovered flow broke a capacity or conservation constraint by 0.79 units at the median. The cause is visible in the output: the normaliser t, the weight on the last row, settled near 0.04, so dividing by it magnified an ordinary 1/√T equilibrium error by 25×. The embedding is correct and its conditioning is dreadful, and a reduction that is exact on paper can be unusable as an algorithm.

A different game works. Let one player choose an s–t path and the other choose an edge, with payoff 1/ce if the edge lies on the path. The path player minimises. Its value should be 1/(max flow). Then the path player’s optimal mixed strategy, scaled by the max flow, should be a maximum flow written as a path decomposition, and the edge player’s strategy should pile onto the minimum cut. With the game value from an LP: |value − 1/F| ≤ 6×10−17 on all 60. With 30,000 rounds of self-play, the bracket around the value contained 1/F in 60 of 60 (median width 3.5% of the value, worst 22%), the scaled path strategy loaded edges to 1.004× capacity at the median (worst 1.11×), and the edge player put a median 97% of its weight on edges belonging to a minimum cut (worst 66%).

So the picture is: the path player plays the flow, the edge player plays the cut, and the value is their shared price. One saddle point, three vocabularies. The earlier failure was about conditioning, not correctness: the structured game recovered both the flow and the cut from the same kind of self-play.

At scale. At a few thousand nodes the strategy sets cannot be enumerated, so the path player became a best response (one shortest-path computation per round, with edge lengths qe/ce) against multiplicative-weights edge play. Two kinds of network, each checked against an exact max flow. On plain random sparse digraphs (n up to 3,000) the result was uninformative: the minimum cut was just the star around the source or sink, which any method finds. So I planted a bottleneck: two dense random halves, 25 fat edges out of s and into t (star capacity 250 each), joined by six edges of capacity 3, so the true cut is 18 and sits in the middle of the graph. On n = 200, 1,000 and 3,000 (up to 21,000 edges, 4,000–6,000 rounds) the sweep over level sets of the distance potential from the averaged edge strategy returned a cut of capacity exactly 18 in all three, and in all three it was the planted split, n/2 nodes on each side. The averaged path strategy scaled by the max flow loaded edges to 1.000× capacity. The surprise is what did not work: the plain lower bound on the game value, the best response to the averaged edge strategy, stayed loose (0.27–0.53 of the true value at the end, and worse as n grew) and only 27–53% of the edge weight sat on the crossing edges. The raw strategy is a poor certificate of the value, and its level sets are an excellent certificate of the cut. That is the Investigation 06 level-set theorem doing real work in a regime where nothing else did. Three instances is a demonstration, not a rate, and the planted network was symmetric (six equal edges make the flow side unusually easy).

The rate, on asymmetric bottlenecks. To remove that easy case I rebuilt the bottleneck with unequal crossing capacities (1, 2, 2, 4, 5, 7; max flow 21) on n = 1,000 and ran three seeds for 12,000 rounds. The flow-side error (worst edge load over capacity, minus 1) fell from about 2–4 at T = 20 to 0.033, 0.033 and 0.031 at T = 12,000, with a log–log slope between −0.7 and −0.9 over the whole run and about −1 over the last doubling. That is faster than the 1/√T the generic regret bound promises; the error is closer to c/T with c near 400 here, which I read as the structure of this problem (a handful of crossing edges, a deterministic best response) and not as a general law. The level-set cut was exact (capacity 21, ratio 1.000) from T between 700 and 1,400 onward and stayed exact: before that it was 2–12 times too big. Same caveat: three seeds of one construction.

Many near-minimum cuts. The case I had flagged as likely to hurt. A chain of 20 or 60 stages, each stage eight parallel two-edge paths whose capacities sum to 60 plus a random 0–3, so that every stage boundary is a minimum or near-minimum cut (all 20 of 20, and 60 of 60, within 5% of the max flow; 5 to 20 exact ties). It did not hurt: the level-set cut was exactly the max flow at every checkpoint from T = 50 to 10,000, and the flow-side error again fell about as 1/T (0.67 at T = 1,200 to 0.07–0.08 at T = 10,000). The cut side is probably easy here because any stage boundary is a valid answer. A first attempt at a diffuse network, random layers of 40–50 nodes with 120–150 mostly unit-capacity edges between layers, is the harder case, and I diagnosed it afterwards. Every layer boundary carries about twice the max flow (119–157 against 60 and 71), so the true minimum cut is not a layer at all: it is a ragged diagonal wavefront of 56 and 68 unit-capacity edges that tapers across eight to sixteen layers, which is as diffuse as a minimum cut gets. This is the only case here where the level-set cut was still inexact at T = 10,000: 5% and 13% above the optimum, down from 80–90% at T = 50, so it was converging, slowly. I first wrote that the flow-side error still fell as about 1/T there, but those numbers came from checkpoints inside a single run whose step size was tuned for T = 10,000, which does not measure a rate. A proper measurement reruns with the step size tuned for each T (below). My reading, not tested further: when the minimum cut is a large irregular set of small edges rather than a few fat ones, the edge player needs many more rounds to concentrate on it, and the threshold sweep needs that concentration.

Does the layered-network gap close? Yes for the cut, and not as fast as 1/T for the flow. Two layered networks (10 layers of 40 nodes, max flows 60 and 63), each rerun from scratch at T = 1,000, 3,000, 10,000, 30,000 and 100,000 with the step size set for that T. The cut gap above optimum (as a fraction of the max flow) went 0.27, 0.12, 0.05, 0.017, 0 on the first and 0.21, 0.11, 0.03, 0.016, 0 on the second: roughly 1/T until it hits the integer floor of one unit, and an exactly minimum cut at T = 100,000 on both. The flow-side error went 0.78, 0.47, 0.27, 0.16, 0.094 and 0.74, 0.46, 0.27, 0.16, 0.094, which is about T−0.46, close to the generic 1/√T guarantee and well short of the c/T seen on planted bottlenecks. So on diffuse networks the cut is recovered long before the flow value converges. Two networks, one family and one size; I did not run the 20-layer case.

What this does and does not show. Nothing here is new mathematics; every identity is a theorem and was used as a target. What was measured is that the translations hold on concrete instances — certificate to cut, fractional optimum to level sets, equilibrium to flow and cut — and that the one translation I tried from the textbook’s reduction was numerically unusable. Networks were small enough to enumerate every cut, and the self-play bounds are loose; this says nothing about large instances. Code and the per-instance results are in the project.

↑ Contents

INVESTIGATION 07

Buying memory with arithmetic, at the exact exchange rate

18 October 2026

Investigation 04 ended with a cost: reverse-mode differentiation through a chain of l steps must remember the forward trajectory. Store all l states and the backward pass is free; store almost nothing and you recompute constantly. The question is what the best possible exchange rate is, and whether a known answer survives being checked three independent ways.

The model. Keep the initial state plus s further checkpoint slots, and one working state. The backward pass needs states l−1, l−2, …, 0 in that order. Moving forward one step costs 1; loading a stored state, discarding one, and using the working state in a backward step are free. Splitting at the best interior checkpoint k gives a recurrence, T(l,s) = mink [ k + T(l−k, s−1) + T(k, s) ], with T(1,s) = 0 and T(l,0) = l(l−1)/2 (no spare slot means recomputing from the start every time).

A convention error, caught by the test. I first checked the recurrence against an exhaustive search of the equivalent pebble game on a line and they disagreed in 35 of 45 cases. The recurrence was fine; my search charged the in-flight state and the initial state differently. Once both used the same bookkeeping, the search and the recurrence agreed on every one of 45 cases (l = 2–10, s = 0–4). This is the same species of error as the rest of this page — two honest calculations that disagree because they are counting different things — and, as before, it showed up as a clean, plausible, wrong table.

The closed form. The binomial formula from the literature (Griewank–Walther, the “revolve” schedule) fits exactly, but only with the right offset: with r the least integer such that C(s+1+r, r) ≥ l,

T(l, s) = r·l − C(s+1+r, r−1) recurrence vs formula, l < 80, s = 1..5: 0 mismatches of 395 offset s+0 or s+2 instead of s+1: ~370 mismatches each

Running it for real. Counting is not the same as differentiating, so I executed the optimal schedule on an actual nonlinear chain, xi+1 = tanh(Wixi + bi) in 8 dimensions, and compared the gradient to the store-everything version. The gradients agreed to the last bit (max error 0.0) in all five runs; the number of extra forward steps equalled the recurrence’s prediction exactly (15, 69, 172, 374, 255 for (l,s) = (10,2), (30,3), (64,4), (100,3), (100,6)), and peak storage was s+2 states each time. (My first version of that run came in below the prediction, because its base case quietly stored a whole segment; the counter was right and my memory accounting was not. Fixed to recompute, then it matched.)

extra forward steps per step of the chain, l = 1,000,000 slots 3: 942x slots 8: 17.9x slots 16: 8.3x slots 4: 135x slots 10: 13.0x slots 22: 6.6x slots 5: 54x slots 12: 10.7x slots 32: 5.6x slots 6: 32x (store everything: 1,000,000 slots, 0 extra. uniform sqrt(l) scheme: ~2,000 slots, ~1 extra pass)

Reading the curve. The cost is polynomial in l for fixed memory (roughly l1+1/s) but becomes only logarithmic overhead once the slot count grows like log l — a few dozen states make a million-step chain affordable at a handful of recomputed passes. The uniform √l scheme looks better in the table, but it is not the same machine: it stores a whole segment while replaying it, so it spends about 2√l states to get a single extra pass. The binomial schedule is the optimum for the model above, not for every model.

What this does and does not show. The schedule and formula are known results; what was done is verify them from scratch three ways and see the gradients come out right. Not tested: chains whose steps differ in cost or state size, branching graphs, or disk-like two-level memory. The link to reversible computing (Bennett’s pebbling) is the same game with the extra constraint that nothing may be erased for free, and was not examined.

↑ Contents

INVESTIGATION 08

What it costs when nothing may be erased

19 October 2026

Investigation 07 let a stored state be thrown away for free and charged for recomputing it. Reversible computing removes that freedom: a value can only be removed by running its computation backward, which is itself a move. On a chain this turns a trivial game into a recursive one, and the question is what the exact price list looks like.

The game. A chain of n nodes, input always present. A pebble may be placed on node i, or removed from it, only while node i−1 holds a pebble; each placement and each removal costs one move; at most P pebbles at once. Two goals: goal-only (node n pebbled, whatever else is left on the chain) and clean (only node n pebbled). With free removal this game is trivial (two pebbles and n moves, sliding along the chain), so every bit of the cost below is the price of reversibility.

Exact answers, then a recursion that reproduces them. Exhaustive breadth-first search over all 2n pebble configurations, for every n up to 16 and every pebble limit. Bennett’s idea gives candidate recursions: for the clean goal, A(n,P) = minm [A(m,P) + A(n−m,P−1) + A(m,P−1)] (pebble a midpoint, build the top on one fewer pebble, then uncompute the midpoint while the top is still sitting there, so it also has one fewer). For goal-only, either leave the midpoint in place, A(m,P) + G(n−m,P−1), or use the clean form. Against the exhaustive search: 0 mismatches in both across all n ≤ 16 and all P; for goal-only that includes agreeing on which (n, P) pairs are infeasible.

largest chain n reachable with P pebbles (search, n ≤ 16): P = 2: goal-only 3, clean 2 P = 3: goal-only 7, clean 4 P = 4: goal-only 15, clean 8 (goal-only: 2^P − 1) moves at the minimum pebble count, n = 2^P − 1 (recursion, search-checked to n=15): n=3: 4 n=7: 13 n=15: 38 n=31: 109 n=63: 302 n=127: 833 n=255: 2264 n=511: 6099 growth per doubling of n: 3.25, 2.92, 2.87, 2.77, 2.76, 2.72, 2.69

A prediction that did not hold. Bennett’s bound gives roughly a tripling of cost per doubling of n at the tightest memory (nlog23). The exact optimum is below that and the ratio keeps drifting down. Extending the recursion (not the search) to n = 4,095 gives 16,378 moves at n = 1,023, 43,609 at n = 2,047 and 115,912 at n = 4,095, with per-doubling ratios 2.685, 2.663, 2.658: the decrease looked as if it were levelling off near 2.65, an exponent near 1.40 against Bennett's 1.585. It did not level off. Running the same recursion exactly (every split tried) out to n = 1,048,575, the ratios for n = 8,191 up to 1,048,575 are 2.647, 2.636, 2.633, 2.624, 2.618, 2.615, 2.608, 2.606, and the effective exponent log(moves)/log(n) peaks at 1.402 near n = 8,191 and has fallen to 1.398 by n = 1,048,575. So the plateau near 2.65 was not one, and I do not know the limit. What is solid is that the tripling is not what the optimum does over this range. The recursion is Bennett’s, put in this form by Levine and Sherman and analysed by Knill (1995, arXiv math/9508218), who also gives asymptotic bounds; I have not checked his proofs. Beyond n = 16 these numbers come from the recursion, which I have since checked against exhaustive search for n up to 25 and P up to 7 (129 cases of the goal-only game, no mismatches).

With room to spare. At n = 1,000 (recursion only, beyond the search range), moves per chain step on goal-only pebbling: 15.2 with 10 pebbles, 7.2 with 12, 5.3 with 15, 3.7 with 18, and about 3.4 with 24; cleaning up behind you costs roughly twice that, at 7.2 with 18 pebbles. Even with generous memory, a reversible chain costs several times the free-erasure price, because each uncompute is paid in full. The recursion has been checked against exhaustive search only up to n = 25 (P up to 7), so the n = 1,000 table inherits trust from that match and not from a check at that size.

Relation to 07, and what is not shown. Checkpointing and reversible pebbling are both pebble games on a line, but they ask different questions (replay every state in reverse versus reach the end without erasing), so their curves are not comparable point by point and I did not try to here; Investigation 09 does. Not examined: DAGs other than the line, the space-time bounds in the literature beyond this chain, and whether a better strategy than the recursion exists for n beyond the search range.

↑ Contents

INVESTIGATION 09

Two recursions, one game

20 October 2026

Investigations 07 and 08 each found an optimal-split recursion on a chain, with a midpoint, a smaller problem above it and some cleanup. I suspected they were the same recursion in two costumes. The test is whether one is an exact image of the other, and the useful outcome is a map of the neighbouring games, including the one nobody had solved yet.

One game, two switches. A chain of n nodes with the input always present; a pebble goes on node i only while node i−1 holds one, at one move each; at most P pebbles at once. Switch one: removing a pebble is free, or it costs a move and needs the node below it pebbled (reversible). Switch two: the goal is just to reach node n, or to serve every node n, n−1, …, 1 in that order (be holding it at the moment it is needed, which is what a backward pass does). That makes four games, solved exhaustively by search for every n up to 12 and every P (and up to n = 16 for the three games that are not trivial).

The four games on a chain, and where each is solved.
reach node nserve n, n−1, …, 1
free removaltrivial: n movesInvestigation 07
reversibleInvestigation 08new (this section)

Investigation 07 is exactly one corner. The checkpointing recursion T(l,s) equals the free-removal serve-everything game with P pebbles on a chain of n nodes, via l = n + 1 and s = P − 1: 90 of 90 cases, n up to 13, no exceptions. It only works if a pebble may slide one node up for one move, which is what 07’s working state does when it advances in place. Without that move the search disagrees with 07 in 12 of the 66 cases tried and always at the smallest memories: a pebble cannot step forward without briefly holding two places, so the game charges for a pebble that 07’s accounting treats as free. This is the same species of disagreement as the slot-counting error in 07 itself.

The empty corner. Reversible serve-everything is the combination neither earlier investigation covered. What the search shows:

What did not work. I tried to find a recursion for the new corner in the shape of the other two, a midpoint split with terms drawn from the three known cost functions at P or P−1 and boundary offsets of −1, 0 or +1. An automated search over these forms found none that reproduced the search table on the 52 cases I fitted against. So the new corner is not a simple variant of the two known recursions, or it needs terms I did not include; the data is the result.

What this does and does not show. The identification of 07 with the free-removal serving game is exact on the cases tried and is the solid result. The missing recursion is still missing. The slope-3 line was first observed on chains of up to 16 nodes; it has since been proved for all three games on the chain (see below). Not examined: unequal step costs.

Why the slopes are what they are, and where the line ends. Count moves as placements plus removals. For reversible reaching, every node is placed at least once and at most P pebbles remain at the end, so at least n − P nodes must be removed: the cost is at least 2n − P, the slope-1 line, for every n. Equality means every node is placed exactly once, exactly n − P are removed once each, and P pebbles remain. A node can only be removed while its predecessor is present, so a run of removed nodes comes off from the top down, and the whole run is present at the moment the next kept node is placed. If the kept nodes are c1 < … < cP = n, the run below the (j+1)th kept node therefore has at most P − 1 − j nodes, which gives n ≤ P + (P−1) + … + 0 = P(P+1)/2. The matching strategy builds segments of P, P−1, P−2, … nodes and clears each one except its top node, which stays as a checkpoint. So the cost is exactly 2n − P up to n = P(P+1)/2 and strictly more beyond it, and that agrees with the exhaustive search: the first break is at n = 7, 11, 16, 22, 29 for P = 3, 4, 5, 6, 7. For reversible serving, cut the play at the moment node n first holds a pebble, when the memory holds some set of s ≤ P pebbles. Up to that moment it is a reaching play, so by the argument above it costs at least 2n − s. After it, every node outside that set still has to be served and so has to be placed, at least n − s placements; and because the play must end with at most P pebbles, the s pebbles held plus every later placement leave at least s + (placements) − P removals. Adding up, the second part costs at least 2n − s − P, the whole play at least 4n − 2s − P, and since s ≤ P that is at least 4n − 3P: one extra placement and two extra removals for each missing pebble. Equality needs s = P and a first part that costs exactly 2n − P, which by the reaching result is possible only if n ≤ P(P+1)/2. So beyond the triangle serving costs strictly more than 4n − 3P, for every P. Up to the triangle the bound is attained. Play the reaching strategy forward (cost 2n − P), then walk back down. Before the j-th run of cleared nodes is rebuilt the memory is full and holds the j checkpoints below it plus an already-served block, contiguous and starting at the run’s upper checkpoint, of P − j pebbles. The run has at most P − 1 − j nodes, so before each placement one pebble can be taken off the top of the block (its predecessor is still in the block). Once the run is rebuilt and served, the memory has the same shape one level down. Each rebuilt node costs a placement and a removal, 2(n − P) in all, so the total is exactly 4n − 3P. A move-by-move checker that enforces every rule also accepted the strategy for all 409,113 segment layouts with P up to 9, and the exhaustive search (every reachable state, P = 3 to 7, n up to 36) agrees at every n: met exactly up to P(P+1)/2 and missed at once beyond it, at 7, 11, 16, 22 and 29.

Free-removal serving, with the slide move, is the game that investigation 07 solves, and the same cut settles it. Count arrivals: a placement or a slide puts a pebble on a node and costs one move, and removals are free. Cut the play at the moment node n first holds a pebble, when s ≤ P pebbles are held. Before the cut every node has to have been reached, so at least n arrivals. After it, every node not held at the cut still has to be served and so has to arrive again, at least n − s more. The cost is at least 2n − s ≥ 2n − P for every n ≥ P, which is the slope-1 line. Equality forces s = P, every node arriving exactly once before the cut, and exactly the n − P missing nodes arriving once after it. Then each of the P held nodes arrived once and so stays until it is served, and so does each rebuilt node (a slide would vacate the node below it, which still has to be served, so all the rebuilding is placements). When the top node of the run of missing nodes below the (j+1)th held node is rebuilt, the j held nodes below it and the whole run are present, so that run has at most P − j nodes. Adding the runs, n ≤ P + P + (P−1) + … + 1 = P(P+3)/2, so beyond that the cost is strictly more. The matching strategy slides a pebble up each run onto the next checkpoint and leaves it there, then serves from the top, dropping each served checkpoint and rebuilding the run below it by placement. A move-by-move checker accepted it for all 409,112 run layouts with P up to 8, at cost exactly 2n − P. The exhaustive search agrees: the line is met through n = 5, 9, 14, 20, 27 for P = 2 to 6 and missed at 6, 10, 15, 21, 28. It is also the r = 2 piece of the closed form in 07 (with l = n + 1 and s = P − 1): r·l − C(s+1+r, r−1) = 2n − P, and the condition C(s+1+r, r) ≥ l becomes n ≤ P(P+3)/2.

Does it survive branching? I repeated all four games on complete binary trees: a node can be pebbled once both children are, a leaf at any time, the goal is the root, and “serving” means visiting every node in reverse post-order (sliding a pebble from a child to its parent allowed in the free-removal games). Exhaustive search on trees of 3, 7 and 15 nodes (depth 1 to 3). The memory floors come out as depth + 1 pebbles with free removal and depth + 2 reversibly, the first being, as far as I know, the standard sliding-pebble figure for a binary tree. The three price-per-pebble slopes come out the same as on the chain: with N nodes the cost is N + 1·(N−P) for free-removal serving (from the very smallest memory, 4 pebbles, up), N + 1·(N−P) for reversible reaching and N + 3·(N−P) for reversible serving, each above a small threshold. At the floor on the 15-node tree, reaching the root costs 15 moves with free removal, 29 reversibly, and serving every node 26 and 49. So the slopes 1, 1, 3 are not an accident of a line. The floor carries over unchanged (every node has to be placed, so 2N − P is a lower bound for reaching the root reversibly, and the cut argument gives it for free-removal serving), and so does the idea that equality means every node is placed exactly once. What does not carry over is the triangle. For reversible reaching I searched the exactly-once plays directly, treating mirror-image states as the same (checked against the full search on the 7-, 15- and 31-node trees). The smallest memory at which the cost reaches 2N − P is 4, 6, 8 and 13 pebbles for depths 2, 3, 4 and 5 (N = 7, 15, 31, 63). Each play found was replayed through a separate move checker; for depth 5 that is 113 moves with 13 pebbles. The jump from 8 to 13 is not the two per level of the first three steps, and I have no formula for it; depth 6 was beyond the search. A structured version of the search gets further. Exactly-once play ends with a chosen set of P kept nodes, and every region of removed nodes is cleared at the moment its nearest kept ancestor is placed, so the problem becomes a dynamic programme over three numbers per subtree: nodes kept, removals pending and peak memory. Building a tree one subtree at a time gives 4, 6, 9 and 13, which misses the true depth-4 value of 8, because the 8-pebble play builds one grandchild subtree from each half before finishing either half. Letting the four grandchild subtrees interleave in every order reproduces 4, 6, 8 and 13 exactly, and gives 18, 26, 36, 52, 73 and 105 for depths 6 to 11; the plays for depths 6 to 9 pass the separate move checker, and the values for depths 10 and 11 have not been replayed. These are upper bounds. For depth 6 there is partial evidence of a lower bound: I took eight depth-3 pieces, the four depth-4 roots, the two depth-5 roots and the top root, and tried every valid order of those 15 events (22 million, or 171,600 after removing the 128-fold symmetry). Not one order allows 17 pebbles and 18 is reached, so 18 is exact within that class of plays. It is not a proof for the full game, because plays that interleave inside a depth-3 piece, or that remove nodes early, are not covered. A plain exhaustive search of the whole 127-node tree filled its memory with 187 million states and settled nothing. A second exact search summarises each 15-node subtree by its complete set of non-dominated memory profiles and tries every interleaving above that. It agrees with the older exhaustive searches at depths 4 and 5 (8 and 13 pebbles) with far fewer states, and it shows that depth 6 needs at least 15: with 14 pebbles it exhausts 71 million states without finding a play. Caps 15 to 17 fill its memory too, so the depth-6 value is somewhere from 15 to 18. From depth 5 on, two more levels roughly double the value (13, 26, 52 and 18, 36, 73, then 105), which would make it grow like the square root of the node count. The doubling is not exact, though: it predicted 72 at depth 10 and 104 at depth 11, and the search found 73 and 105, so this is a pattern in seven numbers and not a result. For free-removal serving the 31-node tree is on its line (2N − P) from 6 pebbles but not at its floor of 5 (61 moves instead of 57). So the threshold has an analogue on trees, but it is not the chain’s triangular number and I do not know what it is.

↑ Contents

INVESTIGATION 10

A Kalman smoother is backpropagation on a chain

20 October 2026

A linear-Gaussian state-space model is a chain: each state depends only on the one before it. Estimating every state from noisy measurements has three textbook answers that rarely cite each other: the Kalman filter with the Rauch–Tung–Striebel smoother, a sparse Cholesky solve of the normal equations, and reverse-mode differentiation of the likelihood. The claim is that they are one computation, and that the memory problem of the third is the checkpointing game of investigation 07.

The setup. A 3-dimensional state, a 2-dimensional measurement, 41 time steps, random stable dynamics and random positive-definite noise, five seeds. The reference is deliberately dumb: one dense weighted least-squares problem over all 123 unknowns, solved with a library routine, with no recursion anywhere in it. Everything else is written out by hand.

Worst disagreement over five seeds.
What is comparedWorst difference
Smoothed means: RTS backward pass against the dense least squares2.1e−14
Smoothed covariances: RTS against the diagonal blocks of (JTJ)−12.3e−15
Forward elimination of the information matrix: Schur complement against the inverse filtered covariance6.7e−15
Back substitution against the RTS means1.3e−14
Gradient of the negative log-likelihood in A: smoother’s second moments against a central finite difference5.6e−8
The same, using smoothed means only (negative control)2.9 to 47

What lines up. The filter is the forward half of a block-tridiagonal Cholesky solve: after eliminating states 0 to t−1 and the data, what remains on state t is exactly the inverse of the filtered covariance. The RTS smoother is the back substitution. The gradient is the part that surprised me by how much it needed. The derivative of the log-likelihood with respect to the transition matrix is a sum of smoothed second moments, E[xt+1xtT] − A·E[xtxtT], so the smoother’s output is the adjoint pass: it produces the gradient directly. It needs the smoothed covariances as well as the means. The control keeps only the means and is wrong by an amount comparable to the gradient itself (gradient entries up to 7 to 33, control error 2.9 to 47). The 5.6e−8 in the gradient row is the finite difference’s own noise with step 10−6, not a gap in the identity; the other rows are at rounding level.

The memory problem. The backward pass consumes the filtered states in reverse order, so a naive smoother stores all of them. With only s stored states and the rest recomputed by running the filter forward, the cost is the checkpointing game of 07 exactly, and I ran it as a real smoother rather than a counter:

Extra forward filter steps for 41 states, with s stored checkpoints besides the initial state.
Slots sSteps countedT(41, s) from 07
0820820
1208208
2135135
3108108
58787

The smoothed means from every checkpointed run were identical to the store-everything smoother, difference 0.0 (the arithmetic is the same operations in the same order, only the recomputed inputs differ). The prediction step of the backward pass is computed from the stored filtered state and is not counted as a filter step, which is the convention that makes the counts match.

What this does and does not show. None of the equivalences is new: Rauch, Tung and Striebel in 1965, the sparse-elimination reading of the smoother, and Fisher’s identity for the gradient are all in the literature, and checkpointed reverse sweeps are standard in automatic differentiation. What was done is to verify them in one place, at rounding level against an independent dense solve, and to show that the checkpointing counts from 07 carry over unchanged. Not examined: nonlinear models (extended or unscented filters), square-root forms and their stability, models with steps of unequal cost, and any dimensions or horizon other than 3, 2 and 41.

↑ Contents

INVESTIGATION 11

Sandpiles, spanning trees and resistance

21 October 2026

Three objects with little visible in common: piles of grains that topple whenever a site holds four, the ways of connecting a graph’s vertices without a cycle, and the resistance between two points of a resistor network. Each has its own textbook. The claim is that on a graph they count or measure the same thing, and the test is to compute every one of them independently on small grids.

The checks. Sandpile configurations are enumerated by brute force and tested for recurrence with the burning test, with one corner as the sink. Spanning trees are counted by an exact integer determinant and, separately, by listing them. Resistance comes from the pseudoinverse of the graph Laplacian. Nothing here shares code between the routes except the grid itself.

Grids of 2×2 up to 3×3, and the simulations as stated.
What is comparedResult
Recurrent sandpiles against spanning trees on 2×2, 2×3, 2×4, 3×34, 15, 56, 192 both ways
Reduced-Laplacian determinant against the product of the group’s invariant factorsequal; the 3×3 group is Z8 × Z24
Corner-to-corner resistance: pseudoinverse against a ratio of tree counts after merging the cornersequal to 12 digits (1, 1.4, 1.875, 1.5)
Merino’s theorem: sandpile heights against external activity of the treesidentical polynomials; 3×3 gives 79, 72, 32, 8, 1
Random trees from Wilson’s algorithm: how often each edge appears, against its resistancewithin 1.8 standard errors over 200,000 trees; resistances sum to n−1 exactly
Simulated sandpile, mean height in the centre (heights 0 to 3), against Priezzhev’s 17/82.1195 on 32×32, 2.1230 on 64×64, target 2.1250

The growth rate. The number of spanning trees of the n×n grid grows like exp(4G/π · n²), with G Catalan’s constant, so 4G/π = 1.1662436. Measured naively, ln(trees)/n² at n = 40 is 1.1214, almost 4% low, because the boundary contributes at the same order of magnitude as the next digit. Fitting an area term, a perimeter term, a constant and a logarithm over n = 4 to 40 gives 1.16624372 for the area coefficient (error 1e−7 with n from 24). The perimeter coefficient comes out as −1.76276 against −2 ln(1+√2) = −1.76275, and the logarithm as −0.4996. It is the same lesson as the grid-size measurement of π: the number is easy to read once the edge is modelled instead of ignored.

What this does and does not show. Every statement above is a known theorem or result (Kirchhoff, Dhar, Merino, Priezzhev) used as a target, and it checks. Nothing is new. The grids are small, the simulated height is one run per size with a finite-size edge, and the fitted exponents beyond the area and perimeter terms are observed rather than proved.

Toy: A sandpile you can drop grains on →Tap to add grains and watch avalanches, pile ten thousand in the middle, or let it rain and see the mean height settle near 17/8.

↑ Contents

INVESTIGATION 12

The tree count in three more disguises

21 October 2026

Investigation 11 ended with the number of spanning trees appearing as a sandpile group order, a resistance and a growth rate. It turns up in three more places: how long a random walker takes to get somewhere and back, the ratios of consecutive Fibonacci numbers, and the long-run behaviour of a Markov chain. The claim is that each is the same count in different clothes. The test is exact arithmetic wherever the numbers are rational, and simulation where they are not.

Exact comparisons unless a simulation is named.
What is comparedResult
Commute time between two vertices, from a linear solve, against 2|E| times the effective resistanceequal to 1e−14 on three grids and three random graphs (19.6, 36 and 59.62 on 2×3, 3×3, 3×4); simulated walks within noise
Spanning trees of the fan graph (a path with one extra vertex joined to all of it) against F(2n)equal for n = 1 to 12 (1, 3, 8, 21, 55, …)
Resistance from the path’s end to the extra vertex: pseudoinverse, and a series–parallel ladder recursion in exact fractionsboth F(2n−1)/F(2n): 2/3, 5/8, 13/21, 34/55, …
Stationary distribution of a Markov chain against the normalised weights of spanning trees directed into each stateexactly equal on three random five-state chains

What lines up. A fan graph is a resistor ladder whose rungs all end at one node. Looking into it from the far end, the resistance obeys Rn = 1/(1 + 1/(1 + Rn−1)), which is a continued fraction, and its convergents are F(2n−1)/F(2n), heading for 1/φ = 0.6180339887 and 2e−10 away at n = 12. So one ratio is a resistance, a ratio of two tree counts and a continued fraction at once. The commute-time identity says the same resistance prices a random walker’s round trip: between opposite corners of the 3×3 grid it is 36 steps. And the Markov chain statement is the directed version of the tree count, where each tree carries the product of its transition probabilities instead of the number 1.

What this does and does not show. All three identities are known (Chandra and co-authors for commute time, Freidlin and Wentzell for the chain). They check on small cases, and nothing here is new. What is useful is the single object behind four quantities, which is also why Investigation 11’s tests are not independent of this one: they share the Laplacian.

↑ Contents

INVESTIGATION 13

Spanning trees are domino tilings

21 October 2026

Cover a chessboard with dominoes and you have counted something that looks unrelated to the previous two investigations: no graph, no resistance, just a count of tilings. Temperley’s bijection says it is the same count. The spanning trees of an m×n grid are in one-to-one correspondence with the domino tilings of a (2m−1)×(2n−1) board with one corner removed. The test is to count both sides by methods that share nothing: a determinant on one side, a bitmask dynamic programme on the other.

Counts are exact integers except where a formula is evaluated in floating point.
What is comparedResult
Tilings counted by a bitmask dynamic programme against Kasteleyn’s product formula, on boards from 2×2 to 8×8, 5×8 and 8×7equal to 1e−15 relative (8×8: 12,988,816)
Spanning trees of an m×n grid (exact determinant) against tilings of the (2m−1)×(2n−1) board minus a cornerequal on eight grids from 2×2 to 5×6 (5×5: 557,568,000; 5×6: 74,795,194,705)
Entropy per cell of N×N boards against G/π, N up to 100naive 0.288589, 1.0% low; fitted 0.29156089, error 1e−8

Why they match. On the odd board, the cells where both coordinates are odd are the grid’s vertices, the cells where one is odd and one even are its edges, and the cells where both are even are its faces. A tiling pairs every edge cell with a neighbouring vertex or face cell, which reads off a spanning tree and the spanning tree of the dual grid at once. So the determinant of the Laplacian and the product in Kasteleyn’s formula are two routes to one number, and the growth rate in Investigation 11, 4G/π per vertex, is the tiling entropy G/π per cell, four cells to a vertex.

An observation I cannot explain. Fitting the same four-term form as in Investigation 11 to the full-board tilings gives a logarithmic coefficient of about zero (−0.0004), where the tree count gave −1/2, and a perimeter coefficient of −0.29825 that I have not identified with a closed form. The boards differ at the boundary (full and even-sided here, odd-sided with a corner removed on the tree side), so the two fits are not asking the same question, and I have not tried to make them.

What this does and does not show. Kasteleyn (1961), Temperley (1974) and the value G/π are classical, and this checks them on small boards. The count of boards is small, and the fit exponents beyond the area term are observed, not proved.

↑ Contents

INVESTIGATION 14

Hard squares from thin strips

21 October 2026

Put a marker on some squares of an n×n grid so that no two markers touch. The number of ways grows like κn², and unlike the tree and tiling counts above, no closed form for κ is known. Baxter computed it numerically in 1980: 1.5030480824753323. The test is whether a transfer matrix on a ring-shaped strip of width w, which knows nothing of Baxter’s method, converges to it.

Error of κw against Baxter’s value. The sign alternates, so the table shows signed errors.
Strip width wError
3−1.4e−2
8+6.8e−5
12+1.9e−6
16+6.5e−8
20+2.4e−9
Aitken extrapolation, widths 17 to 19−1.3e−11
Aitken extrapolation, widths 18 to 20+5.2e−12

Why it converges so fast. The strip is periodic across its width, so there is no edge to contribute a power-law correction. The error is a decaying exponential, shrinking by a factor of about 0.43 to 0.44 per extra unit of width and flipping sign each time. Investigation 11’s trees and Investigation 13’s tilings were measured on open boards, where the edge terms had to be fitted. Here they are absent, and Aitken’s extrapolation on three consecutive widths removes the alternating error and gives 11 digits.

What this does and does not show. The extrapolation is validated only because the answer is known. The ratio drifts slowly (−0.435 to −0.442), so the tail is not a single exponential. Width 21 ran out of memory with an explicit sparse matrix. Baxter’s result is classical, and this is a reproduction, not new mathematics.

↑ Contents

INVESTIGATION 15

How fast a graph mixes, and which side of Cheeger is tight

21 October 2026

A graph with a bottleneck mixes slowly. Cheeger’s inequality says how slowly in terms of one number: the smallest ratio h of edges cut to volume over all ways of splitting the graph, bounded by λ2/2 ≤ h ≤ √(2λ2), where λ2 is the second eigenvalue of the normalised Laplacian. The test computes h by trying every subset, which shares nothing with the eigenvalue, on six small graphs.

Cheeger and mixing checks on small graphs.
What is comparedResult
λ2/2 ≤ h ≤ √(2λ2) on a path, a cycle, a 3×4 grid, two K5 joined by a path, a random 3-regular graph and K14holds on all six
Lazy-walk mixing time against 2/λ2 (path, cycle, grid, barbell, 3-regular, K14)46 vs 49.4, 14 vs 14.9, 8 vs 8.6, 52 vs 69.9, 7 vs 6.8, 2 vs 1.9
Lower bound λ2/2 against h on K14equal (0.5385)
√(2λ2)/h on cycles C6 to C16 (every second one shown)3.0000, 3.0902, 3.1153 rising towards π = 3.1416

Which side is tight. The two sides of Cheeger are tight on different graphs. On complete graphs the linear lower bound is an equality. On long cycles the square-root upper bound is off by a factor that tends to π, while the lower bound drifts away (the ratio λ2/2 to h falls from 0.75 to 0.30) because λ2 shrinks like 1/n² and h only like 1/n. No single family makes both sides tight.

What this does and does not show. Cheeger (1970), Alon and Milman, and Dodziuk are classical. Exhaustive subset enumeration limits the graphs to 16 vertices, and the limit π is read off a rising sequence here; it follows from λ2 = 1 − cos(2π/n) and h = 2/n for even n, which the numbers agree with. The mixing time is within about 35% of 2/λ2 on every graph tried, which is a pattern on six graphs.

↑ Contents

INVESTIGATION 16

Eulerian circuits are spanning trees too

21 October 2026

Investigations 11 to 13 kept finding spanning trees where no tree was in sight. Here is another place: walk along every edge of a directed graph exactly once and return to the start, which is an Eulerian circuit. The BEST theorem (de Bruijn, van Aardenne-Ehrenfest, Smith, Tutte) says the number of such circuits is the number of spanning arborescences, trees whose edges all point to one root, times a product of factorials of the out-degrees minus one. The test counts circuits by brute-force search and arborescences two ways, by brute force and by a determinant.

Random directed graphs, small enough to enumerate every circuit.
What is comparedResult
Circuits counted by search against arborescences × ∏(outdegree−1)!, on 60 random graphs with 3 to 5 vertices and up to 11 edgesequal on all 60 (up to 1,440 circuits)
Arborescences counted by brute force against the Laplacian determinant, for every rootequal on every graph and every root
Arborescence count when the root changes, on graphs where in-degree equals out-degreethe same for every root
Stationary distribution of the random walk on 40 graphs without that balance, against arborescences × out-degree of the rootagree to 2.5e−16

A mistake worth keeping. My first test of the last row used the arborescence counts alone and failed, with an error up to 0.25. The Markov chain tree theorem weights each tree by the product of the walk’s transition probabilities, which is 1/(out-degree) at each non-root vertex, and that works out to the root’s out-degree divided by the product of all of them. Once the weight is included the agreement is to rounding error. The unweighted count is only right when the root-dependence cancels, which is the balanced case in the third row.

What this does and does not show. The BEST theorem, Tutte’s matrix-tree theorem for directed graphs and the Markov chain tree theorem are all classical. The checks are on small graphs. The point is that one determinant counts trees, circuits and stationary weights, which is the same object as in Investigation 12.

↑ Contents

INVESTIGATION 17

Six more checks on the same matrix

21 October 2026

By now the pattern is plain: the Laplacian of a graph is behind spanning trees, resistance, walks and tilings. This investigation runs six more classical statements against it in one go, each tested against a count or simulation that does not use the formula being tested.

All on small graphs, which keeps every brute-force count exact.
What is comparedResult
Closed walks of length 1 to 7 counted by explicit recursion, against the sum of eigenvalue powers (cycle, Petersen graph, 3×3 grid)equal
Foster: sum of effective resistances over all edges against n−1; each edge’s resistance against the fraction of spanning trees containing it (five graphs)equal to 4e−15
Kemeny: expected hitting time of a random target from each start vertex, against the sum of 1/(1−λ) over nonzero eigenvalues (20 random weighted graphs)same for every start; equal to 4e−15
Wilson’s loop-erased random walk against the uniform distribution on all spanning trees (K4, K4 minus an edge, 2×3 grid)chi-square 14.6, 11.7, and 35.8 then 17.7 on average over six reruns; see text
Cayley’s nn−2 against the determinant for n = 3 to 8; all Prüfer sequences decoded against the enumerated trees of Kn, n = 4 to 6equal; the trees match as sets
Tutte polynomial by deletion–contraction at (1,1), (2,1), (1,2), against counts of trees, forests and connected spanning subgraphs (five graphs)equal

The one number that looked wrong. The first Wilson test on the 2×3 grid gave a chi-square of 35.8 on 14 degrees of freedom, which would happen by chance about once in a thousand runs. Six reruns with 150,000 samples each gave 18.5, 19.6, 18.7, 6.3, 26.4 and 16.6, a mean of 17.7 against an expected 14. That is consistent with a uniform sampler within noise, and Wilson’s algorithm is proved uniform, but this is a loose test and I would not call it a confirmation.

What this does and does not show. Every statement here is classical (Foster 1949, Kemeny and Snell, Wilson 1996, Cayley 1889, Prüfer 1918, Tutte 1954), and each held on every graph tried. The point is the shared source, not new mathematics.

↑ Contents

INVESTIGATION 18

Why the slope is 3: a life-cycle count

22 October 2026

Investigation 09 proved that reversible serving on a chain costs 4n − 3P above a cutoff: every missing pebble costs three extra moves, against one in the other two games. The claim here is that the 3 is not a property of the chain at all but a piece of bookkeeping, and that it predicts the slopes of games nobody has played yet.

The count. With N nodes and P pebbles, cost = N + (E − 1)(N − P), where E is the number of paid events a node outside the kept set must pass through. E = (1 + sweeps) × (1 + reversible): every time a value is needed it has to arrive, which costs one move, and under reversibility every arrival has to be paid back by a removal. Reversible serving is place, unplace, re-place, unplace, so E = 4 and the slope is 3. Free-removal serving and reversible reaching both have E = 2, slope 1, which is the rest of Investigation 09’s table.

The proof. Cut the play at the moments the sink is first held in each sweep. At most P pebbles cross each cut, and every other node has to arrive again on the far side. For k sweeps this gives cost ≥ 2(k+1)N − (2k+1)P with reversibility and (k+1)N − kP with free removal. It is the same cut as in 09, applied once per sweep.

New games: serve the whole chain or tree k times. Exhaustive search on chains n = 8, 10, 12 and complete binary trees N = 7, 15.
GamePredicted slopeResult
Reversible, k = 25every value above the cutoff on the line
Reversible, k = 37every value above the cutoff on the line
Free removal, k = 22every value above the cutoff on the line
Free removal, k = 33every value above the cutoff on the line

A test it could have failed. These games were not in the earlier searches, so the slopes were written down before they were run. On the chain with n = 12, reversible, k = 2, the search gives 12, 17, 22, 27, 32, 37 moves for P = 12 down to 7: steps of exactly 5.

What this does and does not show. The lower bound is proved for every k; the slopes are checked exactly on the small chains and trees above. Open: formulas for the cutoffs when k ≥ 2. The argument resembles Hong and Kung’s red–blue pebbling bound for I/O in the shape of the cut only; I have not measured anything that connects them.

Predictions and discoveries

Held
Written before running, the life-cycle count predicted slopes 5 and 7 for reversible serving twice and three times, and 2 and 3 with free removal. Every value above the cutoff landed exactly on those lines, on chains and on trees.
Missed
None.
Didn’t see coming
How fast the cutoffs shrink once there are two or more sweeps; there is still no formula for them.

↑ Contents

INVESTIGATION 19

Zeta zeros and random matrices

23 October 2026

The Riemann zeta function’s zeros on the critical line are a number-theory object. The eigenvalues of a large random complex Hermitian matrix (the Gaussian unitary ensemble, GUE) are a physics object. Montgomery and Dyson noticed in 1972 that, once the average density is divided out, they are spaced the same way. The test is to compute enough zeros to see it, and then to see where it stops.

The data. About 340,000 zeros from my own Riemann–Siegel code, in three windows: the first 100,118, a window near height 106 and one near 107. They were checked against mpmath and against the zero-counting formula, so none are missing. The random matrices come from the tridiagonal β-ensembles, which give GOE, GUE and GSE without building dense matrices.

Nearest-neighbour spacings of unfolded zeros near height 107, Kolmogorov–Smirnov distance to each candidate.
CandidateKS distance
GUE (complex Hermitian)0.010
GSE (quaternion)0.071
GOE (real symmetric)0.083
Poisson (independent points)0.289

Short range. GUE wins by a factor of 7 over the next candidate. Close pairs of zeros are suppressed like s3 (measured exponent 3.01), which is what GUE requires and what neither GOE (s1) nor GSE (s4) gives. The pair correlation follows Montgomery’s 1 − (sin πx/πx)².

Long range, where the primes show through. The number variance (how much the count of zeros in a window of length L fluctuates) stops growing near L ≈ 6 to 8, while for GUE it keeps climbing. Berry’s formula, a sum over prime powers, reproduces the wobbles in that saturated curve to an rms of 0.001, plus a constant that turns out to be 1/π². The primes 2, 3, 5, 7, … are visible as the oscillations.

Not confirmed. Bogomolny’s finite-height correction to the spacing distribution overshoots the measured deviation by a factor of 2 to 3 at these heights. I count that as inconclusive rather than a failure: it has only been tested at heights near 1015 to 1022, far above mine.

In plain words. At short distances the zeros behave like GUE eigenvalues; at long distances they behave like the primes. The two descriptions hand over near L ≈ 5.

Predictions and discoveries

Held
GUE beats GOE, GSE and Poisson on spacings; close pairs repel like s3; pair correlation follows Montgomery’s curve; number variance grows like log L for short windows and saturates for long ones; Berry’s prime sum traces the long-range wobbles.
Missed
The Bogomolny finite-height correction, predicted to explain the small leftover gap, overshot by 2–3× at these heights. Inconclusive rather than wrong, since it was only ever tested much higher up.
Didn’t see coming
After removing the prime sum, what’s left is a constant, and it is 1/π2.

↑ Contents

INVESTIGATION 20

Knots and primes

23 October 2026

Mazur’s dictionary in arithmetic topology says a prime number is like a knot in the 3-sphere: linking numbers become Legendre symbols, branched covers become field extensions. The test is whether each entry of the dictionary holds numerically, including the places where it has to be bent to fit.

Each row computes the knot side and the number side independently.
Knots ↔ primesResult
Linking number ↔ Legendre symbol(p/q) = (q/p) on all 22,155 pairs of primes ≡ 1 mod 4 below 3000; they disagree on all 23,653 pairs ≡ 3 mod 4
Milnor’s triple linking ↔ Rédei symbol13, 61, 937 are pairwise unlinked but linked as a triple; 0.515 of 2,125 pairwise-unlinked triples are
Alexander polynomial ↔ cyclic covers (Fox’s formula against Smith normal form)114 of 114 cases on six twist knots
Iwasawa towers ↔ towers of covers of a knotμ = 0 in all 56 imaginary quadratic fields

Where it bends. Linking numbers of real knots are symmetric. Legendre symbols are symmetric only after a sign correction (quadratic reciprocity’s exception for two primes ≡ 3 mod 4), which real knots never need. The Rédei symbol is symmetric where Milnor’s μ is antisymmetric, so the honest translation is μ mod 2. As a control, a fake symbol fails the symmetry test 97.6% of the time.

Borromean primes. 13, 61 and 937 are the arithmetic version of the Borromean rings: no two are linked, and the three together are. About half of all pairwise-unlinked triples tried behave this way.

Covers. For the figure-eight knot the first homology of the n-fold cyclic cover has order 5, 16, 45, 121, 320, …, which is L2n − 2 with L the Lucas numbers, the companions of the Fibonacci numbers in Investigation 12. On the number side, the 3-part of the class number grows up each of 56 Iwasawa towers as λn + ν with μ = 0, the arithmetic analogue of homology growing up a tower of covers. Q itself has class number 1 all the way up its tower, like a knot with no p-torsion.

What this does and does not show. Every entry is a known theorem or a known analogy (Mazur, Morishita, Rédei, Fox, Iwasawa). The checks are on small primes and small knots. The analogy is a dictionary, not an equivalence, and the sign fixes above are where it shows.

Predictions and discoveries

Held
Legendre symbols behave like linking numbers (symmetric only after the sign fix); Borromean primes exist and about half of pairwise-unlinked triples are; Fox’s formula and prime-power covers behave as predicted; Iwasawa towers grow as λn + ν with μ = 0.
Missed
Nothing outright, but Rédei’s symbol matches Milnor’s invariant only mod 2, not as an integer.
Didn’t see coming
The figure-eight knot’s cover sizes are Lucas numbers minus 2; the five inert fields with 3 | h all have λ = 1.

↑ Contents

INVESTIGATION 21

Proofs are programs

23 October 2026

The Curry–Howard correspondence says a formula of intuitionistic logic is provable exactly when some program has it as its type, and that simplifying a proof is running the program. Logic and programming, two textbooks. The test is to decide a large number of formulas both ways and see if either side ever disagrees or gets stuck.

Programs are simply typed lambda terms; countermodels are Kripke (possible-worlds) models.
What is comparedResult
11,451 formulas (every one with up to 3 connectives) plus 7,000 random larger ones: a program that type-checks, or a small countermodelevery one gets exactly one; none left undecided
Excluded middle and Peirce’s lawtrue in truth tables, no program
Glivenko: classical tautologies with “not not” in fronta program appears, 18,450 of 18,450
6,000 random lambda terms run by three different evaluatorsevery typable one halts, all three agree; untypable ones (Ω, Y) can loop
call/cc as a proof of Peirce’s law; its CPS translation against the double-negation translationidentical

What lines up. A program that type-checks is a proof, and normalising the program is cutting the detours out of the proof; strong normalisation of typed terms is why every typable term halts. Classical logic is what you get when the language is allowed to jump (call/cc), and translating such programs into continuation-passing style is the same act as Gödel’s double-negation translation of classical proofs into intuitionistic ones.

A surprise. The formula ((p→p)→p)→p has exactly k proofs of size 3k + 2 and none of any other size, checked up to size 44.

Predictions and discoveries

Held
Provable exactly when a program exists, on every formula; Glivenko on all of them; typed programs always halt and all evaluators agree; call/cc gives Peirce a program.
Missed
None.
Didn’t see coming
((p→p)→p)→p has exactly k proofs of size 3k + 2. Explained and proved in the 26 October follow-up.

Follow-up, 26 October: why k proofs of size 3k + 2. Every move in the proof is forced but two. A proof must start λf. M with M : p. Since p is atomic, M is either a variable x : p already bound, or f applied to something of type p→p; nothing of type p→p is in scope, so that something must be λx. M′, which puts one more p in scope, and the same choice repeats. So every proof is λf. f(λx1. f(λx2. … f(λxk. xj))): call the oracle f some number of times k, then hand back one of the k values it gave you (j). Each call costs 3 symbols, plus 2, so there are k proofs at size 3k + 2 (generating function z5/(1 − z3)2). In plain words, f says “give me a way to turn a p into a p, and I’ll give you a p”; full Peirce ((p→q)→p)→p has no proof because you would need a q from nothing, but with q = p the p you’re handed is the answer. Checks: the counter to size 200; an independent enumeration of all 750,549 β-normal terms to size 14 finds exactly the predicted terms; the generalisation where f takes m arguments gives m·k proofs at size (m + 2)k + 2 (to size 120); a branching version where f takes two functions gives proofs only at sizes 6k + 2, counted by binary trees weighted by leaf depths (1, 8, 88, 1218, 20120, …, to size 80); and adding an extra p up front gives k + 1 proofs at size 3k + 3, as the argument predicts. This is a proof, not just a pattern.

What this does and does not show. The correspondence, Glivenko’s theorem and Griffin’s call/cc result are classical. The checks cover implicational and propositional formulas of modest size; nothing here touches dependent types or quantifiers.

↑ Contents

INVESTIGATION 22

The j-function and the Monster

23 October 2026 · full-table rerun 24 October

The j-function of the modular group starts 1/q + 744 + 196884q + …. The smallest faithful representation of the Monster, the largest sporadic finite simple group, has dimension 196883. McKay’s observation that 196884 = 1 + 196883 became monstrous moonshine: one graded space carries a Monster action, and each group element’s twisted count of it is a special modular function (a Hauptmodul). The test is to build the modular side first, without using the Monster, and then see whether the group’s character table accepts it.

First pass, no Monster input. Seventeen series built from modular-function recipes alone.

Rerun with the Monster’s character table

With the full 194 × 194 character table (from GAP), I searched 25,283 eta quotients; two filters leave exactly one series each for 70 classes. Then I solved for how many copies of each irreducible representation appear in each graded layer Vn. Only n = 1 to 3 were used to choose the series, so n = 4 to 19 is a clean test, and every layer splits into Monster irreducibles with nonnegative whole multiplicities.

V4 = 2·1 + 3·196883 + 2·21296876 + 842609326 + 19360062527 = 20245856256 (the q&sup4; coefficient of j)

Controls. Swapping the series for classes 2A and 2B breaks it. So does nudging one coefficient by 7, which the integrality test of the first pass cannot see.

What this does and does not show. This is Borcherds’ theorem (1992), so the test is of the computation, not of open mathematics. What is shown is that the modular side, built blind, lands exactly on the group side for 19 layers.

Predictions and discoveries

Held
Three routes to j agree; every eigenvalue count is a nonnegative integer for 17 classes up to n = 2000; replicability holds; with the full Monster table, every layer to n = 19 splits into irreducibles with nonnegative whole multiplicities.
Missed
My remembered guess for the layer V4 put the wrong irreducible in; the character table corrected it.
Didn’t see coming
Integrality alone can’t catch some wrong power maps (4C2 = 2A slips through); replicability can. And the cube root of j(3τ) starts 1/q + 248q2, the dimension of E8.

↑ Contents

INVESTIGATION 23

Catalan numbers and how many pebbles a tree needs

23 October 2026

The Catalan numbers 1, 2, 5, 14, 42, … count binary trees, mountain ranges, triangulations and dozens of other things, and the textbooks list the families side by side. The question here is narrower: what does pebbling a tree, the game of Investigations 07 to 09, have to do with the height of a mountain range?

Exact counts unless a random sample is named.
What is comparedResult
Ten Catalan families (mountain ranges, binary trees, triangulations, non-crossing partitions, 231-avoiding permutations, …) mapped into each otherone-to-one up to n = 9
Minimum pebbles for every tree shape (23,714 shapes, up to 10 internal nodes) against the Strahler number0 mismatches
Trees needing at least p + 1 pebbles against mountain ranges reaching height 2p − 1equal for every n ≤ 200
Pebbles for a random tree: optimal order against naive left-to-rightabout log4 n against about √(πn)

What lines up. The minimum number of pebbles for a tree is its Strahler number, the same number hydrologists use to rank river branches and compilers use to count the registers an expression needs. Counting trees by it gives exactly the count of mountain ranges by height, with the height doubling for each extra pebble. Investigation 24 proves this with an explicit map.

What does not line up. Reversible pebbling is not a function of the Strahler number; it tracks log2 of the size instead.

Small numbers lie. Three classes of permutations give the same counts at n = 4 and 5 (23 and 103) and only split at n = 6. I could not say what one of them was until Investigation 30.

Predictions and discoveries

Held
Ten Catalan families map one-to-one; minimum pebbles = Strahler number on every tree shape; trees needing p + 1 pebbles are exactly as many as mountains of height ≥ 2p − 1; the project’s own sequences are not Catalan.
Missed
None.
Didn’t see coming
Three classes of 4-pattern-avoiding permutations agree (23, 103) and only split at n = 6, later explained in Investigation 30 as LIS ≤ 3. And the pebble/height match is in counts only, not tree by tree under the obvious maps.

↑ Contents

INVESTIGATION 24

Strahler number and mountain height: a proof and a bijection

23 October 2026

Investigation 23 found that trees needing p + 1 pebbles are exactly as many as mountain ranges reaching height 2p − 1. Equal counts on 200 values of n is evidence, not a reason. The reason is a pair of shrinking steps, one on each side, with the same bookkeeping.

Checks. All 1,033,412 trees with up to 13 internal nodes, and random trees up to 5,000 nodes: 0 violations of the height band. The band is the finest match possible.

Controls. Without the strip step, 90 of 132 images dip below zero and are not mountains at all. The obvious first-return map does slightly worse than a random shuffle at keeping Strahler number and height together.

What this does and does not show. The equality of counts is known, and the map is likely a reconstruction of Françon’s (1984) rather than anything new. What was done is to build it from the two shrinking steps and check it on every small tree.

Predictions and discoveries

Held
The bijection is one-to-one and keeps the height band on all 1,033,412 trees to 13 nodes; without the strip step it breaks; any fixed spine order works.
Missed
None.
Didn’t see coming
The obvious first-return map does slightly worse than a random shuffle.

↑ Contents

INVESTIGATION 25

Riemann–Roch on a graph

23 October 2026

The Riemann–Roch theorem is a centrepiece of algebraic geometry: on a curve of genus g, it relates how many functions have prescribed poles to a count of degrees. Baker and Norine showed in 2007 that the same statement holds on a finite graph, with chips on vertices in place of points on a curve. The test is whether it survives exhaustive computation, and whether the controls that should fail do.

The dictionary.
CurveGraph
DivisorChips on vertices
Linear equivalenceChip-firing
GenusCycle rank, E − n + 1
JacobianSandpile group (Investigation 11)
Checks on small graphs.
What is comparedResult
r(D) − r(K − D) = deg D + 1 − g on 7,140 divisors across 170 graphs, three independent methods0 failures; the methods agree
Control: the right number of chips in the wrong place in place of Kfails on 96 of 130 graphs, and never when it happens to be equivalent to K
Chips from acyclic orientations (9,960)g − 1 chips can lose, g never do
Clifford’s inequalitytight only on hyperelliptic graphs
Gonality against the Brill–Noether value ⌊(g+3)/2⌋ on all 996 graphs with ≤ 7 verticesnever exceeds it

Where the analogy stops. On a curve, the Brill–Noether value is what a typical curve attains. Random dense graphs fall far below it, so random graphs are not “typical curves”. Chains of loops do attain it, which Investigation 26 proves.

What this does and does not show. Baker–Norine, the orientation criterion and the graph Clifford theorem are known. The checks are exhaustive only on small graphs.

Toy: Find the smallest chip pile that can’t be beaten →Place chips, let the page attack, and fire dots to pay back the debt. Seven graphs, from a pentagon to the dodecahedron.

Predictions and discoveries

Held
Riemann–Roch exact on 7,140 divisors; every deliberate mistake breaks it; gonality never exceeds the Brill–Noether value; the chain-of-loops pattern min(k, BN), guessed before the code existed.
Missed
“Random cubic graphs close to BN, some below” was right but vaguer than the data, which fall steadily further below as they grow.
Didn’t see coming
The size of the cubic drift, and (follow-up) that equal edge lengths cause much of it.

Follow-up, 27 October: why random cubic graphs fall below Brill–Noether. A new exact solver (about 1000× faster) took the test from 16 to 36 vertices: 418 random cubic graphs plus 16 named ones. None ever exceeded the Brill–Noether value, and the shortfall keeps growing, about two chips by 36 vertices. Whether it grows in proportion to size (gonality/n settling below 1/4) can’t be decided at these sizes. Short loops are not the reason: very symmetric high-girth graphs fall short too (Petersen, Heawood, Möbius–Kantor and Pappus hit the value; Desargues, the dodecahedron, McGee and Tutte–Coxeter are one below). Neither is chips being stuck on vertices: cutting every edge into 2 or 3 pieces changed nothing on 100 graphs. Much of the shortfall comes from every edge having the same length. Give the edges random lengths and the small graphs climb back (lengths 1–20 reach the value in 17 of 20 graphs at n = 12, against 1 of 20 with unit lengths), the same lesson as the chain of loops in Investigation 26, where equal arcs made special curves. From about 20 vertices on, random lengths up to 8 no longer close the gap, so part of it may belong to the shape of a random cubic graph itself. The only proved lower bound, 0.072n, sits well below anything measured. Expected gonality of a random cubic graph is an open question (Jensen et al.); these are measurements, not a theorem.

Random cubic graphs: mean gonality against the Brill–Noether value.
n162024283236
Brill–Noether value67891011
mean gonality4.905.736.477.077.908.92

↑ Contents

INVESTIGATION 26

Chains of loops: a gonality proof

23 October 2026

Investigation 25 observed that a chain of g loops with torsion k has gonality min(k, ⌊(g+3)/2⌋): the fewest chips that can reach every vertex is either k or the Brill–Noether value, whichever is smaller. Here it is proved, by a walk.

The proof. Chips cross the chain loop by loop. An empty loop strands one chip unless the count is a multiple of k, and a chip at the right spot joins the crossing. The chain survives an attack on a loop exactly when at least two chips are there. So there are two ways to win: bring k chips, which cross for free, or start with one and drop a helper on every other loop, which costs ⌊(g+3)/2⌋. Nothing cheaper exists.

Each check uses a method that does not share code with the walk.
What is comparedResult
The walk against Dhar’s burning reductionagree on 3,840 divisors
Chains with mixed torsion on different loops60 of 60
Pflueger’s hyperelliptic criterion0 disagreements on 1,118,464 chains

What this does and does not show. The statement is known as a consequence of Pflueger’s theory of chains of loops. What is here is a short self-contained proof for finite graphs, checked against an independent reduction.

Predictions and discoveries

Held
The walk rule and the loop test match direct computation on every divisor; the proof sketch written before coding went through.
Missed
None.
Didn’t see coming
The end loops’ twist never matters for gonality 2; and (follow-up) rank 2 is not a simple minimum of the two obvious bounds.

Follow-up, 27 October: the rank-2 table is Brill–Noether for k-gonal curves. The rank-2 values observed earlier now have an explanation, and it covers every rank. A chain of loops that all have the same small twist k acts like a curve that wraps k times around a line (a k-gonal curve). On such a curve you can get degrees of freedom the ordinary Brill–Noether way, or by the wrap-around trick (k chips buy one), or a mix; the cheapest mix sets the answer. One formula, the Hurwitz–Brill–Noether number (Pflueger; Jensen–Ranganathan; Larson), says which mix wins. It is not simply min(rk, BN): that guess is wrong on 28 of 468 entries, e.g. rank 2, g = 5, k = 3 gives 5, not 6. Three independent routes agree: exact chip-firing on the finite graph (a new solver for any rank), Pflueger’s displacement tableaux (a puzzle about filling a grid with numbers, no graph involved), and the closed formula. Tableaux and formula agree on all 468 entries with rank 1–4, g up to 14; 14 chip-firing entries were predicted before running and all matched, plus 6 larger cases chosen where the answer is neither rk nor BN (e.g. rank 4, g = 8, k = 3 gives 10): 0 mismatches in 48 runs. Controls: swapping a loop’s two arcs changes nothing; giving one loop a different twist moves the value exactly where the tableaux say. Known theorems for metric chains; what’s added is an exact finite-graph confirmation with controls. Open: a direct chip-firing proof for rank 2.

Minimum degree of a rank-2 divisor on a chain of g loops with torsion k.
gBNk = 2k = 3k = 4k = 5k ≥ 6
4545555
5645666
6646666
7746777
8846788
9846888
10946899
1110468910

↑ Contents

INVESTIGATION 27

Rogers–Ramanujan and hard hexagons

23 October 2026 · dense side 24 October

The Rogers–Ramanujan identities equate a sum and a product of q-series, and they look like pure number theory. Baxter found them in 1980 inside the exact solution of the hard-hexagon model: particles on a triangular lattice that may not touch, the same kind of problem as Investigation 14’s hard squares, which has no exact solution. The question is where in the lattice the identities live.

As counting. The identities say partitions with parts differing by at least 2 are equinumerous with partitions into parts ≡ ±1 mod 5 (and the companion). Checked to n = 300. A gap-2 partition is a row of hard-core particles on a line, which is the one-dimensional version of the lattice gas.

Hard hexagons, entropy per site κ at activity z = 1.
RouteAgreement
Baxter’s product against Joyce’s polynomial40 digits
Transfer-matrix strips, as in Investigation 1413 digits

The mechanism. Cut a strip in half at one site and list the entanglement modes across the cut. They sit on an exact ladder with spacing −6 ln|x| (measured ratio 6.0000000), and the number of modes on each rung is 1, 1, 1, 1, 2, 2, 3, 3 in one sector and 1, 0, 1, 1, 1, 1, 2, 2 in the other: the coefficients of Ramanujan’s G and H. The identities are the degeneracies of that ladder. Hard squares, done the same way, give a crooked ladder with the wrong counts.

A prediction that failed. On the dense side of the transition the ladder is still exact, and I predicted Rogers–Ramanujan counts again. They are not: the counts become characters of the 3-state Potts model (central charge 4/5). Each phase carries the fingerprint of the critical theory next to it, not of the model as a whole. Investigation 28 explains the low-density side.

What this does and does not show. Baxter’s solution, Joyce’s polynomial and the corner-transfer-matrix reading of the identities are known. The ladder spacing and counts are measured on finite strips.

Predictions and discoveries

Held
RR identities as counting; κ by three routes to 13+ digits; entanglement levels on an exact ladder with RR counts on the dilute side.
Missed
≥ 8 digits near the critical point (got 4–6; correlation length, not the formula). On the dense side I predicted RR counts again; they were 3-state Potts characters instead.
Didn’t see coming
The ladder spacing is exactly 6 ln|x|, and the dense phase carries its critical neighbour’s fingerprint.

Follow-up, 1 November: the ladder offset is the density. The occupied-centre ladder sat above the empty-centre one by an unexplained offset Δ. It is a sum rule: each ladder’s weights add up to the probability of its centre value, so Δ = ln((1 − ρ)/ρ) + ln(G(x6)/H(x6)), where ρ is Baxter’s density of occupied sites and G, H are the Rogers–Ramanujan sums. That is the log-odds of the centre being empty, plus a tiny correction. Nothing is fitted.

The offset Δ, predicted from the density and measured on strips.
activity zpredicted Δmeasured earliermeasured new
0.12.73440–2.73440
0.32.102502.1025–
0.61.81156–1.81142
11.640511.6400–
21.452401.4505–
31.358991.3588–
51.25151–1.198 to 1.293 (not converged, near the critical point)

The three new activities (0.1, 0.6 and 5) were predicted before those strips ran.

Plain words: the two ladders are two bookkeeping columns, middle site empty and middle site occupied. Their totals must equal the chances of those two cases, so the gap between them is just “how much less likely is the middle site to be occupied”. A sum rule, not a new mystery.

Open: the dense side’s sector offsets should follow from the same rule with the three sublattice densities; not done yet.

↑ Contents

INVESTIGATION 28

Zeros on a circle: Lee–Yang

24 October 2026

Lee and Yang proved in 1952 that for a ferromagnet the zeros of the partition function, as a polynomial in the magnetic activity, all lie on the unit circle. It is a statement about polynomials that physicists use to locate phase transitions. The test is how exact it is on random examples, what breaks it, and what the edge of the zero set says about the hard-core gases of Investigations 14 and 27.

Root-finding in high precision unless stated.
What is comparedResult
Zeros of 239 random ferromagnets against the unit circleall on it to 1e−12; antiferromagnets leave it at once
Hard-core gas line theorems (Heilmann–Lieb, Chudnovsky–Seymour)hold
Triangular patches, real-rootednessreal-rooted up to 6×6; I predicted it would fail
Yang–Lee edge exponent of hard hexagons from Baxter’s formula→ −1/6
Effective central charge at the edge0.40000 for hexagons (exact); 0.4007 to 0.3983 for hard squares (no exact solution)

Universality. Hard hexagons are exactly solved and hard squares are not, yet both edges give the same 2/5, the central charge of the Yang–Lee edge theory. That theory has two characters, and they are Ramanujan’s G and H. That is why the Rogers–Ramanujan counts appeared on the low-density side of Investigation 27.

Three numerical traps, recorded. Repeated roots, Sturm sequences that have to count with multiplicity, and a double root of Joyce’s polynomial.

What this does and does not show. The theorems are classical, and the edge central charge of 2/5 is known. The hard-squares value is a finite-size estimate drifting around 0.4, not an exact result.

Predictions and discoveries

Held
Ferromagnet zeros on the circle; Heilmann–Lieb and Chudnovsky–Seymour; edge exponent −1/6; ceff = 2/5 for both hexagons and squares.
Missed
I predicted triangular-lattice patches would have non-real roots; they stay real-rooted up to 6×6.
Didn’t see coming
Three numerical traps that each looked exactly like a failure.

↑ Contents

INVESTIGATION 29

The Ihara zeta of a graph and the Riemann zeta

24 October 2026

A graph has its own zeta function. Its primes are closed walks with no U-turns, and its zeros are eigenvalues of the non-backtracking walk matrix. The claim is that the analogy with Riemann’s zeta goes deep enough to have a Riemann hypothesis, a prime number theorem and a spacing law, and the test is to find where it holds and where it breaks.

The dictionary.
Riemann zetaGraph zeta Z(u)
Prime pPrime cycle (closed walk, no U-turns, not a repeat)
log pIts length
ZerosPoles: eigenvalues of the non-backtracking matrix
Riemann hypothesisThe graph is Ramanujan (for regular graphs)
q + 1 is the degree of a regular graph.
What is comparedResult
Prime-cycle counts by brute-force enumeration, traces of the non-backtracking matrix and the Ihara–Bass determinantequal to the last integer on 8 graphs, lengths up to 11
Graph Riemann hypothesis against the Ramanujan test, 580 random regular graphsnever disagree
Five LPS graphs built here (up to 12,180 vertices)all Ramanujan
Prime number theorem π(l) ~ ql/l: error growth on a graph with one bad eigenvalue×11.81 per 10 steps; predicted from that one off-line “zero”: 11.81
Fraction of random regular graphs obeying RHF1(0)² = 0.692 in the limit; random cubic graphs slide 0.86 → 0.70 from 100 to 30,000 vertices

What holds. For regular graphs the graph Riemann hypothesis is exactly the statement that the graph is Ramanujan, a perfect expander, and the two tests never disagreed. The prime number theorem holds with a square-root error term that stays bounded on Ramanujan graphs; on a graph with one eigenvalue off the line, the error grows at exactly the rate that one off-line zero predicts. About 69% of large random regular graphs obey the hypothesis, a Tracy–Widom number that comes back in Investigation 30.

Where it breaks. A graph’s zeros repel like GOE (real symmetric matrices), not GUE like Riemann’s in Investigation 19, because every walk on a graph can be run backwards. Put a random magnetic phase on every edge, so that a walk and its reverse pick up opposite phases, and the spacings become GUE. So the Riemann zeta behaves like a graph in a magnetic field. The most arithmetic Ramanujan graphs, the LPS graphs, have heavily repeated eigenvalues and near-Poisson spacing, unlike either.

Links. The genus g = E − n + 1 from Investigation 25 is the exponent in the Ihara–Bass formula. The Ramanujan bound 2√q is the largest spectral gap a large regular graph can have (Alon–Boppana), which is the spectral gap of Investigations 02 and 15 pushed as far as it goes.

What this does and does not show. All of it is known: Ihara, Hashimoto, Bass, Kotani–Sunada, Lubotzky–Phillips–Sarnak, Huang–McKenzie–Yau. Not new mathematics. The random-graph fraction is a limit; the finite sizes here are still drifting toward it.

Predictions and discoveries

Held
Three routes to prime-cycle counts; graph RH ⇔ Ramanujan on every graph; square-root error term; the Ramanujan fraction drifts toward 69%; graph zeros are GOE, and a magnetic phase makes them GUE.
Missed
I assumed the three spectral edges converge at the same speed; they don’t.
Didn’t see coming
The most “arithmetic” Ramanujan graphs (LPS) have near-Poisson spacing.

Follow-up, 1 November: why the three edges converge at different speeds. The guess was that short cycles explain it. I took 20,000 random cubic graphs with 200 vertices and 3,000 with 1,000, counted every graph’s cycles of length 3 to 6, and regressed each edge eigenvalue on those counts.

Shifts in standard deviations of the edge, 200 vertices.
one more …top edge (general)bottom edge (general)top edge (bipartite)
triangle+0.22−0.13–
4-cycle+0.19+0.19+0.19
5-cycle+0.14−0.12–
6-cycle+0.11+0.12+0.11

Held: odd cycles act in opposite directions at the two edges and even cycles act identically, the sign rule from the Ihara trace formula. Missed: I predicted cycles pull the edges inward; they push them outward. And cycles can’t explain the speed ordering: they would make the bipartite edge the fastest, the opposite of what happens.

The real cause is the graph’s “trivial” eigenvalue 3, which every regular graph has. Give every edge a random ± sign and it disappears; those signed graphs reach the limiting law fastest of all. The slowdown is strongest right next to it: the general bottom edge (far from 3) is fastest, the top edge next, and bipartite graphs, with trivial eigenvalues at both +3 and −3, slowest.

Plain words: every short loop nudges a graph’s extreme eigenvalues outward (an odd loop nudges the bottom one inward), but the slow approach comes from a big inward pull next to the eigenvalue every regular graph has.

Caveat: the trivial-eigenvalue explanation fits the ordering and the signed control but isn’t computed quantitatively yet, and only two sizes were run.

↑ Contents

INVESTIGATION 30

Shuffled cards and the edge of a random matrix

24 October 2026

Shuffle a deck of cards and find the longest run of cards in increasing order, not necessarily adjacent. Separately, take a large random complex Hermitian matrix and find its largest eigenvalue. Baik, Deift and Johansson proved in 1999 that, once centred and scaled, the two have the same distribution, the Tracy–Widom law F2. The test is to put a million-card deck next to the matrices.

Monte Carlo unless an exact computation is named.
What is comparedResult
Longest increasing subsequence of a shuffled million-card deck against F2KS 0.006
Cards against largest GUE eigenvalues, two-sampleKS 0.007; indistinguishable
Exact Poissonized distribution, two routesagree to 6e−16; converges at the predicted n−1/3 with the half-card offset
Rows 2 and 3 of the RSK shape against eigenvalues 2 and 3match after shifting row k by k − 1
Involutions; fixed-point-free involutionsGOE; GSE (skewness 0.165 against 0.1655)

Symmetry changes the class. Restrict the shuffle to involutions (permutations that are their own inverse) and the answer moves to the real-symmetric ensemble, GOE; forbid fixed points as well and it moves to GSE. The same three classes as the zeta spacings in Investigation 19.

Ties. The unexplained counts 23, 103, 513, 2761 in Investigation 23 are the permutations with longest increasing subsequence at most 3, which Gessel’s formula gives. Tie to Investigation 29: the fraction of random regular graphs that obey the graph Riemann hypothesis is F1(0)² ≈ 0.692, the same Tracy–Widom family.

Two predictions that failed, both for the same reason: forgetting that a card count is a whole number. The exact distribution only converges at the predicted n−1/3 once the half-card offset is put in.

What this does and does not show. Baik–Deift–Johansson, its extensions to lower rows and to involutions (Baik–Rains), and Gessel’s formula are known. This is a reproduction at one deck size, with the matrices sampled rather than exact.

Predictions and discoveries

Held
Tracy–Widom two ways; LIS matches the GUE top eigenvalue; involutions give GOE, fixed-point-free ones GSE; the n−1/3 variance rate.
Missed
The mean converged at the “wrong” rate, and rows 2 and 3 sat off their eigenvalues. Both were the same oversight: card counts are whole numbers (half-card and row offsets). The predicted spread ordering for fixed-point-free involutions also failed.
Didn’t see coming
Each symmetry class has its own whole-number offset.

Follow-up, 1 November: where the one-card offsets come from. The card counts only matched the matrix laws after shifting involutions by one card one way and fixed-point-free involutions by one card the other way, and those shifts were found by fitting. Exact distributions (from Rains’s formulas, as Toeplitz/Hankel determinants of Bessel functions, checked against brute-force counts and computed at up to 3,500 digits, reaching decks of about 3,700 and 2,000 cards) show both shifts are exact whole cards.

Best shift and error, from the smallest deck to the largest.
classdeck sizebest shifterror with the shifterror without
involutions, fixed size30 → 3,660+0.84 → +0.96, heading to 10.043 → 0.00530.16 → 0.079
involutions, Poisson-sized decksame−0.04 → −0.018, heading to 00.020 → 0.0037(no shift needed)
fixed-point-free40 → 2,000−1.12 → −1.06, heading to −10.043 → 0.0110.24 → 0.12

With the shift in, the error shrinks like n−1/3, the fastest possible rate; without it, only like n−1/6, a whole card left over.

Plain words: for involutions, the deck contains about √n cards that are their own partner. They make the deck bigger without lengthening the best increasing run, and that costs exactly one card. (Let the deck size float along with them and the shift vanishes.) For decks made only of pairs, the extra card comes from the matrix side: the matching law is the quaternion one, whose edge sits one Bessel order further in.

Held: the shifts are exact whole cards, and the error rates with and without them came out as predicted. Missed: my reason (“a group one size larger for one class, one smaller for the other”) was only half right; the involution card is the fixed points.

Credit: Bornemann (2023) already writes the expansions in these shifted variables. New here are the independent exact check, the controls and the fixed-point reading.

↑ Contents

INVESTIGATION 31

Knots are magnets: the Jones polynomial and the Potts model

25 October 2026

Colour a knot diagram’s regions like a chessboard and join the black regions through each crossing: that is the knot’s Tait graph. Now treat the graph as a magnet with q spin states. Thistlethwaite’s theorem and the Fortuin–Kasteleyn expansion together say the Jones polynomial at t is the Potts partition function of the Tait graph with q = 2 + t + 1/t. Knot theory and statistical mechanics, two textbooks. The test is whether the identity, and everything that hangs off it, holds on every small knot.

Five easy points. q is a whole number at exactly five values of t. They are the same five where the Jones polynomial is easy to compute (Jaeger, Vertigan and Welsh; it is #P-hard everywhere else), and at each one it becomes a classical invariant.

The five whole-number points of q = 2 + t + 1/t.
qtMagnetJones polynomial becomes
0−1spanning treesthe determinant
1e2πi/3percolationalways 1
2iIsing±1, sign = Arf invariant
3eiπ/33-state Potts√3d, where 3d+1 = number of 3-colourings
41trivial(−2)components − 1

The test set. Every knot up to 11 crossings plus 130 links: 931 diagrams, 654 of them alternating, all computed from the crossing list. A stretch run adds all 2,176 twelve-crossing knots (3,107 diagrams).

The 931 diagrams up to 11 crossings unless stated.
What is comparedResult
Kauffman bracket over all 2n smoothings, Tutte polynomial of the Tait graph, brute-force spin sums at q = 1 to 4agree on all 931; spin sums to 3e−14
Control: the unsigned Tutte formula on non-alternating diagramsmatches 0 of 277
q = 0: |V(−1)| against the determinant and the spanning trees of the Tait graphequal on all 654 alternating diagrams; tree count wrong on 277 of 277 non-alternating
q = 2: V(i) against the Arf invariant±1 for all 801 knots, sign = Arf on 801 of 801
Control: the wrong rule “det ≡ 1 mod 4”407 of 801, a coin flip
q = 3: |V(eiπ/3)|² = 3d against a brute-force count of 3-colourings, 3d+1all 931
q = 1 and q = 4pass on all
Tait’s conjecture: span of V against crossing numberequal on every alternating diagram, strictly less on every non-alternating one
Stretch run, 3,107 twelve-crossing diagramsevery prediction held, 0 failures; every control failed again

What lines up. A non-alternating knot is a magnet with some antiferromagnetic bonds, which is why the unsigned formula fails on every one of them. At q = 0 the magnet is a spanning-tree count, so the knot determinant is the matrix-tree theorem of Investigations 11 and 17 sitting inside knot theory; on non-alternating diagrams the mixed-sign bonds cancel trees in pairs and the plain count is wrong every time. At q = 2 the Ising sign is decided by the number of spanning trees mod 8: 1 or 7 gives +1, 3 or 5 gives −1. And the 3-state Potts model here is the same one whose characters appeared on the dense side of hard hexagons in Investigation 27.

Impostors. The Jones polynomial does not tell knots apart: 10132 has the Jones polynomial of 51.

Not predicted: where the twins come from. Knots that share a Jones polynomial are mostly coincidences on one line. The Jones polynomial only samples the Tait graph’s two-variable Tutte polynomial (the one checked in Investigation 17) along the curve xy = 1. Of 70 alternating twin pairs up to 11 crossings, 61 have different full Tutte polynomials, different magnets that happen to agree on that one line. The other 9 share it, and 7 of those are explained by mutation, which is a Whitney twist on the graph. At 12 crossings, 404 of 461 pairs are line-only coincidences.

What this does and does not show. Every theorem used is classical: Jones, Kauffman, Thistlethwaite, Murasugi, Lickorish–Millett, Jaeger–Vertigan–Welsh, Fortuin–Kasteleyn. What is new here is testing them together on about 3,100 diagrams with independent code, and the split of Jones twins into line-only coincidences and true Tutte twins. The Arf test is for knots only. Open: a knot-side meaning for Tutte’s golden identity at q = 4cos²(π/5), and where the line-only twins come from.

Predictions and discoveries

Held
The three-route identity on all 931 diagrams; each of the five special points gives its classical invariant; controls fail on every non-alternating diagram; Tait’s conjecture.
Missed
None.
Didn’t see coming
Most Jones twins are coincidences on one line of the Tutte polynomial, not mutants.

↑ Contents

INVESTIGATION 32

Tangled loops on a cylinder are loops on a grid: Razumov–Stroganov

26 October 2026

Put 2n points around a cylinder and pair them up with arcs that do not cross: a link pattern, one of Catalan-many. A random process keeps grabbing two neighbouring points and re-wiring them, so they join each other and their old partners join together. (This is the dense O(1) loop model, equivalently the XXZ spin chain at Δ = −1/2.) Its long-run frequency vector ψ is the ground state. Separately, take an n×n grid with 2n stubs on the boundary at every other position and draw fully packed loops (FPLs): every dot has exactly two edges. The paths pair up the stubs, which also gives a link pattern. Razumov and Stroganov conjectured in 2001, and Cantini and Sportiello proved in 2010, that once ψ is scaled so its smallest entry is 1, ψ(π) is exactly the number of FPLs that pair the stubs as π, pattern by pattern.

Three routes. (A) The top eigenvector of the loop Hamiltonian on all link patterns, checked exactly in integers. (B) Brute-force enumeration of every FPL. (C) A separate count of alternating sign matrices that never touches loops, plus the closed form ∏(3k+1)!/(n+k)! for n = 8 and 9.

Per-pattern comparison by brute force up to n = 7; totals only beyond.
nLink patternsSum ψ = #FPL = #ASMMax ψPer-pattern match
3572yes
414427yes
54242942yes
61327,436429yes
7429218,3487,436yes, all 429
81,43010,850,216218,348totals only
94,862911,835,46010,850,216totals only

Controls. Loop weight √2, loop weight 0.9, an open chain and a random vector all fail: at n = 7 they are 39%, 13%, 218% and 73,000% off. At n = 3, weight 0.9 is only 0.8% off. Small sizes cannot separate nearby models, so it is the exact integer match that makes the test sharp. Exactness is special to loop weight 1.

Why. Loop weight 1 makes the re-wiring forget how many loops it closed, so the process is a pure Markov chain on link patterns. The FPL counts satisfy the same local balance equations, with Wieland’s gyration playing the role of rotating the cylinder.

Ties. The states are Catalan objects (Investigation 23). Like Lee–Yang (Investigation 28) and hard hexagons (Investigation 27), a physics model at a special “combinatorial” parameter turns into exact integers. And alternating sign matrices are six-vertex configurations, cousins of the domino tilings of Investigation 13.

What this does and does not show. The conjecture is a theorem (Cantini–Sportiello), and the ASM enumeration (Zeilberger, Kuperberg) is classical. This is an exact reproduction up to n = 7 pattern by pattern and to n = 9 in total. Open: brute force stops at n = 7 in Python, and the open-boundary versions have their own conjectures, not tested here.

Predictions and discoveries

Held
Integer ground state; pattern-by-pattern match with loop counts; totals three ways; largest entry and rainbow positions; rotation invariance.
Missed
None.
Didn’t see coming
At n = 3 a nearby loop weight is only 0.8% off. Small cases can’t tell models apart; exact integers can.

↑ Contents

INVESTIGATION 33

Folding spheres, factoring permutations, and trees: Hurwitz numbers

27 October 2026

Three sides. Geometry: a degree-n polynomial folds the plane onto itself n times. Walk once round a critical value and the n preimages come back with exactly two swapped (the monodromy), so the folding is a branched cover of the sphere. Algebra: count the ways a permutation σ is a product of r swaps that link all n points together; Riemann–Hurwitz says the surface has genus g when r = n + (cycles of σ) − 2 + 2g. Trees: for σ an n-cycle at genus 0 (n − 1 swaps), the swaps are the edges of a labelled tree, and the count is Cayley’s nn−2. So “how many polynomials have these critical values”, “how many ways to write the n-cycle as n − 1 swaps” and “how many labelled trees” are one number.

Routes. (A) Brute force over all swap tuples (n ≤ 6). (B) Characters of Sn through the Frobenius formula, to n = 12. (C) Every labelled tree in every edge order. (D) Geometry: solve for real polynomials with prescribed critical values (homotopy continuation, and separately a Gröbner basis over Q), then track the roots numerically round each critical value.

Results (143 checks, all pass).

Why the geometry count is nn−2. Bézout allows at most nn−2 solutions, and a solution “at infinity” would be a polynomial with all critical values equal, which forces zn. So there are none, and no path can be lost (Looijenga’s argument in miniature).

Controls. Dropping the “link all points” condition overcounts (27 instead of 24 for three points: the extras are disconnected covers). Wrong-parity counts are 0. n − 1 swaps that don’t form a tree never give an n-cycle (0 in 204,840 tuples at n = 6). m! in place of (m − 1)! in Hurwitz’s formula is wrong for 37 cycle types.

A bug worth keeping. The first run “failed” because the brute-force list also accepted the inverse cycle, a lenient hedge, so it had 32 entries instead of 16. A lenient comparison can fail a true statement as easily as pass a false one.

Ties. Cayley’s count is the matrix-tree count (Investigations 11 and 17) and the trees behind the pebbling work (Investigations 23 and 24), here arriving a third way, as the degree of a map between spaces of polynomials. Character sums also drove the moonshine check (Investigation 22). The (sinh s / s)n−1 series is the one in the ELSV formula tying Hurwitz numbers to moduli spaces of curves, not tested here.

In plain words. Fold a sheet of rubber onto itself n times with the simplest creases and record which layers swap as you circle each crease. You always get a list of swaps that joins the layers like a tree, and every such list comes from exactly one folding.

Predictions and discoveries

Held
Dénes, trees, Hurwitz’s genus-0 formula, higher genus, the polynomial count nn−2, and the monodromy matching one-to-one.
Missed
Brute force was predicted to reach n = 8; it stopped at 6.
Didn’t see coming
A short Bézout argument for why no homotopy path is ever lost.

↑ Contents

INVESTIGATION 34

Codes are crystals are modular forms

28 October 2026

Three things that look unrelated. An error-correcting code: 0/1 words kept far apart so noise can’t turn one into another (Hamming 1950; Golay 1949, whose code flew on Voyager). A sphere packing: a crystal of points in n dimensions kept far apart. A modular form: a q-series with a hidden symmetry under τ → −1/τ. “Construction A” turns a code into a packing: keep every integer point whose coordinates, read mod 2, spell a codeword, then shrink by √2. Counting points at each distance gives the lattice’s theta series, and that series is a modular form. The engineer’s condition “every weight is a multiple of 4 and the code is its own dual” becomes the geometer’s “even unimodular lattice”, which forces the theta series into the ring generated by Eisenstein’s E4 and Ramanujan’s Δ. On the code side the same fact is Gleason’s theorem. Same theorem, two alphabets.

Three routes, none seeing another’s numbers. (A) Count lattice points directly. (B) List every codeword and substitute theta functions into the weight enumerator. (C) Build E4 and Δ from their formulas with no code or lattice in sight.

23 checks pass, 0 fail.
CheckResult
Hamming [8,4,4] → E8 latticeθ = E4 exactly: 1, 240, 2160, 6720, 17520, …
Golay [24,12,8] → 24-dim latticeθ = E4³ − 672Δ exactly, to 9,486,545,735,520; 48 roots
Two different length-16 codessame weight enumerator, both lattices θ = E4²
Gleason at length 24one number fixes all 25 coefficients; Golay, e8³ and d24+ all land on the line

Controls. A singly-even code gives an odd lattice with half-integer powers of q. A sub-code gives an even lattice of determinant 4 (1, 112, 1136, …). A singly-even length-24 code misses Gleason’s line. In each control routes A and B still agreed; only the modular-form claim broke, exactly where theory says it must.

One Δ from Leech. The Golay lattice is one Δ away from the Leech lattice: Leech is E4³ − 720Δ with no roots, so the two point counts differ by exactly 48 × Ramanujan’s τ(n) at every distance (48, −1152, 12096, …). That is an identity of the formulas, not an independent test, but it shows how close the engineer’s code gets to the best packing in 24 dimensions. (Leech’s theta divided by Δ is j − 720, the same j as in the moonshine investigation, 22.)

You can’t hear the shape of a 16-dimensional drum. The two length-16 codes are different but have the same weight enumerator, because Gleason leaves only one possibility. So their lattices have the same theta series, which for a flat torus R16/L is exactly the list of how many vibration modes it has at each frequency. The two tori ring at identical frequencies (1, 480, 61920, 1050240, …), yet they are different shapes: E8⊕E8’s 480 shortest vectors fall into two perpendicular clusters of 240, while D16+’s form one connected cluster. This is Milnor’s 1964 example, the first counterexample to Kac’s “can one hear the shape of a drum”, here falling out of a coding-theory coincidence.

A trap. The first run “failed” because a helper used qnorm instead of the standard qnorm/2. Routes A and B agreed throughout; only the bookkeeping against C was off by a factor of two. It looked exactly like a real failure.

Open. Build the Leech lattice itself and count its 196,560 shortest vectors directly; run all 9 doubly-even self-dual codes of length 24 and see which Niemeier lattices they reach.

Predictions and discoveries

Held
Every theta series matched E4 and Δ; Gleason fixed everything at length 24; all three controls failed where they should.
Missed
None.
Didn’t see coming
A bookkeeping slip (qnorm vs qnorm/2) that looked exactly like a real failure.

↑ Contents

INVESTIGATION 35

Primes are cycles: the anatomy of integers and of permutations

29 October 2026

Factor a random whole number into primes. Shuffle a deck and split the shuffle into cycles. Match “log x” with “n” and the pieces have the same statistics: the share taken by the largest piece, the second piece, the chance every piece is small, how many pieces. The bridge is polynomials over a finite field Fq: they factor into irreducibles the way numbers factor into primes, and as q grows their factorization pattern becomes exactly the cycle pattern of a random permutation.

Polynomials ↔ permutations (exact side, 91 pass, 0 fail).

Integers, sieved to 108. Right in direction, but honestly: 5 of my 12 prediction tolerances failed.

x = 108 against the permutation limit.
StatisticIntegersLimit (= permutations)
Largest prime’s share of log m0.644180.62433
Second prime’s share0.207300.20958
P(all prime factors ≤ √x)0.332680.30685
P(all ≤ x1/3)0.063320.04861

Every column moves steadily toward the permutation limit from 103 to 108, but I had predicted “within 0.01 by 107” and it was 0.029. Integers converge like 1/log x, which is glacial. The known second-order term (Ψ(x, √x)/x ≈ ρ(2) + (1 − γ)/log x) removes 89% of the gap, but I added it after the fact, so it is labelled post hoc. Neater: compare integers up to x with a deck of size n = log x rather than with the limit. At 108 (n ≈ 18), S18 gives 0.6414 and 0.3339; integers give 0.6442 and 0.3327. The finite deck tracks the finite integers far better than the limit does (an observation, not a theorem).

Where the constants differ. The number of prime factors grows like log log x, matching log n, but the constant isn’t γ (Mertens-type constants 1.0346 and 0.2615 instead). My 0.02 tolerance missed by about 0.005, and the correction B + (γ − 1)/log x accounts for it: the permutation constant γ still shows up in the integers’ correction term. For this purpose the integers behave like a field of size “between 2 and 3”.

Controls. Random mappings have a different largest-component law (→ 0.7578, not 0.6243). Matching n ↔ x instead of n ↔ log x predicts about 19 prime factors at 108, against the actual 3.92.

Tally. Exact side 91/0; integer side 7 pass, 5 fail, all five being my leading-order tolerances, each explained afterwards by the known 1/log x correction.

Open. A direct Erdős–Kac Gaussian comparison; the joint law of the top three pieces; a clean formula for the 1/q distance constants (1/2, 1/2, 1/4, 5/12, 5/12, 559/1440).

Predictions and discoveries

Held
The whole polynomial ↔ permutation side, exactly (91/0); every integer statistic moves toward the permutation limit.
Missed
Five of my integer tolerances, because integers converge like 1/log x. The known correction explains each one, but I added it afterwards.
Didn’t see coming
A deck of size log x tracks the integers up to x far better than the limit does.

↑ Contents

INVESTIGATION 36

Carrying digits is the same as shuffling cards

30 October 2026

Add up n random numbers in base b column by column, the way you learned in school. The carry out of each column is between 0 and n − 1 and depends only on the carry coming in, so the carries form a Markov chain (Holte 1997). Separately, riffle-shuffle a deck of n cards: cut it into b packets and drop them together (the Gilbert–Shannon–Reeds model), then count the descents in the deck. Diaconis and Fulman (2009): these are the same chain. The carry after k columns has exactly the law of the number of descents after k shuffles. A third face is the integer part of a sum of n uniform random numbers. All three settle into the Eulerian numbers, the count of permutations with j descents.

Three independent routes. Carries by brute force over every digit column (exact fractions). Shuffles by enumerating every cut-and-interleave choice and composing exactly (not the Bayer–Diaconis formula). Sums of uniforms by the Irwin–Hall integral and by Monte Carlo.

A prediction that failed, and what matched instead. I predicted the carry would match the descents of the inverse of the shuffled deck (rising sequences − 1, the quantity Bayer and Diaconis use). That failed for every n ≥ 4 (24 cases). What matches is the descents of the deck itself, read top to bottom: exact equality in all 33 cases tested (n = 3–6, b = 2–4, k = 1–3). For n ≤ 3 the two statistics have the same law, so those cases couldn’t tell them apart. Example, n = 5, one 3-shuffle: carries and deck descents are both (7, 42, 30, 2, 0)/81; descents of the inverse are (7, 52, 22, 0, 0)/81. The raw tally reads 86 pass, 58 fail, because I had set up the true statistic as the control.

52 cards: carries of 52 binary numbers = descents after k ordinary riffle shuffles.
Shuffles kDescents vs Eulerian (TV)Whole deck vs uniform (Bayer–Diaconis)
50.1490.924
60.0760.614
70.0380.334
80.0190.167

The distance halves every shuffle (the second eigenvalue, 1/2). My threshold “below 0.05 by 6 shuffles” missed: 0.076 at 6, first under 0.05 at 7. As predicted, the descent count settles well before the whole deck: at seven shuffles the descents are within 4% while the deck is still 33% off.

Controls. Biased digits give a different law and lose the clean eigenvalues. Top-to-random shuffles match no carries law. The Bayer–Diaconis rising-sequence formula reproduces the inverse-deck statistic exactly and never the carries law. So the two deck statistics really are different, and only one of them is “carrying”.

A trap. The first biased-digit control used P(0) = 1/2 in base 2, which is just a fair coin and “matched”: a bug in the control, not a finding.

Why, roughly. A b-shuffle is the same as giving each card a random digit and sorting by digit, so k shuffles give each card a random k-digit number. A descent is where comparing those numbers has to “look further”, which plays the role of the carry. (A paraphrase of Diaconis–Fulman, not a proof.)

Ties. Descents are a permutation statistic like the longest increasing subsequence of shuffled cards (Investigation 30) and the cycle counts behind “primes are cycles” (Investigation 35). The left eigenvectors should be Foulkes characters of the symmetric group, the same kind of character table that drove the moonshine check (Investigation 22).

Open. Why both composition orders agree; negative bases and type-B shuffles; confirming the Foulkes-character identification of the left eigenvectors.

Predictions and discoveries

Held
The whole carries chain matches the shuffle chain exactly; Eulerian stationary law; Holte’s eigenvalues and base-independent eigenvectors; controls.
Missed
I predicted the carry matches descents of the inverse deck; it matches the deck read top to bottom. Also “under 0.05 by six shuffles” took seven.
Didn’t see coming
Composing the shuffles on either side gives the same joint law.

↑ Contents

INVESTIGATION 37

Markov numbers: one equation, the hardest numbers to approximate, straight-line words, and simple loops

1 November 2026

The numbers 1, 2, 5, 13, 29, 34, 89, 169, 194, … show up in four places that look unrelated.

Independent routes. Every periodic continued fraction over {1, 2, 3} up to period 12 and over {1, 2} up to period 22, with its Lagrange value computed to 60 digits and no Markov theory; every loop in the free group on two letters up to length 10, judged simple or not by Whitehead’s algorithm, with no slopes; the tree; and the words.

Zagier’s growth law. The count of Markov numbers up to x is about C·log2(3x), with C = 0.180717…

Markov numbers up to x, from the tree, against Zagier’s estimate.
xMarkov numbers ≤ xOff C by
1030893+0.34%
101009,670−0.032%
1020038,512+0.008%
101000959,047−0.001%

Seen as geometry, this is “simple geodesics of length ≤ L grow like L2” (McShane–Rivin, Mirzakhani).

A trap. A float test “value < 3 − 10−9” quietly lost every Markov number above about 20,000, because √(9 − 4/m2) is within 2/(3m2) of 3. Anything near 3 now goes to 60-digit arithmetic.

Ties. The golden and silver ratios, as in the Fibonacci ladder of Investigation 12; Christoffel words are lattice paths like the Catalan families (Investigation 23); the modular group, as in moonshine (Investigation 22) and codes and lattices (Investigation 34).

Open. Which odd-period words approach 3 from above (the ratio per two steps, 34.0, matches the square of the silver ratio); whether the non-simple loops with Markov traces have a pattern.

Predictions and discoveries

Held
The four faces agree exactly (22 of 24 checks): approximation, equation, words, and simple geodesics; Zagier’s constant to 0.001% at 101000.
Missed
I guessed no self-crossing loop would have a Markov trace; 19 do up to length 10 (e.g. a−3b3 has the same length as the simple geodesic for 34), so length alone can’t tell simple from non-simple. And my McShane sum came out exactly 1/6, a third of the answer, because I miscounted: on the modular torus each Markov number labels 6 geodesics (1 and 2 label 3 each), not 2, thanks to an extra rotation of order 3. With the right count it is 1/2 to 35 digits.
Didn’t see coming
Just above 3, the best odd-period words close in about 30× per two steps, while even periods stall near 10−6.

Follow-up, 1 November: a hidden symmetry, and a third face (exceptional bundles on P²). Why 6 and not 2? At the modular torus’s most symmetric point the three basic loops all have trace 3. A brute-force search of every integer matrix that keeps “slope → trace” unchanged finds exactly 12 (6 up to sign), a hexagonal symmetry of order 6. A generic torus keeps only ±I and a lopsided one keeps 4, so the extra symmetry is special to this torus. Each Markov number’s slopes form exactly one orbit of size 6 (size 3 for 1 and 2), checked for 74 numbers. That explains the miscount in the box above. Frobenius’s uniqueness conjecture says the same thing as “one orbit per number”.

McShane in Lagrange values: each loop’s term 1/(1 + eℓ) equals (3 − L(m))/6, so McShane’s identity becomes: the gaps 3 − L(m), summed over Markov numbers, add up to exactly 3 (true to 40 digits).

A third face, algebraic geometry. On the projective plane P² the “exceptional” vector bundles (its rigid building blocks) have ranks that are exactly the Markov numbers.

Three faces in one table.
approximationhyperbolic geometrybundles on P²
objecthardest-to-approximate numbersimple closed loopexceptional bundle
the Markov number m isthe denominator in the Lagrange valuetrace ÷ 3rank
treeChristoffel wordsFarey tree of slopesdyadic tree of slopes
3 − L(m) ishow far the Lagrange value sits below 36/(1 + eℓ)width of the forbidden zone
“adds up to 1”—McShane’s identityzones tile the slope line

Missed: I guessed (c₁/3)² ≡ −1 (mod rank) for the bundles’ first Chern class; the true rule is c₁² ≡ −1 (mod rank). For example, rank 5 has c₁ = 2 or 3. Score 24 of 25.

Trap: at rank 1045 the gaps between zones are about 10−90, so 60-digit arithmetic showed a fake overlap. At 250 digits every gap is positive.

Open: does the helix shift on bundles (period 3) act as the order-3 rotation of the torus? Can the zone tiling be proved from sheaf theory directly? That would give McShane’s identity a proof from algebraic geometry.

↑ Contents

INVESTIGATION 38

A prime machine that is a division loop: Conway’s PRIMEGAME

1 November 2026

Conway’s PRIMEGAME is 14 fractions: 17/91, 78/85, 19/51, 23/38, 29/33, 77/29, 95/23, 77/19, 1/17, 11/13, 13/11, 15/14, 15/2, 55/1. Start at 2 and keep multiplying by the first fraction that gives a whole number. The powers of 2 that appear are 2², 2³, 2⁵, 2⁷, …, exactly the primes. Fitting the run gave an exact formula for how many steps the machine spends on each candidate N. Here that formula is proved from the fractions themselves.

How it works. Write the number as 2a 3b 5c 7d times at most one “label” prime (11, 13, 17, 19, 23 or 29). The labels act as the boxes of a flowchart, and a, b, c, d are four counters. c is what’s left of the candidate N and a is what has been taken off (a + c = N). d is what’s left of the current chunk of size q and b is what has been taken from it (b + d = q). The machine divides by repeated subtraction, trying q = N−1, N−2, … and stopping at the first q that divides N, which is N’s largest proper divisor D. It then holds 2N · 7D−1. If N is prime, D = 1, the 7s vanish, and a pure power of 2 shows up.

Proof by counting. With N = mq + r, a trial divisor that fails costs 6N + 2 + 2m steps, and the one that succeeds costs 4N + 2 + 2m, because it skips putting the candidate back. Moving to the next candidate costs 3N − 1. Adding these up gives the fitted formula exactly: cost(N) = 6Nk + 2k + 2·Σ⌊N/q⌋ (q from D to N−1) + N − 1, where k = N − D. The 6N is subtracting N once, refilling it and putting it back, at 2 steps per unit each. The same bookkeeping predicts how often each of the 14 fractions fires on each candidate.

Checks.
testresult
every single trial divisor against the raw machine, N = 2 to 1000 (1.34 billion steps)335,220 of 335,220 exact
all 14 fraction counts per candidate999 of 999 exact
invariants a + c = N and b + d = q at every step, up to 2113no violations
control: swap 15/14 and 15/22², 2³, then breaks at the first composite, as predicted
control: swap 11/13 and 13/11 (they never compete)step-for-step identical, as predicted
control: move 1/17 to the frontno power of 2 at all in a million steps
share of time spent on prime candidates vs 1/((1 − δ) ln p)within 4% at p = 104 and 105
sum of largest proper divisors up to x vs (δ/2)x²0.1650498 vs 0.1650490 at x = 107

Growth. The time to reach 2p grows like 2(1 − δ)p³, where δ = 0.3300980353903 is the average of 1/(smallest prime factor), computed here to 13 digits. So T(p)/p³ → 1.339803929. Since the formula is exact, it can go far past what the machine itself could run: reaching 21,000,003 takes 1,339,814,582,410,098,709 steps, about 1.3 quintillion.

The parallel. The machine has no idea it’s doing arithmetic; it only multiplies by fractions. Yet its running time is a statement about smallest prime factors. The cubic constant is the sieve constant δ. The time it spends on primes fades like 1/ln p, as the prime number theorem says. And the slow approach to the limit follows the Buchstab function, which describes how many numbers survive a sieve. A program, a counting formula and sieve theory all describe the same number.

Ties. Primes as in Investigations 19, 20, 29 and 35; a program that computes by rewriting, like the proofs-as-programs of Investigation 21.

Caveat. Richard Guy’s 1983 article on this machine may already contain the per-candidate count. I couldn’t check it from here; the proof and the per-fraction table were done independently.

Open. A real asymptotic formula for the Buchstab correction (here it is only checked band by band, and its exponent is estimated from three points).

Predictions and discoveries

Held
The step count per trial divisor, written down from the fractions before any code ran, matched the raw machine on all 335,220 trials, and all 14 per-fraction counts matched. All three controls behaved as predicted (two were corrected on paper before any code ran). The growth constant 2(1 − δ) and the share of time on primes held.
Missed
I predicted the leftover E(p) = T(p)/p³ − 2(1 − δ) stays positive, with p·E(p) between 3 and 10. It doesn’t. It is about 6 up to p = 105, crosses zero near 5×105, and is −7.6 at 5×106, so T(p)/p³ ends up approaching its limit from below.
Didn’t see coming
The reason. δ assumes the textbook density of “smallest prime factor = s”, but for s between about N1/3 and N1/2 the true density follows Buchstab’s function, which wobbles. That wobble shrinks only like a power of p, between p−1/2 and p−1/3, so it eventually beats the tidy 6/p term. The rest of the leftover grows like ln ln p, as guessed.

↑ Contents

INVESTIGATION 39

Zigzags: one sequence as permutations, sec + tan, a polytope, a transfer operator and zeta values

2 November 2026

One sequence, 1, 1, 1, 2, 5, 16, 61, 272, 1385, 7936, …, shows up in places that have no business knowing about each other.

One sequence, six faces.
facewhat is counted or measured
permutationsorderings that go up, down, up, down, … (“zigzag”)
calculusn! times the coefficients of sec x + tan x (André, 1879)
treesincreasing trees where every vertex has at most 2 children
probability and geometrythe chance that n random numbers zigzag, which is the volume of the “zigzag polytope”
operatorspowers of a “hard rod” operator, Kf(x) = ∫ from 0 to 1 − x of f
number theoryζ(n + 1) for odd n, Dirichlet’s β(n + 1) for even n

The link I wanted to see. Flip every other number (y = 1 − x) and “up, down, up, …” becomes the single rule “neighbours add up to less than 1”, like hard rods on a line that can’t overlap. That is a transfer operator, the same tool as the hard squares and hard hexagons of Investigations 14 and 27. Its eigenvalues are 2/π, −2/(3π), 2/(5π), …, the reciprocal odd numbers times 2/π. Summing their powers gives En/n! = 2(2/π)n+1 · (1 ± 1/3n+1 + 1/5n+1 ± …), which is a zeta value for odd n and a Dirichlet beta value for even n. It matches to 60 digits for n = 1 to 30.

In plain words. Each extra step of a random sequence keeps zigzagging with probability about 2/π ≈ 0.6366, and the next eigenvalue makes the correction shrink like 3−n, with a sign that flips between odd and even n. Control: moving the cut to “less than 1.1” moves the top eigenvalue to 0.699, well away from 2/π.

Type B. Arnold’s “snakes”, signed permutations with 0 < x₁ > x₂ < x₃ > …, counted by brute force up to n = 8: 1, 1, 3, 11, 57, 361, 2763, 24611, 250737. Those are exactly the Springer numbers, the coefficients of 1/(cos x − sin x).

Known. André 1879, Seidel 1877, Arnold 1992, and Stanley’s 2010 survey of alternating permutations cover all of this. It was checked here, not discovered. Score 15 of 16.

Predictions and discoveries

Held
All five faces agree exactly; the zeta/beta formula to 60 digits (I asked for 40); the 3−n correction with its alternating sign; all three controls failed where they should. The risky one, type-B snakes = Springer numbers, which I’d called 60/40 because I wasn’t sure of the convention, passed.
Missed
I predicted a 2000-point grid version of the operator would give its top eigenvalues to 1 part in 10,000. It gave 2.5 parts.
Didn’t see coming
The grid error is exactly ±1/(2N). The grid cells on the line x + y = 1 get thrown away by the strict “less than”. Give them half weight and the error drops by 4× each time the grid doubles, down to 1.6 parts per million at N = 4000.

↑ Contents

INVESTIGATION 40

Parking cars, hash tables, connected graphs and the area under a random walk

3 November 2026

One number shows up four times.

  1. Parking: n cars each prefer a spot on a one-way street of n spots and take the first free one at or after it. Count how far, in total, the cars get pushed past their preferred spots.
  2. Hashing: put n keys into a circular table of n + 1 slots, and when a slot is taken, try the next one (“linear probing”). Count the extra tries.
  3. Graphs: count connected graphs on n + 1 labelled points by how many edges they have beyond a tree.
  4. Brownian motion: the area under a random walk that starts and ends at zero and never dips below it (a “Brownian excursion”). Its distribution is described by the zeros of the Airy function.

The dictionary. Parking and hashing are the same thing: rotate the circular table so its one empty slot comes last and you get a parking arrangement, so the two costs have identical distributions. The total push is literally the area under the walk “cars waiting to get past spot k”, and since everyone parks, that walk is an excursion. And an old identity (Kreweras; Mallows and Riordan) turns the push count into a count of connected graphs.

The punchline. The k-th moment of the Brownian area counts connected graphs with k extra edges. So “how many graphs with exactly one cycle are there” (about √(π/8) · NN−1/2) and “how much does it cost on average to fill a hash table” (about √(π/8) · n3/2 extra tries) are the same constant, √(π/8) ≈ 0.6267.

Checks.
checkresult
parking arrangements counted by brute force up to 7 cars vs (n+1)n−1exact, 7 of 7
parking push vs tree inversions vs connected graphs (all 215 graphs on 6 points)identical polynomials; summing over all graphs instead of connected ones fails every time
every circular hash sequence vs parking arrangements, up to 6 keysidentical distributions
exact averages up to n = 400, extrapolated, vs the excursion’s moments √(π/8), 5/12, 15√(2π)/128, 221/1008agree to 4×10−9, 10−7, 10−6 and 5×10−6
Wright’s constants for graphs with 1 to 4 extra edgesmatch the excursion moments to 1.5×10−6
simulated hash tables (up to 16,000 keys, extrapolated) vs the Airy-zero formulawithin 0.7 standard errors at every point
control: half-full tablecost grows only like n (average 0.500 n, Knuth’s 1/2)
control: walk not required to stay above zeroaverage area 0.314 = √(π/32), not √(π/8)

Worth noticing. Small tables lie. At 1,000 keys a full table costs 0.591 · n3/2, 6% below the limit, and even at 64,000 keys the raw simulation reads 0.6205. The gap shrinks only like 1/√n; correcting for that is what makes the simulation match the Airy formula.

Ties. The same Airy function sits at the edge of random matrices (Investigation 30); counting trees as in Investigations 11, 23 and 33.

Known. Kreweras, Mallows–Riordan, Knuth (hashing), Wright (graph counts), Flajolet–Poblete–Viola and Janson (the Airy connection). Checked here, not discovered. Score 41 of 41.

Open. Compare the full Airy density with a histogram (only its Laplace transform was checked); a table just under full (n keys, n + √n slots) should sit between the two regimes.

Predictions and discoveries

Held
All six predictions, and both controls failed where they should: brute-force counts, the three-way identity, hashing = parking exactly, the four excursion moments, Wright’s constants, and the Airy-zero formula against simulated hash tables.
Missed
Nothing.
Didn’t see coming
How slowly the simulation gets there. At 1,000 keys it’s 6% off the limit, and the Airy formula only matches after extrapolating in 1/√n. Graphs with exactly one cycle need no extrapolation at all; their count already agrees to 10 digits at n = 400.

↑ Contents

INVESTIGATION 41

One polynomial, four jobs: subspaces, partitions in a box, matrix cells, and rotations of a polygon

4 November 2026

One polynomial, the Gaussian binomial [n, k]q (the q-version of “n choose k”), does four different jobs depending on what you put in for q.

  1. Linear algebra: put q = the size of a finite field (2, 3, 4, 5, …) and it counts the k-dimensional subspaces of an n-dimensional space over that field.
  2. Counting: as a polynomial, its coefficient of qj counts the partitions of j that fit in a k × (n − k) box, which is the same as strings of k ones and n − k zeros with j out-of-order pairs.
  3. Matrices: every invertible matrix over the field sits in exactly one “Bruhat cell”, labelled by a permutation, and the cell’s size is a fixed amount times q(number of out-of-order pairs). This is the bridge: a subspace is chosen by a pattern of pivots plus free entries, and the free entries number exactly the out-of-order pairs.
  4. Symmetry: put q = a root of unity, e2πi·d/n, and the same polynomial counts the k-corner subsets of an n-gon that are unchanged when you rotate it by d steps (“cyclic sieving”). The q-Catalan number does the same for triangulations of a polygon.

At q = 1 every face collapses to the ordinary count, the old joke that a set is a vector space over “the field with one element”.

Checks.
checkresult
distinct subspaces counted by brute force over fields of size 2, 3, 4, 5all equal [n, k]q
control: the same count in Z/4 (4 elements, but not a field)fails, as it should: 6 “lines” instead of 5
partitions in a box and out-of-order pairs vs the polynomial, n ≤ 14identical
every matrix of GL₄(F₂) (20,160) and GL₃(F₃) (11,232), Bruhat cell found two independent waysagree on every matrix; cell sizes exactly as predicted
2 million random 0/1 matrices for each size 1 to 12invertible fraction matches ∏(1 − 2−i) → 0.288788
rotation-fixed subsets vs the polynomial at a root of unity, every n ≤ 14 (1,120 cases)all exact integers, all equal
control: the wrong root of unity819 of 1,120 mismatch
every triangulation of polygons up to 12 corners (16,796 at the top) fixed by rotation vs MacMahon’s q-Catalanall equal
control: the other q-Catalan (Carlitz’s, by area), which also gives the Catalan numbers at q = 1fails at the first chance: for a square it gives 1 + i where the true count is 0
q = −1 vs subsets fixed by a flip of the lineequal

Worth noticing. Only the right q-analogue works. Two q-Catalan polynomials agree at q = 1, but only one of them counts symmetric triangulations; the other gives a number that isn’t even real. So cyclic sieving is a genuine constraint, not something any polynomial with the right total would pass.

Also. A random invertible matrix over a finite field sits close to the “biggest” Bruhat cell. Over F₂ with n = 10, its permutation has on average 37.73 out-of-order pairs out of a possible 45 (a random permutation would have 22.5). The gap is a sum of independent pieces and grows like n/(q − 1).

Ties. Catalan numbers and triangulations as in Investigation 23; symmetry counting as in moonshine (Investigation 22) and codes (Investigation 34).

Known. Gauss; MacMahon; the Bruhat decomposition; cyclic sieving is Reiner, Stanton and White (2004), and the q = −1 case is Stembridge’s. Checked here, not discovered. Score 36 of 37.

Open. Cyclic sieving for other families (noncrossing partitions, plane partitions under rotation), and Stembridge’s q = −1 for plane partitions.

Predictions and discoveries

Held
Every exact check: subspaces, boxes, Bruhat cells, the invertible fraction, rotation-fixed subsets, triangulations, and the flip at q = −1 (which I’d flagged as my least sure). The Carlitz control failed as predicted, and sooner than I guessed (at the square, not a pentagon or hexagon).
Missed
One pre-registered “within 2 standard errors” test (the average for q = 3, n = 7 came out at −2.19). Five fresh runs with 11 million more matrices gave +0.26, so it was chance, and with four such tests a miss somewhere had about a 17% chance anyway. It stays recorded as a miss.
Didn’t see coming
How close a random matrix sits to the biggest cell, and how cleanly the wrong q-Catalan fails, with a non-real value rather than a wrong whole number.

↑ Contents

INVESTIGATION 42

You can’t hear the shape of a drum, a graph, or a number field

5 November 2026

In 1966 Mark Kac asked whether you could hear the shape of a drum: do its frequencies pin down its outline? In 1992 Gordon, Webb and Wolpert showed you can’t, using a trick of Sunada’s. The same trick makes pairs of different networks with exactly the same spectrum, and pairs of different number systems (number fields) with exactly the same zeta function, so the same primes split in the same ways. All three come from one fact about the 168 symmetries of the Fano plane, the smallest geometry with seven points and seven lines. The symmetries that fix a point and the symmetries that fix a line are different groups, but they “look the same” from every angle the whole group can measure: each kind of symmetry occurs equally often in both. Build anything out of the points, build the same thing out of the lines, and every sound it makes agrees.

AAAWgmp1bWIAAAAeanVtZGMycGEAEQAQgAAAqgA4m3EDYzJwYQAAABZcanVtYgAAAEdqdW1kYzJtYQARABCAAACqADibcQN1cm46YzJwYTpmYjUzZTQ3OC05M2JmLTRkYWYtYmQyMC05MjFhYjdlOTg3YTAAAAADl2p1bWIAAAApanVtZGMyYXMAEQAQgAAAqgA4m3EDYzJwYS5hc3NlcnRpb25zAAAAALxqdW1iAAAARGp1bWRjYm9yABEAEIAAAKoAOJtxE2MycGEuaW5ncmVkaWVudC52MwAAAAAYYzJzaKsEQBe7IywHBA1O10lF+dEAAABwY2JvcqNpZGM6Zm9ybWF0bWltYWdlL3N2Zyt4bWxqaW5zdGFuY2VJRHgseG1wOmlpZDo4YTczODg3Yy0xZTZkLTRmZTMtOThkMC1jMWVhOGIwOTlhYjlscmVsYXRpb25zaGlwaHBhcmVudE9mAAAB4mp1bWIAAABBanVtZGNib3IAEQAQgAAAqgA4m3ETYzJwYS5hY3Rpb25zLnYyAAAAABhjMnNo1eNRIwqc7sffvyHGHxY0EAAAAZljYm9yomdhY3Rpb25zgqJmYWN0aW9ua2MycGEub3BlbmVkanBhcmFtZXRlcnOha2luZ3JlZGllbnRzgaJjdXJseC1zZWxmI2p1bWJmPWMycGEuYXNzZXJ0aW9ucy9jMnBhLmluZ3JlZGllbnQudjNkaGFzaFgg6EL0HyHFmdstZQm40SZICB/deMvAUqEYppeRNLo63lakZmFjdGlvbngdY29tLmFudGhyb3BpYy5jbGF1ZGUucHJvdmlkZWRqcGFyYW1ldGVyc6F4H2NvbS5hbnRocm9waWMub3JpZ2luLWNvbmZpZGVuY2VndW5rbm93bmtkZXNjcmlwdGlvbnhmQ2xhdWRlIHByb3Z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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPZYQC8Y+rGJPd3ijC9y47YezMLh/LJbF0ZYhA4RBll8L40vQI3NhF0E9q7svWyw7T7UrOys9Ej8CIRjvbsY/obQlNQ=
Two drums made of seven half-squares. Different shapes, the same notes, to 14 decimal places.
Checks.
checkresult
all 168 Fano symmetries: point-fixers vs line-fixersboth 24 elements, same count in every class, not the same subgroup
200 networks glued from 7 copies of a random base along the points vs the linesidentical spectrum and identical Ihara zeta (same number of loops of every length) in 200/200
control: glue by random shuffles insteaddifferent spectrum every time the gluing does anything (94/94)
control: ordinary look-alike networks (Godsil–McKay switching)same spectrum, but different loop counts 6/6
every way to glue 7 right-angled triangles by Fano symmetries (2,352 gluings), grid up to 825 pointssame notes to 3×10⁻¹⁴, fixed edges (Dirichlet) and free edges (Neumann)
Q(31/8) vs Q(481/8): how each prime below a million splitsidentical for all 78,496 primes; not the same field
x⁷ − 7x + 3 vs x⁷ + 14x⁴ − 42x² − 21x + 9 (the Fano group itself)identical for all 78,496 primes; not the same field
control: another Fano-group septicdiffers at 694 of 1,221 primes, first at 29
class numbers of the octic twins Q(a1/8), Q((16a)1/8), 18 values of aequal in 17; a = −15 gives 16 vs 8 (proved, not just assuming GRH)

What you can’t hear. The two drums have the same lowest note, but their loudest point is at different heights (0.0864 vs 0.0787). The two number fields with a = −15 have the same zeta function but different class numbers, 16 and 8: one hears every prime the same way and still can’t tell how badly unique factorization fails.

Also. The search over every Fano gluing of seven right-angled triangles finds exactly one honest pair of different flat drums, up to rotation and reflection: the textbook pair in the figure. And the discrete version is exact only if the free edges are treated as mirrors. The plain grid Laplacian broke the match for free edges in 1,344 of 2,352 gluings; giving edge points half the weight of interior points fixed all of them. A search of every group with up to 48 elements finds that the smallest group able to play this trick has 32 elements, and there is exactly one of that size. It is the symmetry group of the equation x⁸ = 3, the one behind the first pair of number fields.

Ties. The Ihara zeta of Investigation 29 and the primes-are-cycles dictionary of 35; the Fano plane’s group is the same 168 that sits inside the codes of 34.

Known. Kac (1966); Sunada (1985); Gordon, Webb and Wolpert (1992); Buser, Conway, Doyle and Semmler (1994) for half-square drums; Perlis (1977) and de Smit and Perlis (1994) for number fields. Checked here, not discovered.

Open. Why only one drum pair comes out of this family, and whether bigger tiles (or other Fano-like groups) give drums that are still different with more loops.

Toy: Two drums that sound the same →Your browser works out every note of both drums and plays them. Tap a drum to hit it: same pitches, different mix.

Predictions and discoveries

Held
The Fano subgroups match, the intertwining matrix works, every Sunada pair has the same spectrum and loop counts, the drums match with both edge conditions, both number-field pairs match at every prime below a million, and a = −15 gives different class numbers (my guess for which a). The smallest group with the trick has 32 elements, as I guessed at 70%.
Missed
I predicted that over 90% of the glued network pairs would be genuinely different. Only 39% were. Most of the rest have too few loops in the base for the gluing to matter: with a tree base you just get seven separate copies, and with only two loops, 15 of 18 pairs turned out to be the same network in disguise. With five or more loops it was 47 of 48 different.
Didn’t see coming
That only one drum pair exists in this family, and that the naive grid breaks it for free edges.

↑ Contents

INVESTIGATION 43

Bernoulli numbers: sums of powers, the zeta function, and which primes break unique factorisation

5 November 2026

One sequence of fractions, the Bernoulli numbers (1, −1/2, 1/6, 0, −1/30, …, −691/2730, …), turns up in five places that look unrelated.

  1. Sums of powers: 0k + 1k + … + (N − 1)k is a polynomial in N, and its coefficients are Bernoulli numbers (Jakob Bernoulli, 1713).
  2. Zeta at even numbers: 1 + 1/22k + 1/32k + … is a Bernoulli number times π2k (Euler). So ζ(2) = π²/6.
  3. Zeta at negative numbers: ζ(−k) = −B(k+1)/(k+1), the famous “1 + 2 + 3 + … = −1/12”. Here it stops being a trick: the sum-of-powers polynomial 0 + 1 + … + (x − 1) = x(x − 1)/2 has average value exactly −1/12 between 0 and 1, and the same is true for every power k.
  4. Primes as a ruler: measure the size of a number by how often p divides it, and B(k)/k (with one small correction) changes smoothly as k changes (Kummer’s congruences). That smooth function is the p-adic zeta function.
  5. Unique factorisation: in the numbers built from a p-th root of 1, factoring into primes can fail. Kummer showed it fails in the way that blocks his proof of Fermat’s Last Theorem exactly when p divides the top of one of B(2), B(4), …, B(p − 3). Such primes are called irregular: 37, 59, 67, 101, …

And a side door: 691 is on top of B(12), and that is why Ramanujan’s tau numbers satisfy τ(n) ≡ σ₁₁(n) mod 691.

Checks.
checkresult
sum-of-powers polynomial, every power up to 30, N up to 200, exact fractionsholds
Euler’s ζ(2k) formula against a product over primes below 200,000, k = 2 to 25agrees to 17 digits at ζ(4) (the limit of the product) and better above
ζ(−k) = average of the sum-of-powers polynomial on [0, 1], every k ≤ 30, exactholds; the window [1, 2] fails (control)
von Staudt–Clausen: B(2k) plus 1/p for every prime p with p − 1 dividing 2k is a whole number, k ≤ 300every k; leaving out p = 2 fails every k (control)
Kummer’s congruences, p = 3 to 13, all even m, n ≤ 200, up to divisibility by p⁴3,738 tested, none fail
irregular primes below 20,000 by a fast program, cross-checked against exact fractions below 600no mismatches; list starts 37, 59, 67, 101, 103, 131, 149, 157
class numbers of the p-th root-of-1 fields for every prime p below 500, computed only from sums of roots of 1 (no Bernoulli numbers), at 700 digitsalways a whole number (to 557 decimal places): 3 at p = 23, 37 at 37, 41,241 at 59, a 138-digit number at 491
Kummer’s test: p divides that class number exactly when p is irregular, and the power of p equals the number of Bernoulli numbers p dividesholds for all 94 primes, up to 491³
Bernoulli numbers from zigzag permutation counts (Investigation 39), n ≤ 40holds
τ(n) ≡ σ₁₁(n) mod 691, n ≤ 2000holds; mod 593 it fails 1,992 times out of 2,000 (control)

Worth noticing. Two completely different calculations find the same primes. One divides Bernoulli numbers by p. The other multiplies together hundreds of sums of complex roots of 1 and gets a huge whole number. The power of p in the huge number is exactly how many Bernoulli numbers p divides: once for 37, twice for 157, three times for 491.

Also. Siegel guessed that each Bernoulli number is divisible by p “by chance” with odds 1 in p. Then the number of hits per prime should follow a Poisson law with mean 1/2, and about 39% of primes should be irregular. Below 20,000 (2,261 primes) it’s 39.8%, and the counts of 0, 1, 2, 3, 4 hits (60.2%, 30.2%, 8.2%, 1.4%, 0.09%) sit right on 60.7%, 30.3%, 7.6%, 1.3%, 0.16%. The first prime with four hits is 12,613.

Ties. Zeta values as in Investigations 19 (zeta zeros) and 39 (zigzags); class numbers next to knots and primes (20); modular forms as in moonshine (22) and codes (34).

Known. Bernoulli, Euler, von Staudt and Clausen, Kummer (1850), Kubota–Leopoldt, Siegel’s heuristic. Checked here, not discovered. Score 9 of 9 on the mathematics, with two design misses.

Open. Vandiver’s conjecture (p never divides the class number of the real half of the field), and Herbrand–Ribet (which piece of the class group each Bernoulli hit belongs to).

Predictions and discoveries

Held
Every mathematical prediction, including the one I was least sure the computer would reach: the exact power of p in the class number, all the way to 491³. The irregular fraction below 4,000 was 0.397, inside my 0.36–0.42 band, and 157 and 491 were the first primes with two and three hits, as predicted.
Missed
Two design slips. The control for Kummer’s congruences (drop the correction factor) was supposed to fail and almost never did: only 15 times in 408, all at k = 2, because for bigger k the correction is already too small to see. And I promised 25 digits for ζ(4) and got 17, because my product over primes stopped at 200,000.
Didn’t see coming
How cleanly the “1 + 2 + 3 + … = −1/12” story becomes an ordinary average of a polynomial, and that there’s no prime with four hits below 10,000 (a 14% chance) before 12,613 turns up.

↑ Contents

INVESTIGATION 44

One polynomial, nine questions: the Tutte polynomial behind colourings, flows, magnets and the sandpile

5 November 2026

Take any network and ask nine questions that seem unrelated. How many ways to colour the nodes with k colours so neighbours differ? How many ways can a current circulate with a non-zero value mod k on every wire? If each wire survives with probability p, what is the chance the network stays in one piece? What is the energy sum of a q-state magnet on it (Investigation 31)? How many ways to point every wire with no loop? How many forests? And: drop sand on the nodes, let it topple into a sink, and count the stable piles that keep coming back, sorted by how much sand they hold (the sandpile of Investigation 11).

Tutte (1954) showed there is one polynomial in two variables, T(x, y), and every answer is that polynomial at some point. Colourings sit on the line y = 0, flows on x = 0, reliability and the sandpile on x = 1, the magnet on the curve (x − 1)(y − 1) = q, orientations at (2, 0) and (0, 2). Drawing the dual map just swaps x and y.

Checks.
checkresult
three ways to build T: deletion–contraction, a sum over all edge subsets, Tutte’s own spanning-tree activities (3 random edge orders)identical on every one of 1,146 graphs (all connected graphs up to 7 nodes, plus 150 multigraphs)
colourings counted by brute force, k = 0 to 6match T(1−k, 0) on all 1,146; dropping the kc factor fails on all (control)
nowhere-zero flows mod k, k = 2 to 54,415 of 4,415 match T(0, 1−k); flows in Z₄ and in Z₂×Z₂ always equal
magnet spin sums, q = 1 to 4, five couplings including antiferromagnets, exact fractions17,900 of 17,900
chance of staying connected: exact sums, and 200,000 random trials on the Petersen graph and the 4×4 gridexact sums all match; trials within 1.3 standard errors
orientations with no loop, with one source, strongly connected; forests; connected pieces (all 2E tried)1,000 graphs, no mismatches
sandpile levels with EVERY possible sink6,324 graph–sink pairs, always T(1, y); counting all stable piles instead fails on 954 of 989 (control)
“superstable” piles (a different test entirely) by reversed levelsame answer on all 989
sand on the dual map counts forests of the original2×2 to 3×4 grids: 15, 112, 3,102, 6,240, 85,818 both ways
Merino–Welsh: loop-free or strongly connected orientations at least as many as spanning trees890 bridgeless graphs, no violation; tightest K₄ (24 vs 16)

Worth noticing. Which node is the sink changes which sandpiles are stable, but never how many there are at each level. The level counts belong to the network, not to the sink, because they are a slice of the Tutte polynomial.

The discovery. Differentiating the polynomial shows that the average sand level counts “a spanning tree plus one extra edge”, and each such shape is counted once per edge of its loop. So: average level = the average, over random spanning trees, of the sum of 1/(loop length) over the edges left out of the tree. That needs no sand at all, only random trees, which Wilson’s algorithm makes quickly. On square grids up to 256 × 256 the average level per loop of the grid falls 0.136, 0.132, 0.131, 0.129, 0.128, 0.127 and extrapolates to 0.12501 ± 0.0001. Priezzhev’s 1994 theorem says the average sandpile height on the infinite square grid is 17/8, which is exactly 1/8 of a grain above the minimum. Tree loops recover a sand constant to four digits.

Ties. Spanning trees (11, 17), the Potts magnet at knot values (31), chip-firing and Riemann–Roch on graphs (25, 26).

Known. Tutte, Stanley, Greene–Zaslavsky, Fortuin–Kasteleyn, Merino, Priezzhev. Checked here, not discovered, except the 1/loop-length shortcut, which I haven’t seen written down (it’s two lines from known facts). Score 9 of 10.

Open. Is the average level per loop at most 1/3 for every simple network (the triangle is the worst found)? And the same trick on the honeycomb and triangular grids.

Predictions and discoveries

Held
Every identity, on every graph, with no mismatches anywhere; the sink never mattered; Merino–Welsh held on all 890 graphs.
Missed
I guessed the average sand level per loop would sit between 0.3 and 0.7 and head to about 0.5 on grids. It sits between 1/7 and 1/3 on small graphs and heads to 1/8 on grids.
Didn’t see coming
That the miss would lead straight to Priezzhev’s 17/8, measured with spanning trees instead of sand; and that flows in Z₄ and Z₂×Z₂ always come out equal.

↑ Contents

INVESTIGATION 45

Continued fractions are geodesics: the digits of a number, loops on the modular surface, and class numbers

5 November 2026

Write a number as a continued fraction, x = 1/(a₁ + 1/(a₂ + …)), and the digits a₁, a₂, … look random for a typical x. They follow a fixed law, though: the digit 1 turns up 41.5% of the time, 2 turns up 17.0%, and in general k turns up log₂(1 + 1/(k(k+2))) of the time (Gauss–Kuzmin). The same digits have three other jobs.

  1. Geometry: the modular surface is the hyperbolic plane folded up by the modular group. A geodesic on it, cut at one line, comes back by exactly the rule that reads off the next digit (Artin, Series). A closed loop is a repeating word Ra₁ La₂ Ra₃ … in two 2×2 matrices, and its length is 2·arccosh(trace/2).
  2. Number theory: the same loops are Gauss’s classes of quadratic forms ax² + bxy + cy². The number of loops with a given trace t is a sum of class numbers of real quadratic fields, and Dirichlet’s formula links those class numbers to an L-function.
  3. Chaos: the digits’ “Lévy constant” (the denominators of the approximations grow like e1.18657·n) equals half the entropy of the digit map, and dividing by the loop lengths gives the entropy of the geodesic flow, which is exactly 1. That 1 is also why the number of closed loops of length up to ℓ grows like eℓ/ℓ, the prime number theorem for geodesics.
Checks.
checkresult
digits of 20,000 random 400-digit numbers (6 million digits) vs Gauss–Kuzminfits (χ² p = 0.012); Lévy and Khinchin constants within 2 standard errors
how fast a random start settles to that law, by simulation (4×10⁸ starts) and by the operator’s eigenvalueerror shrinks by −0.29, −0.31, −0.29, −0.27 per step; eigenvalue −0.3036630029 (Wirsing’s constant, 10 digits)
loops of each trace t ≤ 400 counted as words vs as class numbers (14,779 loops)equal for every t; primitive loops too
Dirichlet’s class number formula, every discriminant up to 5000 including the non-maximal ordersexact to 2×10⁻¹⁴
control: the formula with the wrong characterfails 656 of 914 times (the other 258 are cases where the correction factor happens to be 1, including 8 where (1 + 1/2)(1 − 1/3) = 1)
prime geodesic theorem, 602,498 loops up to eℓ = 9 millioncount / Li(x) = 0.9995; weighted count within √x of x
digits read off all 436,799 long loops vs Gauss–Kuzminwithin 0.00007 for every digit up to 7
digits per unit length along loops vs 1/entropy = 0.421380.42176; entropy of the flow 1.0008
heights of loops, by digits (Perron) and by reduced formssame for every t ≤ 400

The Markov numbers come back. Among all 602,498 closed loops, exactly 15 stay below height 3/2, and their traces are 3m for every Markov number m up to 985, with nothing else. Everything else reaches at least 1.50197. That gap is the Markov spectrum from Investigation 37, now seen as the lowest loops on the surface.

Also. For each Markov number from 5 on there are exactly two such low loops. I guessed they were one loop run forwards and backwards. They aren’t: each Markov loop is its own reverse, and the two are mirror images (swap R and L). For m = 1 and 2 the loop is its own mirror image, so there is only one. The symmetry that made the modular torus hexagonal in Investigation 37’s follow-up folds away, and only the mirror survives.

Ties. Markov numbers (37), Ihara zeta and graph prime number theorems (29), primes as cycles (35), zeta zeros and random matrices (19).

Known. Gauss, Dirichlet, Gauss–Kuzmin, Lévy, Khinchin, Wirsing, Artin and Series’s coding, Huber and Selberg’s prime geodesic theorem. Checked here, not discovered. Score 18 of 19.

Open. The Lévy variance (measured σ² ≈ 0.857); why digits per length settle faster than 1/ℓ; Sarnak’s sum of class numbers by discriminant.

Predictions and discoveries

Held
Every exact count (words = class numbers, primitive split, Dirichlet’s formula including orders, heights two ways), Gauss–Kuzmin for random numbers and for loops, Lévy and Khinchin, Wirsing’s ratio (the last step only just inside ±0.03), the prime geodesic count within 1%, entropy 1 from digits and lengths, and the Markov loops as the only ones below height 3/2.
Missed
I predicted the slope of log(count) against log(x) would be 1.00. It is 0.926, as it has to be, since the count is x/log x and I forgot the log. With the log put back the slope is 0.995, and the weighted count gives 1.0007.
Didn’t see coming
The low Markov loops come as mirror pairs, not as forward and backward copies; and the 8 discriminants where (1 + 1/2)(1 − 1/3) = 1 lets the wrong formula sneak through.

↑ Contents

INVESTIGATION 46

A magnet that is secretly a tiling: the Ising model, dimers and Pfaffians

5 November 2026

The Ising model is the simplest magnet: a square grid of arrows, each pointing up or down, that like to agree with their neighbours. Its partition function (the weighted count of all arrangements) is the thing physicists want. In 1944 Onsager solved it exactly in two dimensions. The reason that was possible at all is that the magnet is three other things in disguise.

  1. Loops: expanding the weights, the sum over arrows becomes a sum over closed loop drawings on the grid (every corner touched an even number of times), each loop edge weighted by tanh K.
  2. Tilings: replace every grid point by a little “city” of six points (two triangles joined by a bridge), and each loop drawing becomes exactly one perfect matching (dimer covering) of the new graph. An edge is in the loop drawing exactly when its connecting dimer is missing.
  3. Determinants: by Kasteleyn’s trick, the same one used for domino tilings in Investigation 13, the number of matchings is a Pfaffian (the square root of a determinant) once the edges are given arrows with an odd number pointing along every face.
  4. Particles: on a doughnut-shaped (periodic) grid one Pfaffian is not enough. You need four, one for each way of wrapping a fermion around the two holes, and the answer is half their sum with exactly one minus sign. Worked out, these four Pfaffians are exactly Kaufman’s four products from 1949.
Checks.
checkresult
arrows vs loop drawings, brute force, 9 grids and doughnuts up to 20 spinsequal (exact in rationals on the doughnuts)
loop drawings vs perfect matchings of the six-point cities, counted one by oneequal in all 15 cases; 512 matchings on the 4 × 4 grid = 512 loop drawings
Pfaffian vs the matching count, exact integersequal on every grid up to 4 × 4 and to 12 digits on 5 × 5
control: flip one arrow in the Kasteleyn orientationbreaks it 47 times out of 53 (the other 6 edges are in every matching or none)
doughnuts 3 × 3 to 3 × 5: the four Pfaffiansexactly one sign pattern works, always with one minus sign; no single Pfaffian is right
Kaufman’s formula vs brute force, and vs the four Pfaffians term by termequal to 15 digits
free energy, 64 × 64 doughnut vs Onsager’s integralequal to 20 digits once the two ordered states (a ln 2 / N term) are counted
Monte Carlo (Wolff clusters), energy at three temperatureswithin 1.7 standard errors of exact
Monte Carlo, magnetisation at K = 0.50.91134 vs Yang’s 0.91132
Monte Carlo, Binder curves for sizes 8 to 64cross at 0.44059, the exact critical point is 0.44069

Worth noticing. At the critical point the free energy per site is ln √2 + 2G/π, where G is Catalan’s constant. And G/π is exactly the entropy per square of domino tilings from Investigation 13. The critical magnet carries the domino count twice, plus half a bit per spin.

Also. On a square doughnut right at the critical point, the leftover after the bulk term goes to ln(21/4 + 2−1/2) = 0.63991, the number conformal field theory predicts for a “central charge 1/2” theory. Each of the four fermion sectors gives its own theta function: two give 21/4 each, one gives √2, and the fourth is exactly zero, because its zero mode vanishes precisely at the critical point. The specific heat peak grows like 0.4945 · ln L, Onsager’s logarithm.

Ties. Domino tilings and Kasteleyn (13), hard squares (14), Jones/Potts (31), the Tutte polynomial (44).

Known. Onsager (1944), Kaufman (1949), Yang (1952), Kac–Ward, Kasteleyn and Fisher (1952–66), and the c = 1/2 torus formula. Checked here from scratch, not discovered.

Open. What the peak shift −0.159/L is in closed form.

Toy: A magnet at its tipping point →Slide the temperature through 2.269 and compare the sheet with Onsager’s exact formula.

Predictions and discoveries

Held
Every exact identity (loops, matchings, Pfaffians, the four sectors with one minus sign), Onsager’s integral above the critical point, Catalan’s constant at it, the conformal constant to 3 × 10⁻¹⁰, the 0.4945 ln L specific heat, and every Monte Carlo energy and magnetisation.
Missed
Three tolerances I wrote too tightly or tested badly. Two float sums came out at 5 × 10⁻¹² instead of 10⁻¹² (exact rational reruns agree perfectly). Below the critical point the free energy differed from Onsager by exactly ln 2 / N, the two ordered states I forgot. And my straight-line fit through the Binder curves put two crossings 0.6–0.8% off; the curves bend, and reading the crossing where they actually cross gives 0.02%. All three stay recorded as misses.
Didn’t see coming
That the four fermion sectors are the four theta functions term by term, with the zero one vanishing exactly at the critical point, and the tidy closed form 21/4 + 2−1/2.

↑ Contents

INVESTIGATION 47

Look-and-say in other bases

5 November 2026

Read 1 aloud as “one 1” and write 11, then “two 1s”, 21, and so on. Conway showed the length grows by 1.3035772690…, a root of a degree-71 polynomial, and every term breaks into 92 “elements”. Here the counts are said in another base instead.

Ties. Base 2 grows by the supergolden ratio, the root of x³ = x² + 1 (Narayana’s cows), with 10 elements, and the lengths obey L(n) = L(n−1) + L(n−3) + [n odd] exactly through day 45. Base 3 grows by the plastic number, the root of x³ = x + 1, with 21 elements, 8 of which carry all the weight. Bases 4 and up are Conway’s 92 exactly, because after day 1 no run is longer than 3. Golden-ratio cousins of the Fibonacci investigation (12).

Known. Binary look-and-say was written up by Nathaniel Johnston (2010), so base 2 is a rediscovery. Conway’s cosmological theorem says every string except 22 has fully decayed by day 24.

Open. The longest decay I could find in base 10 was 20 days (all strings of 1–4 up to length 7, long runs, and 300 random hill-climbs). Which string, if any, needs the full 24?

Toy: Look-and-say in any base →Run the sequence in base 2, 3 or 10 and watch the growth rate close in on its constant.

Predictions and discoveries

Held
Binary growth between 1.40 and 1.50 (it is 1.4656); binary table between 5 and 20 elements (10); bases 4 and up identical to Conway; polynomial degree well below table size.
Missed
Base-3 table of 30 to 120 elements (it has 21); short strings decaying within about 15 days (many need 18 to 20, since any digit 4 or higher takes 18 days alone).
Didn’t see coming
In base 3 a second root of size 1.2365 makes the growth ratio flip back and forth for a long time; and forgetting the digit 0 (a run of ten says “10”) made my decay check run forever.

↑ Contents

INVESTIGATION 48

A drunk walker is an electric circuit

5 November 2026

Build a network out of 1-ohm resistors, connect a battery between two points a and b, and measure. Separately, put a walker on the same network who steps to a random neighbour each second. The two experiments give the same numbers, in four ways.

  1. Voltage is a probability: with a at 1 volt and b grounded, the voltage at any point x is the chance that a walker starting at x reaches a before b.
  2. Current is traffic: the current along a wire is the average number of times the walker crosses it one way minus the other way, on a trip from a to b.
  3. Resistance is how hard it is to get away: the chance that a walker leaving a reaches b before coming home is exactly 1 divided by (number of wires at a × the resistance between a and b).
  4. In the smooth limit the walker becomes Brownian motion, and Kakutani’s theorem (1944) says: to find the steady temperature inside a plate whose edge is held at given temperatures, release a random walker at the point and average the edge temperature where it first hits.
Checks.
checkresult
escape chance vs 1/(wires × resistance), 72 pairs on 24 networksequal to 8 × 10⁻¹⁶
voltage vs hitting chance, every pointequal to 4 × 10⁻¹⁵
current vs net crossings, 200,000 simulated walks on a 4 × 4 gridall 24 wires within 1.5 standard errors
temperature in a square plate (top edge hot): random “walk-on-circles” with no grid at all, three pointswithin 2 standard errors of the exact series (1/4 exactly at the centre)
control: a walker with a clockwise bias on a ringbreaks the dictionary (off by 0.30); it only works for walks that look the same run backwards
where a walker from far away lands on a straight wall of 1,025 pointsthe arcsine law to 0.1%, and the end point gets a share falling like 1/√length (fitted exponent −0.499)

The real payoff is Pólya’s theorem: a random walker on a 1- or 2-dimensional grid comes home with certainty, but in 3 dimensions it has a 66% chance of wandering off forever. In circuit language this is a question about one number, the resistance from the origin out to infinity. In a strip it grows in a straight line (slope 1/(2 × width), checked exactly). On the flat grid it still grows, but only like ln(n)/(2π): slope 0.159155, measured to 6 digits on boxes up to 1,025 × 1,025. In 3D it stops growing: boxes up to 129³ extrapolate to 0.252731, which gives a return chance of 0.340537, matching Watson’s 1939 integral to 6 digits. A simulated walker with no electricity in sight comes back 34.1% of the time (expected 34.0% for walks cut off at 100,000 steps).

Also. On the flat grid, the resistance to the edge of an n × n box is ln(n)/(2π) + 0.2694012. That constant is built from Euler’s γ and, surprisingly, Γ(1/4): it is the lattice constant plus ln(1.0787...)/(2π), where 1.0787 = 8√π / Γ(1/4)² is the “conformal radius” of a square, the number that comes from bending a disk into a square (Schwarz–Christoffel). The lattice walker knows the shape of its box through the same map a complex analyst would use. Matched to 8 digits, but found after the fact, not predicted.

Ties. Spanning trees and resistance (Investigation 11, Wilson’s algorithm), commute times (17), spectral gaps (02, 15), Brownian excursions in parking and hashing (40).

Known. Doyle–Snell, Kakutani (1944), Pólya (1921), Watson (1939), Kesten, Lawler. Checked here from scratch, not discovered.

Open. The end of a straight wall catches 0.619866/√length of the walkers. Is there a closed form? Answered in Investigation 53.

Toy: Drunk walkers measure a circuit →Release walkers from any point, cut wires, and check the escape rule against the resistance.

Predictions and discoveries

Held
Every pre-registered prediction: the three dictionary identities to rounding error, Kakutani at all three points, the h² grid convergence (error ratio exactly 4.00), the arcsine law and the −1/2 end exponent, the 1/(2π) slope, Watson’s constant to 6 digits, the strip and tree cases, and the simulated return chances. All controls failed as they should.
Missed
None of the mathematics. One design change: I said the 3D simulation would run walks to a million steps and ran them to 100,000 instead, so the tail correction is larger (recorded as such).
Didn’t see coming
The Γ(1/4) conformal-radius constant in the 2D box resistance, and that jumping to a random point inside a circle (rather than on it) works just as well for Kakutani, only three times slower.

↑ Contents

INVESTIGATION 49

Quadratic reciprocity is a shuffle: Legendre symbols as permutation signs, Gauss sums, lattice points and Frobenius

5 November 2026

Is 5 a perfect square when you count mod 11? (Yes: 4² = 16 = 5.) Gauss’s quadratic reciprocity says the answer for “p mod q” and “q mod p” are tied together: they agree unless both primes leave remainder 3 when divided by 4. Gauss gave eight proofs. Here are four of them, each run as code on its own, and they turn out to be the same sign seen four ways.

  1. Shuffles (Zolotarev): write 0, 1, …, p−1 and multiply each by a, mod p. That shuffles the list, and the shuffle is even exactly when a is a square mod p. Reciprocity then says: lay pq cards in a p × q grid and transpose it; that shuffle’s sign is the reciprocity sign.
  2. Gauss sums: add up the p-th roots of unity, weighting each by +1 or −1 for square or non-square. The total is exactly √p or i√p, never the minus sign, and raising it to the q-th power mod q reads off the answer.
  3. Lattice points (Eisenstein): draw the rectangle with corners (0,0) and ((p−1)/2, (q−1)/2), cut it along the diagonal, and count the whole-number points in each triangle. The parities of the two counts are the two symbols, and together they fill the rectangle.
  4. Frobenius: factor a polynomial mod q; whether its number of factors is odd or even is set by its discriminant. For the polynomial whose roots are the p-th roots of unity, that one rule is face 1 on one side and the reciprocity answer on the other.
Checks.
checkresult
shuffle sign vs square-or-not, every a, primes p below 3000593,392 of 593,392 agree
the same for odd composite n below 600 (Jacobi symbol)72,936 of 72,936
grid read row-wise vs column-wise (Frobenius’ proof), odd m, n below 60670 of 670; row order gives (n/m), column order (m/n)
Gauss sum sign, primes below 20,000+√p for all 1,125 primes ≡ 1 mod 4, +i√p for all 1,136 ≡ 3 mod 4
Landsberg–Schaar theta identity, all whole numbers p, q ≤ 60equal to 37 digits
the classic proof run exactly in the ring Z[ζp] mod q, primes below 120812 of 812
Eisenstein’s lattice count, all odd a, primes below 2000276,746 of 276,746; triangles fill the rectangle in 50,202 of 50,202
Stickelberger’s factor-parity rule, 3000 random polynomials43,403 of 43,403
control: the lattice count with a = 2wrong for 156 of 302 primes
control: reciprocity without the minus signfails 992 of 3,660 (both primes ≡ 3 mod 4)

Counting, not just parity. The number of out-of-order pairs in the multiply-by-a shuffle is (p−1)(p−2)/4 − 3p·s(a,p), where s is a Dedekind sum, and Dedekind sums have their own reciprocity law. Putting the two together gives a whole-number identity: q × (out-of-order pairs of “times q mod p”) + p × (out-of-order pairs of “times p mod q”) = (p−1)(q−1)(p+q−1)/4, exact for all 201,662 pairs of odd coprime numbers below 1000. Look at it mod 2 and it is quadratic reciprocity. My first guess (no weights, total 3(p−1)(q−1)/4) failed almost every time.

A control that wasn’t one. To show that only multiplication shuffles carry the symbol, I checked the “cube everything” shuffle against (3/p), expecting disagreement. It agreed for all 48 primes. The reason: cubing is secretly multiplication by 3 on the exponents mod p−1, and Lerch’s rule for even moduli (sign +1 if the modulus is 2 mod 4, otherwise decided by a mod 4) plus reciprocity forces the match for 3, and only 3. For fifth and seventh powers it fails as it should.

Ties. Bernoulli numbers and cyclotomic fields (43), primes as cycles (35), continued fractions and modular geodesics (45; theta functions), knots and primes (20).

Known. Gauss, Eisenstein, Zolotarev, Frobenius, Lerch, Meyer, Stickelberger, Landsberg–Schaar. Checked here, not discovered, including the weighted counting identity: it is Salié’s reciprocity law (see the follow-up). Score 16 of 19.

Open. A bijective proof of the counting identity.

Predictions and discoveries

Held
Every exact law (shuffle signs, Jacobi, the grid proof, Gauss’s sign, the ring proof, Eisenstein, Stickelberger), Meyer’s Dedekind-sum formula with the exact constants I guessed, and all four controls that were real controls.
Missed
The cube-shuffle “control” agreed (explained above); I wrote the Landsberg–Schaar formula with πi where it needs 2πi, and that version fails; and I guessed the spread of out-of-order counts would shrink slowly, when it shrinks like √5/(2√p).
Didn’t see coming
The weighted identity with p+q−1, and that cubing passes for 3 alone.

Follow-up, 5 November: the counting identity is old, and it is the coin problem. The whole-number identity from this investigation, q × (out-of-order pairs of “times q mod p”) + p × (out-of-order pairs of “times p mod q”) = (p−1)(q−1)(p+q−1)/4, is not new. It is Salié’s reciprocity law, the Dedekind-sum reciprocity rewritten as a count (it appears as Theorem 1.3 in Tsukerman’s paper on Dedekind sums mod 4, arXiv:1408.3225). I said I hadn’t seen it written down; it was, I just hadn’t found it.

What’s new here is a short proof that never mentions Dedekind sums, and it runs through a different puzzle: the coin problem. With coins worth p and q, some amounts can’t be paid (with 3¢ and 5¢ coins: 1, 2, 4 and 7). Three steps:

  1. An out-of-order pair in the shuffle is the same thing as a carry when you add two remainders mod p. Counting carries turns the shuffle’s disorder into a sum of whole-number points under the line from (0,0) to (p,q).
  2. Weighted by q and by p, the two shuffles together fill a (p−1) × (q−1) box of points (n, m). The differences qn − pm across the box are exactly the unpayable amounts, each once as a plus and once as a minus.
  3. Sylvester’s 1880s count of the unpayable amounts, and their total (Brown and Shiue, 1993), finish it: the weighted disorder equals 3 × (total of the unpayable amounts) − (how many there are) × (the largest one, pq − p − q).
Checks.
checkresult
the identity, every coprime pair p, q below 400, odd or even97,035 of 97,035
the carry formula for the disorder, same pairs97,035 of 97,035
weighted disorder = 3 × total − count × largest, by listing unpayable amounts, p, q ≤ 1200 misses
control: no weights, or the weights swappedfails 23,906 of 23,906

One identity, three old rules. Mod 2 with both numbers odd, it is reciprocity (composite numbers included). With p = 2 it says the “doubling shuffle” mod q has exactly (q² − 1)/8 out-of-order pairs, whose parity is the classic rule for when 2 is a square. With p even it gives Lerch’s rule, which was the reason the “cube everything” control above didn’t fail.

Held: the identity holds for every coprime pair, not just odd ones. Missed: my claim it was new.

↑ Contents

INVESTIGATION 50

Order without repetition: the Fibonacci word, Penrose tilings and the crystals that shouldn’t exist

5 November 2026

Start with a and replace every a by ab and every b by a, over and over: a, ab, aba, abaab, abaababa, … The lengths are the Fibonacci numbers, and the word never repeats. It has three other descriptions, and I checked that they give the same million letters.

  1. A slice of graph paper: draw a strip with slope 1/φ across a square grid and walk the grid points inside it. Every step is right or up, and the staircase spells the word.
  2. A rounding rule: put b wherever ⌊n/φ²⌋ jumps. The slope’s continued fraction is [0; 1, 1, 1, …], the most irrational number there is.
  3. A crystal: make a and b tiles of length φ and 1. The chain never repeats, yet X-rays would see only sharp spots, like a crystal. Shechtman found such a real alloy in 1982 and won the 2011 Nobel Prize for it.

The same thing happens one dimension up. Penrose’s rhomb tiling is a flat slice through a five-dimensional grid, and also de Bruijn’s “pentagrid” of five sets of parallel lines.

Checks.
checkresult
substitution vs graph-paper slice vs rounding rule, 10⁶ lettersidentical; a near-golden slope (191/500) breaks at letter 231
number of different blocks of length nexactly n + 1 for every n ≤ 2000 (the least a non-repeating word can have)
gaps between the points k/φ around a circlenever more than 3 sizes; exactly 2 sizes precisely when the count is a Fibonacci number
diffraction spots of the tile chain, 75,025 tiles20 brightest match the formula to 5 × 10⁻¹⁰; heights grow like N2.0000 (random tiles: N1.05)
where the light goesthe spots account for all of it (0.9146 measured vs 0.9130 predicted)
Penrose from the pentagrid vs Penrose from the 5D slicethe same 556 vertices; swapping the windows breaks 490 of them
thick : thin rhombs1.6190 in a disk of 73,000 tiles (φ = 1.6180)
ten-fold diffraction spots of the tiling, 96,529 vertices10 brightest within 0.7% of the 5D theory
electron on the Fibonacci chain: trace map and its conserved quantityexact to 10⁻¹⁴; a Thue–Morse chain breaks it
its energy spectrumgaps labelled by multiples of 1/φ, stable to 5 digits; total width shrinks to zero

Fibonacci hides inside Penrose. Follow one pentagrid line through the tiling and read off the rhombs it crosses: thick, thin, thick, thick, … That word is not the Fibonacci word, because four families of lines cross it, and it has 4n + 4 blocks of length n. Keep just two of the families, one that makes thick rhombs and one that makes thin, and you get exactly the Fibonacci word’s blocks again.

Also. Every Penrose vertex looks like one of 7 shapes, and their shares are golden: 1/φ², 1/φ³, 1/φ⁴, 1/φ⁵, 1/φ⁶, 1/φ⁷, with the seventh (five fat rhombs meeting in a star) splitting further. I predicted 8 kinds. There are 8, but the eighth only shows in the fifth dimension: the five-rhomb star comes in two versions that look the same and sit in different layers of the 5D grid, with shares 1/(√5 φ⁵) and 1/(√5 φ⁷). Penrose’s arrow markings are a way of writing down that hidden layer.

Ties. The Fibonacci ladder (12), continued fractions and the modular surface (45), Markov numbers (37): the electron’s conserved quantity is the same cubic as the Markov equation at a different level.

Known. Penrose, de Bruijn, Shechtman, Sturmian words (Morse–Hedlund), the three-gap theorem (Steinhaus), Vuillon’s return words, the Kohmoto–Kadanoff–Tang trace map, gap labelling (Bellissard). Checked here, not discovered. Score 14 of 18.

Open. How gap width depends on its label; the spectrum’s fractal dimension at strong coupling; deriving the golden vertex shares from areas in the window.

Predictions and discoveries

Held
The four descriptions of the word agree letter for letter; n + 1 blocks; balance; two return words; the three-gap theorem’s Fibonacci “iff”; sharp spots at N², all the light in spots; pentagrid = 5D slice; φ ratio of rhombs; window areas 1 : φ² : φ² : 1; ten-fold spot intensities; trace map and invariant; zero-width spectrum.
Missed
I said the spots would hold 99% of the light within 3 spot-widths. They hold 96%, because a finite spot has tails; at 30 widths it is 99.6%, and the sum rule shows nothing is missing. I said 8 vertex kinds, and bare geometry gives 7. I guessed spectrum gaps wider than 0.001 would have labels up to 30; they go to 305. I guessed a fractal dimension of 0.5–0.9 at coupling 4; it comes out about 0.45–0.5.
Didn’t see coming
The diffraction formula is exact to 10⁻¹⁰ on a Fibonacci-length chain (error about 1/N²); the vertex shares are pure powers of φ; and Fibonacci reappears inside a single Penrose ribbon once you keep two line families.

↑ Contents

INVESTIGATION 51

Curvature always adds up to the same number: Descartes, Gauss–Bonnet, hairy balls and V − E + F

5 November 2026

Walk round a corner of a cube and add up the angles of the faces meeting there: 90 + 90 + 90 = 270 degrees, a quarter turn short of flat. That shortfall is the corner’s angle defect. Descartes noticed that on any convex polyhedron the defects add up to exactly two full turns (720 degrees), whatever its shape. On a doughnut-shaped surface they add up to zero, on a two-holed one to minus two full turns. The total is always 2π times V − E + F, the Euler characteristic. The same number turns up in five other places:

  1. Smooth surfaces: the Gaussian curvature added up over a closed surface is 2π(V − E + F) (Gauss–Bonnet). Squash a sphere into any lumpy shape and the total stays 4π.
  2. Vector fields: comb the hair on a surface and count the bald spots and whorls, with signs. They always total V − E + F (Poincaré–Hopf). On a sphere that is 2, so you cannot comb a hairy ball flat.
  3. Hills and valleys: for any landscape on the surface, peaks − passes + pits = V − E + F (Morse).
  4. Polygons only: give each corner 1 − (edges at it)/2 + (1/sides) for each face around it. These numbers, with no angles at all, sum to V − E + F exactly.
  5. Graphs: with no faces, that is 1 − (degree)/2, which is minus half the “canonical divisor” from the chip-firing Riemann–Roch investigations (25, 26). Its total, 1 − g, is the same count again.

Why they are the same: a random height function counts peaks − passes + pits = V − E + F, and if you average where its peaks and pits land over every direction in space, each corner gets exactly its angle defect divided by 2π. So curvature is hills-and-valleys averaged. Going the other way, the index of a whirl in a vector field is the turning of the arrows around it plus the angle defect; the turnings cancel edge by edge across the whole surface and only the defects are left.

Checks.
checkresult
Descartes on Platonic solids, 50 random convex shapes, tori, voxel slabs with 0–5 holes, smooth meshes of genus 0–4 (up to 42,000 faces)total = 2π(V − E + F) to 5 × 10⁻¹²
Klein bottle and projective plane with random edge lengths (no 3D shape at all)holds exactly: it is pure bookkeeping
surfaces with a boundary (disc, ring, half of a two-holed surface)holds once the boundary’s turning is added; without it, fails
Gauss–Bonnet by integration: sphere, ellipsoid, lumpy sphere, round and wobbly torus4π and 0 to 12 digits
whirls of random vector fields on surfaces of genus 0–4every whirl index is a whole number (to 5 × 10⁻¹⁴) and they total V − E + F, even with 2,900 whirls on a two-holed surface
the same without the angle defectnot whole numbers
peaks − passes + pits for random landscapes, including on the Klein bottlealways V − E + F
average over 40,000 directions vs each corner’s defectagree within statistical error at all 248 corners tested
polygon-count curvature, exact fractionssums to V − E + F every time; on a soccer ball it is 1/30 at each of the 60 corners
Forman’s edge curvature (a popular graph curvature)does not add up to V − E + F: two 12-corner spheres give −60 and 0

The miss. I predicted that defect divided by a corner’s share of area converges to the true curvature at every corner, with the error falling like h² as the mesh gets finer. The typical error did, but the worst error only fell like h. The culprit is the popular “mixed area” rule for corners touching obtuse triangles; with a plain one-third-of-each-triangle area the worst error falls like h² too. On randomly jiggled meshes the corner-by-corner value never converges at all (stuck at about 6% error), yet totals over any patch do. Curvature behaves like a quantity spread over regions, not a value at a point.

Ties. Chip-firing and Riemann–Roch (25, 26: the canonical divisor is curvature), the Tutte polynomial and planar maps (44: V − E + F), flat lattices (curvature 0 everywhere on a grid).

Known. Descartes, Gauss (1827), Bonnet (1848), Poincaré (1885), Hopf (1926), Banchoff (1967), Forman (2003), Baker–Norine (2007). Checked here from scratch, not discovered.

Open. Is there a natural edge curvature, Forman-style, whose total is V − E + F?

Predictions and discoveries

Held
15 of 16 predictions. Descartes, Gauss–Bonnet, Poincaré–Hopf, Banchoff’s averaging, the polygon count and the graph version all give V − E + F everywhere I looked; the controls (no boundary term, no defect in the index, Forman’s curvature) fail as predicted.
Missed
The worst-case convergence rate of curvature at single corners (h, not h²), caused by the obtuse-triangle area rule.
Didn’t see coming
Two spheres touching at one point still obey Descartes with V − E + F = 3, so the theorem is about the count, not about surfaces; and thousands of random whirls cancel to exactly −2 on a two-holed surface.

↑ Contents

INVESTIGATION 52

The same number in a parabola, a pendulum and the Mandelbrot set: Feigenbaum’s constant

5 November 2026

Turn up a knob on a simple system and watch it settle down. First it settles to one value. Then it starts flipping between two, then four, then eight, and the doublings come faster and faster until it goes chaotic. Feigenbaum noticed in 1975 that the gaps between doublings shrink by the same factor, 4.6692…, whatever the system is, and that the pattern itself shrinks by another fixed factor, 2.5029…, each time. I tested that on six systems that have nothing obvious in common:

  1. The logistic map, x → r·x(1 − x), the textbook population model.
  2. A sine wave, x → r·sin(πx), and a fish-population model, x → r·x·e−x.
  3. The real line through the Mandelbrot set.
  4. The little copy of the whole cascade hiding inside the logistic map’s “period-3 window”.
  5. The Hénon map, which lives in the plane and has no hump to point at, at three different settings.
  6. A real physical system: a pendulum pushed back and forth, with friction.

They all give the same number. The reason is a single function: doubling turns one system into a “squashed and flipped” copy of itself, and repeating that pulls every one-hump system toward one fixed shape. 4.6692 is how fast you drift away from that shape, and you can compute it straight from the shape without simulating anything.

Checks.
systemresult
logistic map, cycles of length up to 16,3844.669201608 and 2.502907876 (true: …609 and …875)
sine map, and the fish model4.669201604 and 4.66920155
Mandelbrot set’s real line, found in the complex planelands on exactly the logistic values, all 22 digits (they are the same system in disguise, so this checks two different methods agree)
the period-3 window inside the logistic map4.66920044
Hénon map at three settings, cycles up to 4,096 points4.6692007, 4.6692011, 4.6692009
driven pendulum, doublings up to 64 swings per cycle4.671, 4.664, 4.668, 4.6689
the fixed-point function, solved directly with no system at all4.6692016091 and 2.5029078751
control: Hénon set so it keeps area instead of losing it8.72110, a different constant (the right one for such systems)
control: a flatter hump, like x⁴ or x⁶ instead of x²7.2847 and 9.2962, again matching the fixed-point function for that hump
the Mandelbrot set’s tripling cascade (3, 9, 27, … 729)a complex number, 4.6003 + 8.9812i: each step shrinks by 10 and turns by 63°

Worth noticing. What makes the number 4.669 is losing area. The Hénon map gives 4.6692 whether it squeezes areas by a factor of 0.3 or 0.1, flipped or not. Set it so areas are kept exactly and the very same formula gives 8.721 instead. The shape of the hump matters too: a flat-topped x⁴ hump gives 7.285. So the number is universal across a huge range of systems, but it is not “the constant of chaos” for everything.

Also. The other numbers in the fixed-point calculation show up in the data. A lopsided hump (the fish model) makes its 2.5029 estimate wobble above and below the true value, each wobble −0.40 times the last, and −0.3995 is exactly −1/2.5029, the next number in the calculation. Symmetric humps don’t wobble at all.

Ties. Universality, details washing out, as in zeta zeros and random matrices (19) and the longest increasing subsequence (30); a renormalization fixed point, as at the Lee–Yang edge (28).

Known. Feigenbaum (1978), Coullet and Tresser; Lanford’s computer proof (1982); the area-keeping constant is Greene’s and Benettin and colleagues’; the complex tripling constant is Golberg, Sinai and Khanin’s (1983). Checked here, not discovered. Score 10 of 11.

Open. The second Feigenbaum number (2.5029) for the Hénon map and the pendulum, which I didn’t measure; the area-keeping system’s own shrink factors (4.018 and 16.36).

Toy: The same number in every cascade →Zoom into the period-doubling picture and watch 4.6692 appear for two different formulas.

Predictions and discoveries

Held
Every system gives 4.6692, the Mandelbrot real line lands on the logistic map to every digit, the pendulum agrees to 0.01% after six doublings, the fixed-point function gives both numbers to ten digits, and both controls came out different, with the values I’d written down (8.721 and 7.285).
Missed
How fast the estimates close in. Each new estimate’s error is 0.214 times the last, in every system, and I’d guessed 0.160 (one over 2.5029 squared). 0.214 is one over 4.669 itself: the knob’s path into the fixed point is slightly curved, and that curve beats the next number in the calculation. It stays recorded as a miss.
Didn’t see coming
The fish model’s wobble, which shows a hidden number in the calculation directly. Also my remembered tripling constant had the wrong sign on its imaginary part: I’d followed the mirror-image chain of bulbs, which gives the mirror-image number.

↑ Contents

INVESTIGATION 53

The end of the wall: a √2 hiding in a random walk

5 November 2026

In the random-walks-and-circuits investigation (48), walkers wandering in from far away on a square grid landed on a straight wall of points. The middle of the wall followed the arcsine law, but the very end point caught a share of about 0.619866 divided by the square root of the wall’s length, and I could not say what 0.619866 was. Now I can:

C = √((1 + √2) / (2π)) = 0.6198661324279…

The prediction was written down from a pencil-and-paper argument before any new computer run, and then the computer agreed to 12 digits.

Where the √2 comes from. The wall’s points all “talk” to each other through how likely a walker is to travel from one to another. Along a grid line, that pattern of influence has a frequency recipe with a factor of 3 − cos t in it, the cost of a walker stepping off the line and coming back. Split that factor into a “forward” half and a “backward” half (the Wiener–Hopf trick) and the number 3 − 2√2 = (√2 − 1)² drops out. The end of the wall feels exactly that number. Rotate the wall 45° so it runs diagonally and the factor disappears: the end constant becomes 1/√π, and that was predicted too.

Checks.
checkresult
end-point constant, walls up to 8,193 points, extrapolated1.9473668878440 vs predicted 1.9473668878447 (12 digits)
the shares of the first 8 points, not just the endall match the predicted generating function to 11 or 12 digits
diagonal wall, predicted 1/√πmatches to 12 digits
blind integer-relation search (PSLQ) on the raw number, no theoryreturns 2C² = (1+√2)/π by itself
control: drop the 3 − cos t factorpredicts 0.5642, the data say 0.6199: rejected
control: search with Γ(1/4) and Catalan’s constantfinds nothing new
re-check of last time’s Γ(1/4) box constant 0.2694012333now 12 digits (was 8), and the conformal radius re-derived a second way

Also. On the diagonal wall the answer is exact for every length, not just long walls. The share caught by point k of a wall of L+1 points is C(2k,k)·C(2L−2k,L−k)/4L, the “discrete arcsine law” that also counts how long a coin-tossing game spends in the lead. Checked to 52 digits for every length up to 40. And a second surprise: the same √(1+√2) turns up in a famous counting result of Bousquet-Mélou and Schaeffer (2002) about walks that never touch a half-line. Feeding our constant through the heat equation reproduces their number, 0.63397780155285…, to 22 digits. Same hidden factor, two different questions.

Ties. Random walks and circuits (48; this closes its open question), the arcsine law, Brownian excursions (40).

Known. Kesten (1987) found the 1/√length law; Uchiyama (2011–15) has the general machinery; the 1 + √2 is Bousquet-Mélou and Schaeffer’s. I did not find the end-point formula written out in that form, but it follows from known tools, so: known in disguise, checked from scratch.

Predictions and discoveries

Held
All five pre-registered predictions: the closed form to 12 digits, the whole end profile, the diagonal 1/√π, the box constant to 12 digits, and the blind PSLQ hit. All controls failed as they should. I also predicted a small arithmetic slip in last time’s write-up (0.94818 should be 0.94806), and it was one.
Missed
Nothing.
Didn’t see coming
The exact discrete arcsine law on the diagonal at every length, clean 1/length corrections (1/8 on the diagonal, (2√2−1)/8 on the axis, the second one fitted, not proved), and the match with the Bousquet-Mélou–Schaeffer constant.

↑ Contents

INVESTIGATION 54

Why random cubic graphs need fewer chips than the theory says: the gap is real, and it branches

5 November 2026

In chip-firing, a graph’s “gonality” is the smallest pile of chips that can be moved, by legal firings, to put a chip on any vertex you name. For algebraic curves there is a famous formula for the typical value, the Brill–Noether number. For a cubic graph (three edges at every vertex) it works out to about a quarter of the number of vertices, plus 2. Random cubic graphs hit that value when they’re tiny, then start to fall short. Earlier (Investigation 25) I saw them about 2 chips short at 36 vertices, which is as far as an exact search can go. The open question was whether that’s a quirk of small graphs or a real law.

To get past 36 vertices I used a search that can’t lie: every pile it reports gets checked exactly. It can only show the true answer is at most what it found. I ran it on graphs up to 128 vertices:

Certified piles.
verticesBrill–Noether valuebest pile found, averagebest single graph
401210.69
641815.814
962622.920
1283430.328

Every one of the 16 graphs at 96 and 128 vertices is proved to fall below the formula, some by 6 chips. The search is known to overshoot (by about 1 chip already at 36 vertices), so the real gaps are bigger. The shortfall grows roughly in proportion to size: about 0.19 to 0.22 chips per vertex, against the formula’s 0.25. Not a small-graph quirk.

The surprise is what the cheapest piles look like. The natural plan is to pile chips at one end and roll them across the graph as a wave, level by level. I proved that always works and searched for the best wave. On big random graphs it costs about a third of the vertex count, more than the formula. The real optimal piles do something else. On 32 to 36 vertices, about 7 to 12 different arrangements of the same pile are enough to reach every vertex. The chips split into small stacks that run down different arms of the graph at once, like water spreading through a delta, rather than one wave crossing a line. Mathematically that’s a map onto a branching tree instead of onto a line.

What doesn’t explain it: how well connected the graph is. Bisection width (the fewest edges you must cut to halve the graph) and the spectral gap barely predict which graphs fall short. The one exception: the rare graphs that fall 3 chips short all have bottlenecks.

A correction to my earlier write-up (Investigation 25’s follow-up). The theorem I quoted, that generic edge lengths always restore the formula, is about a different, stricter kind of gonality. For chip-firing gonality it’s an open problem, and Jensen proved some graph shapes stay special whatever lengths you give them.

Ties. Riemann–Roch on graphs (25) and the chain of loops (26), where equal lengths made special curves too.

Known. The lower bound of 0.072 chips per vertex is Jensen and coauthors’, who also posed the expected gonality of a random cubic graph as an open problem. The numbers here are measurements toward that problem, not a solution. Score 1 pass, 3 misses, 1 partial, 1 not run.

Open. A good search over branching (tree) maps, which should give tighter piles on graphs with hundreds of vertices.

Predictions and discoveries

Held
Every pile checked out exactly (300 of them), and the gap keeps widening all the way to 128 vertices.
Missed
I expected the “rolling wave” to be nearly optimal and to show the law by itself. It’s optimal on only about 4 in 10 small graphs, and on big ones it’s worse than the formula. I also expected more than half the vertices in the best wave to cost nothing; it’s almost exactly half.
Didn’t see coming
The best piles branch. Only a handful of arrangements cover the whole graph, splitting chips down separate arms. Also, a theorem I leaned on last time turned out to be about a different kind of gonality.

↑ Contents

INVESTIGATION 55

One number, five jobs: Mahler measure

5 November 2026

Take a polynomial with whole-number coefficients, like 1 + x + y. Let x and y run around the unit circle, and average the logarithm of the polynomial’s size. That average is called the Mahler measure. For a polynomial in one variable it is just “how far its roots stick out of the unit circle”, multiplied together. It sounds like bookkeeping, but the same number keeps turning up in places that have nothing to do with each other. I wrote down where I expected it, before running anything, and then checked each one.

Job one, a knot’s volume. The space around the figure-eight knot can be built out of two perfect hyperbolic tetrahedra, and its volume is 2.0298832128… For 1 + x + y the Mahler measure is 0.3230659472…, and that is the volume divided by 2π. The volume came from SnapPy, which knows nothing about polynomials (it solves the gluing equations of the tetrahedra), and the two numbers agree to all 30 digits printed. The knot’s own “A-polynomial” gives the volume divided by π, also to 30 digits.

Job two, counting repeating patterns. Fill an n × n wrap-around grid with numbers between 0 and 1, with the rule that each cell plus its right neighbour plus its upper neighbour is a whole number. How many ways are there? When n is a multiple of 3 there are infinitely many. Otherwise the count grows like en² × 0.3230659…: the same number, so the figure-eight’s volume also controls how fast these patterns multiply. The same goes for the “cat map”, the famous scramble of a square, whose stretching factor φ² is the Mahler measure of the figure-eight knot’s Alexander polynomial.

Job three, spanning trees. The number of spanning trees of an n × n wrap-around grid grows like en² × 1.1662436…, and 1.1662436… = 4G/π, with G Catalan’s constant. That is the Mahler measure of 4 − x − 1/x − y − 1/y. It is also the volume of the Whitehead link’s complement divided by π (SnapPy: 4G to 25 digits).

Jobs four and five: Lehmer’s number, 1.17628… Lehmer found it in 1933 and nobody has found a smaller Mahler measure above 1 since. I searched all of the roughly one million small symmetric polynomials and it came out smallest, followed by 1.18837 and 1.20003, as predicted. The same polynomial also turns up, exactly, when you multiply together the ten mirror reflections of the E10 diagram, a tree shaped like a letter T with arms 2, 3 and 7. That tree is also the tree whose spectrum sits closest above 2 out of every tree with up to 16 vertices. And it is the Alexander polynomial of the (−2, 3, 7) pretzel knot, with one twist I didn’t predict: you have to replace t by −t first.

Checks.
checkresult
m(1+x+y) vs figure-eight volume / 2π (SnapPy)30 digits
m(1+x+y+z) vs 7ζ(3)/(2π²)18 digits
figure-eight A-polynomial: m vs volume / π30 digits
pattern counts (n×n grid) vs Mahler measureconverge, error ~ 1/n²; zero exactly when 3 divides n
spanning trees vs 4G/π, Whitehead link volume vs 4Gconverge; 25 digits
smallest Mahler measures, ~990,000 symmetric polynomials1.17628, 1.18837, 1.20003 as predicted
non-symmetric polynomials, 529,256 of themsmallest is 1.32472 (the plastic number), as Smyth proved
E10 reflections vs Lehmer’s polynomialidentical, coefficient for coefficient
En as n growsclimbs to the plastic number (1.3247179 by n = 60)
(−2,3,7) pretzel knot’s Alexander polynomialLehmer’s at −t (two independent methods agree)
control: wrong knot, wrong polynomial, moved branch of E10all fail to match, as they should

Also. The pattern count isn’t just “about” e0.3230659 n². It is √3 times that, to 14 digits (fitted on grids up to 64,001 wide), with a correction of about ±1.52/n whose sign flips with n mod 3. I haven’t proved it and didn’t find it written down, though I’d guess experts know it. A second surprise: Lehmer’s own pattern counts (for the 10-dimensional version) are always perfect squares, which is why he took square roots when he hunted for primes in them.

Ties. Knots and primes (20, where the figure-eight’s growth rate first appeared), dominoes and spanning trees (13 and 11: G/π and 4G/π), Fibonacci and the golden ratio (12: φ² for the cat map; the plastic number is its slower cousin, as in look-and-say, 47).

Known. All the main identities are in the literature (Lehmer 1933; Smyth 1971 and 1981; Boyd and Rodriguez-Villegas; Lind, Schmidt and Ward 1990; McMullen 2002; Hironaka 2001). This investigation re-checks them from scratch, using routes that don’t depend on each other.

Predictions and discoveries

Held
17 of 20 predictions and controls, including the two I was least sure of: the A-polynomial factor (π, not 2π) and the Whitehead link being exactly 4G.
Missed
The pretzel knot matches Lehmer’s polynomial only after t → −t (this happened twice); my guess at how fast Lehmer’s counts converge (it’s at most 5.5/n, with rare deep dips, not (log n)/n); and my guess that prime counts only happen at prime n, which was beside the point, since the counts are never prime at all (they’re always perfect squares).
Didn’t see coming
The √3 in front of the pattern count, to 14 digits.

↑ Contents

INVESTIGATION 56

Counting points on a curve: one list, five jobs

6 November 2026

Take a cubic curve like y² + y = x³ − x² − 10x − 20 and do arithmetic “on a clock” with p hours, for a prime p. Count how many points (x, y) satisfy the equation, add one more for the point at infinity, and compare with p + 1. The difference is a small whole number, ap. For p = 2, 3, 5, 7, 13 it is −2, −1, 1, −2, 4. That’s all ap is: a correction to a count. I wrote down beforehand where else I expected this list to turn up, and then checked each place with code that doesn’t share anything with the counting.

Job one, a power series that knows nothing about the curve. Multiply out q × (1 − q)²(1 − q²)²(1 − q³)²… × (1 − q¹¹)²(1 − q²²)²…, a product Euler studied in the 1700s. The coefficient of qp is ap, at every one of the 9,592 primes below 100,000. The same thing works for 11 different curves, each with its own product (levels 11 to 144). This is the “modularity” that Wiles and others proved for every such curve, the step that settled Fermat’s Last Theorem. Controls: a product that looks just as good, η(z)η(2z)η(3z)η(18z), fails, and a curve paired with the wrong product mismatches at 9,544 of 9,590 primes.

Job two, a Riemann hypothesis. ap is always smaller than 2√p (Hasse, 1933). I checked all 664,579 primes up to ten million on ten curves: it never gets there, but it gets within 0.005%. Counting the same curve over a 4-, 9-, 25-… element field gives exactly what the “zeta function” built from ap predicts, which is the curve version of the Riemann hypothesis, the same idea as the Ihara zeta of a graph (29).

Job three, random rotations and Catalan numbers. Divide ap by √p. The numbers you get look exactly like the trace of a random SU(2) matrix (a random unit quaternion, the group behind 3D rotations): the average of the square is 1, of the 4th power 2, then 5, 14, 42. Those are the Catalan numbers, the same ones that count mountain ranges and binary trees (23). They came out within 0.4%. Curves with extra symmetry (“complex multiplication”) behave differently in a predictable way: ap is exactly zero for half the primes, and the moments become 1, 3, 10, 35, 126 instead.

Job four, the rank. Some curves have infinitely many rational points, generated by r basic ones; r is the rank. Birch and Swinnerton-Dyer guessed in the 1960s that you can read r off the point counts: curves with more rational points have slightly more points mod p, on average. I took four curves of rank 0, 1, 2 and 3. The sum of ap log p / p grows like (½ − r) log x, and the fitted slopes were +0.504, −0.495, −1.542, −2.508. The exact form of their conjecture also held: the curve’s L-function at its centre, computed from the ap alone, equals the curve’s real period × the size of its basic points × small correction factors, to 15–20 digits, for all four curves.

Job five, a congruence like Ramanujan’s. The first curve has a rational point of order 5, so its point count is always a multiple of 5: ap ≡ 1 + p (mod 5). That’s exactly the shape of Ramanujan’s τ(p) ≡ 1 + p¹¹ (mod 691) from the Bernoulli investigation (43). For a curve with no such point, the chance that 5 divides the count is 23/96, from counting matrices over the 5-element field. Measured: 0.2389 (predicted 0.2396).

Checks.
checkresult
point counts vs Euler-style products, 11 curves0 mismatches (up to 100,000)
wrong product / fake candidate productmismatch / fails, as they should
three different-looking curves of level 11identical counts at every prime
Hasse bound, 10 curves, p up to 10⁷never broken; closest 0.99996 (0.9999998 on the special-symmetry curves)
counts over bigger fields vs zeta prediction54 of 54
moments vs Catalan numbers 1, 2, 5, 14within 0.4%
special-symmetry curves vs 1, 3, 10, 35within 0.13%; zero exactly on the predicted half
rank slopes, ranks 0–3+0.504, −0.495, −1.542, −2.508
BSD exact values, ranks 0–315–20 digits
divisibility by 2, 3, 5, 7 (no torsion)within 0.0008 of the matrix count

Also. On the special-symmetry curve y² = x³ + 4x, the primes that come closest to the Hasse bound are exactly primes of the form n² + 4 (like 9,954,029 = 3155² + 4), which turns “how close can ap get” into a question about primes of a special shape, a famous open kind of problem.

Ties. Catalan numbers (23, the moments), random matrices and the zeta function (19; the Hasse bound is the curve’s own Riemann hypothesis, and the ap behave like random-matrix traces), the modular group (the products are modular forms, as in 22 and 34), and Bernoulli numbers (43, the mod-691 shape).

Known. All of it, from Hasse (1933), Eichler and Shimura, Birch and Swinnerton-Dyer (1965), Goldfeld (1982), Martin and Ono (1997, the list of products) and the Sato–Tate proof (2011). This investigation re-checks it from scratch, using routes that don’t depend on each other.

Predictions and discoveries

Held
20 of 22 predictions and controls, including all the rank and BSD predictions, which converged much better than I feared (I allowed ±0.3 on the slopes; the worst was off by 0.04).
Missed
I guessed higher-rank curves would show more primes with ap below zero. They don’t (0.4997 to 0.5005, no pattern); the effect is real but far too small for a yes/no count, and only shows up in the weighted sums. And I claimed a curve with 8 torsion points always has a count divisible by 8; that fails at p = 2, where the count is 4, because the torsion can’t survive at its own prime. My own bug, caught: my first run said three of the products failed, but that was a number overflow in my code.
Didn’t see coming
The n² + 4 primes.

↑ Contents

INVESTIGATION 57

Orbits that close and atoms whose levels pile up

7 November 2026

Pull a ball toward a centre with some force, give it a sideways push, and watch its path. For almost every force law the path never closes: each loop comes back slightly rotated, and over time it fills a ring like a spirograph. In 1873 Bertrand proved that only two force laws close every orbit, whatever its shape: a spring (force growing with distance, as in Hooke’s law) and gravity (force falling off as one over distance squared, as in Kepler’s planets). The spring traces ellipses centred on the pull; gravity traces ellipses with the pull at one focus. In quantum mechanics there is a second list of exactly two: the only systems where states with different angular momentum share the same energy “by accident” are the 3D harmonic oscillator and the hydrogen atom. Same two. I wrote down beforehand how I expected these to be one fact, then checked it four ways.

Way one, measure the turn. For a whole family of forces (potential ra, from a = −1.5 to 7) I computed the angle from closest approach to farthest point, two ways: an exact integral at 80 digits and a direct simulation. For nearly circular orbits it is π/√(a+2), which is 180° for gravity and 90° for the spring. For everything else the angle drifts as the orbit gets more stretched. I derived the first drift term on paper before running anything: the angle grows by a factor 1 + (a+1)(a−2)e²/24, where e measures how stretched the orbit is. It matched to 15 digits at all 15 force laws. The factor (a+1)(a−2) is Bertrand’s theorem in one line: it vanishes at gravity (a = −1) and the spring (a = 2) and nowhere else.

Way two, hidden symmetry. For gravity, the velocity arrow of a planet traces a perfect circle as it goes round (Hamilton noticed this in 1847). For the spring, it traces an ellipse centred on zero. Both checked to 13 digits; every other force fails both tests. The circle is the visible face of an extra conserved quantity (the Runge–Lenz vector), and for every other force that quantity turns by exactly the drift angle from way one each orbit.

Way three, squaring. Write positions as complex numbers and square them. A spring’s ellipse, squared, becomes a gravity ellipse (Bohlin, 1911). In 20 random examples the squared path obeys the inverse-square law to 15 digits, and something strange happens to the constants: the spring’s energy becomes gravity’s strength, and the spring’s stiffness becomes gravity’s energy. Every spring orbit lands on the same gravity energy. Arnold generalised this to any power: raising to the power (a+2)/2 turns force law a into force law A whenever (a+2)(A+2) = 4. I checked five such pairs (like r¹ ↔ r−2/3 and r−1.5 ↔ r⁶); the paths match to 12 digits and the turning angles scale exactly by the power.

Way four, the quantum levels. I solved the Schrödinger equation for the same family. Gravity gives the hydrogen pattern −1/(2n²) with 1, 4, 9, 16, 25 states per level (to 13 digits), the spring gives 1, 3, 6, 10, 15, and every other force splits these groups. The bridge to orbits is a ratio of level spacings: going up one step in angular momentum versus one step in “radial” excitation. For nearly circular states it tends to 1/√(a+2), the classical ratio of how fast the orbit goes round to how fast it breathes in and out. Gravity’s ratio is exactly 1 and the spring’s exactly 1/2 at every level: those are rational, so the levels can line up, and those same ratios are what make the orbits close. For stretched orbits the quantum ratio matched the classical turning angle to 5 digits. One more pattern: whether s-states sit above or below p-states flips exactly at gravity, as a 1985 theorem predicts from the sign of the force’s “Laplacian”. On one side you get the pattern of sodium and the other alkali metals.

Checks.
checkresult
turning angle, near-circular, 15 force lawsπ/√(a+2), all
angle the same for every orbit shapeonly at gravity and spring (to 10⁻⁷⁵); others drift 0.5%–31% (e from 0.01 to 0.6)
first drift term (a+1)(a−2)e²/24, derived beforehand15 digits
velocity circle (gravity) / centred ellipse (spring)13 digits; all others fail
spring orbits squared = gravity orbits15 digits, gravity energy always −2
Arnold’s power maps, 5 pairs12 digits
hydrogen levels and counts 1, 4, 9, 16, 2513 digits
oscillator levels and counts 1, 3, 6, 10, 1512 digits
s above or below p: flip exactly at gravity16 of 16 pairs, all 15 force laws
quantum spacing ratio vs classical turning angle0.0003%–0.02% (stretched orbits), 0.06%–1.9% (circular, l = 40)

Also. I fitted the next two drift terms and they came out as exact fractions, e.g. (a+1)(a−2)(122 − 35a − 13a²)/6912 for the e⁴ term. The squaring map from way three forces a relation between the drift of force a and of force A, and the fitted terms satisfy it exactly, which is what convinced me they are right. In them the spring’s zero is a double zero but gravity’s is single, which looks like the two special forces are not equal partners. They are: bend the spring’s force a little and the first-order drift is exactly (a−2)e²/8, no higher terms at all; bend gravity’s and you get a messier expression, but it is the same e²/8 written in the eccentricity of the spring orbit that squares onto it.

Ties. The Laplacian (its sign decides the level order; see the essay on why the Laplacian is everywhere) and duality (the squaring map swaps energy and strength, and the two forces are each other’s dual).

Known. Bertrand (1873), Hamilton (1847), Fock and Bargmann (1935–36, the hidden 4D rotation symmetry of hydrogen), Fradkin (1965), Bohlin (1911), Arnold (1990), Baumgartner–Grosse–Martin (1985). The e² term is very likely in the literature; I haven’t checked whether the exact e⁴ and e⁶ terms or the pure (a−2)e²/8 are written down.

Predictions and discoveries

Held
17 of 18 predictions, including my guess that the e⁴ term would be a simple polynomial fraction.
Missed
I promised the near-circular quantum ratio would be within 1% of the classical value at angular momentum 40 for all seven test forces; the two most extreme (a = −1.5 and a = 7) were off by 1.9% and 1.3%. The error halves when you double the angular momentum, so the limit is right; I picked too low a level. My own bug, caught: my first quantum solver quietly lost the ground state when I made the box bigger. A box-size check caught it, and I rewrote it.
Didn’t see coming
The exact e⁴ and e⁶ terms and the double zero at the spring.

↑ Contents

INVESTIGATION 58

Circles in circles, and the numbers they hide

8 November 2026

Draw a circle. Inside it, put three smaller circles that each touch the other two and the big one. That leaves curved triangular gaps, and each gap has exactly one circle that fits snugly, touching all three of its sides. Put it in, and now there are three smaller gaps. Keep going forever and you get an Apollonian gasket, a lace of circles. Descartes found the rule in 1643: if four circles all touch, their curvatures (one over the radius) satisfy (k1 + k2 + k3 + k4)² = 2(k1² + k2² + k3² + k4²). Start with curvatures −1, 2, 2, 3 (the −1 is the outer circle, counted negative because the others sit inside it), and the rule gives every curvature in the whole picture as a whole number: 15, 6, 6, 3, then 38, 35, 23, 15, 14, 11, 6 and on forever. I wrote down beforehand five things I expected this one picture to be, then checked them.

First, a group of symmetries from relativity. Filling a gap is the same as swapping one curvature for a new one, k → 2(sum of the other three) − k. These four swap moves are reflections that preserve a “Lorentz” form, the same kind of geometry special relativity uses (three plus signs and one minus). I checked that no string of up to ten moves ever undoes itself, so every circle is reached by exactly one path: 4, then 12, then 36 new circles at each stage, tripling. With the centres carried as whole complex numbers, every touching pair was checked exactly, 118,100 circles deep, with no overlaps.

Second, a fractal. How many circles have curvature up to T? I counted them all, up to T = 100 million: 11,223,707,422 circles. The count grows like T to the power 1.3056874. That power is the fractal dimension of the lace, which McMullen computed in 1998 by a completely different method as 1.305686729. Plain counting gets it to six or seven digits. As a second route that counts no circles at all, I covered the lace with ever-smaller curved triangles and asked at what dimension their total size stops changing. That gave 1.3057. The total area of the circles adds up to the whole disc, so the lace itself has zero area, and the leftover area shrinks at exactly the rate the dimension predicts.

Third, fractions. Squash the picture so the outer circle becomes two parallel lines with a row of equal circles between them. The circles resting on the bottom line then have curvatures 1, 4, 9, 16, 25: perfect squares. The circle with curvature q² sits over the fraction p/q, every fraction exactly once (checked up to q = 200, 12,233 circles), and two of them touch exactly when the fractions are neighbours in the Farey sequence (ps − qr = ±1). These are Ford circles, the picture of the modular group from Investigations 37 and 45.

Fourth, quadratic forms. In the −1, 2, 2, 3 packing, the circles touching the outer circle have curvatures exactly x² + y² + 1, with x and y sharing no factor: 2, 2, 3, 3, 6, 6, 6, 6, 11, … For any circle of curvature a, the circles touching it are the values of a quadratic form, minus a. I checked this for 20 circles deep in the packing.

Fifth, numbers that never show up. In any whole-number packing, curvatures only land in 6 or 8 of the 24 possible remainders when you divide by 24. In 2003 Graham, Lagarias, Mallows, Wilks and Yan conjectured that every big enough number with an allowed remainder eventually appears. For −1, 2, 2, 3 that looks right: exactly 61 allowed numbers are missing, the last is 97,287, and every allowed number from there to 100 million is present. But in 2023 Haag, Kertzer, Rickards and Stange found it fails elsewhere. I scanned 40 packings. In the one starting −3, 5, 8, 8 no square number ever appears, though squares are allowed and over 99.9% of other allowed numbers turn up. 33 of the 40 packings hide at least one family (squares, or twice squares, or three or six times squares), and three of them have squares but hide every fourth power. The reason is a coin flip that never changes. For any two touching circles, take the quadratic-reciprocity symbol of one curvature against the other (the ±1 from Investigation 49). In every packing, that ±1 is fixed by the two curvatures’ remainders mod 24 alone. Zero exceptions in 40 packings. A square always gives +1, so where a packing’s coin says −1, squares can’t appear. Reading the coins off circles of curvature up to 30,000 predicted every hidden family up to 10 million: 241 out of 241 cases. The fourth-power families need a finer coin (a quartic symbol) that I didn’t build.

Checks.
checkresult
Descartes rule, real and complex, 118,100 circlesexact (whole numbers)
4 × 3ⁿ⁻¹ new circles per stage, none repeatedstages 1–10
the moves preserve a Lorentz form, no word undoes itself118,096 words
fractal dimension from counting 11.2 billion circles1.3056874 (McMullen: 1.305686729)
fractal dimension from covering triangles (no counting)1.3057
circles on a line = Ford circles, touching = Farey neighboursevery fraction with q ≤ 200
touching curvatures = x² + y² + 12,868 circles, exact
touching curvatures = a quadratic form minus a20 of 20 circles
−1, 2, 2, 3: missing allowed numbers61, the last 97,287, none to 100 million
reciprocity coin fixed by remainders mod 240 exceptions, 40 packings
hidden families predicted from small circles241 of 241

Ties. The modular group (Ford circles and Farey fractions, 37 and 45) and primes and number theory (quadratic forms and reciprocity, the same ±1 symbol as 49).

Known. Descartes (1643), Soddy (1936), Ford (1938), Boyd (1973), McMullen (1998), Lagarias–Mallows–Wilks (2002, the complex version), Graham–Lagarias–Mallows–Wilks–Yan (2003), Fuchs (the mod 24 rule), Sarnak (the quadratic forms), Kontorovich–Oh (2011, the count grows like T1.3057), Bourgain–Kontorovich (2014, almost every allowed number appears), Haag–Kertzer–Rickards–Stange (2023, the hidden families).

Open. The constant in front of the count, 0.40239, has no known formula; the literature lists it as an open problem.

Predictions and discoveries

Held
12 of 16 predictions held in full, including the dimension (far more digits than I promised), Ford circles, both quadratic-form rules, and my remembered example that −3, 5, 8, 8 has no squares.
Missed
I expected the count to be about 0.0458 × T1.3057. It is 0.40239 × T1.3057, steady to five digits from a million to 100 million. I had misremembered the 0.0458, and the paper I thought it came from gives no value. Partly missed: I promised a five-digit dimension from a “transfer operator” and instead used a covering method that gave four. I also remembered −6, 11, 14, 15 as the packing with no fourth powers. That’s true but empty there (squares can’t appear in it at all). The real fourth-power cases are −8, 12, 25, 25 and two others. One check I planned, a deliberately wrong control packing, I never ran. My own bug, caught: I gave the straight lines in the squashed picture the wrong-facing direction, and only 2 Ford circles appeared until I flipped it.
Didn’t see coming
Simply counting the covering triangles gives a badly wrong dimension (1.47, creeping down to 1.31), because of slivers jammed into the points where circles touch. Weighting each triangle by its size fixes it at once. And the hidden-number rule is so rigid that circles up to 30,000 predict what happens up to 10 million without a single miss.

↑ Contents

INVESTIGATION 59

Reversing a line, one swap at a time

9 November 2026

Line up n people and reverse their order, but the only move allowed is two neighbours trading places. Every pair has to pass each other exactly once, so the shortest way takes n(n−1)/2 swaps, and there are many shortest ways. Draw each person as a wire running left to right and each swap as an X, and you get a “sorting network.” I wrote down beforehand what I expected this simple puzzle to be secretly the same as, then checked.

First, Young tableaux. Count the shortest ways directly, by brute force over every arrangement: for n = 1 to 8 there are 1, 1, 2, 16, 768, 292,864, 1,100,742,656 and 48,608,795,688,960. Now take a staircase of boxes (n−1 boxes in the top row, then n−2, down to 1) and count the ways to fill it with 1, 2, 3, … so numbers increase along every row and down every column. The hook-length formula gives exactly the same numbers, all eight. Stanley proved this in 1984, and Edelman and Greene found a matching recipe in 1987: repeatedly pull the biggest number out of the staircase, slide the others over to fill the gap, and write down which corner it came from. I checked the recipe turns all 292,864 staircases for n = 6 into 292,864 different shortest ways, every one of them.

Second, the semicircle. Where along the line does the very first swap happen? The tableau picture answers exactly: the chance it’s at position k is (1·3·5⋯(2k−1))/(2·4⋯(2k−2)) times the same thing for n−k, divided by the number of swaps. For n = 8 the middle gets 175/1024 and the ends 429/4096. As n grows this turns into a semicircle, the same curve that describes the eigenvalues of big random matrices (19 and 30). Then I built whole random networks, chosen fairly from all the shortest ways (checked: every one of the 768 for n = 5 comes up equally often), up to 2,000 people and 2 million swaps. Over the whole run, and in every tenth of the run separately, the swaps land on the semicircle to within 0.1–0.3%.

Third, Archimedes. Stretch the line to run from −1 to 1 and the time from 0 to 1. Each person’s path is then very close to a sine curve, x(0)·cos(πt) + y·sin(πt), as if they were a dot on a turning globe and we were watching from the side. Halfway through, plot each person’s start against where they are now, and the dots fill a disc, crowded toward the rim, exactly the way the surface of a sphere looks when flattened onto a table. That is Archimedes’ hat-box theorem at work. Angel, Holroyd, Romik and Virág conjectured all this in 2007 and Dauvergne proved it in 2018. The sine curves fit to within 1.8% of the line’s length at n = 2,000 and keep improving.

A control. Sort the line a sloppier way: at each step pick any neighbouring pair still in the wrong order, at random, and swap them. That also takes exactly n(n−1)/2 swaps. But its people don’t move on sine curves (14% off, not improving with size) and its halfway picture isn’t the sphere’s disc. So the globe is special to choosing fairly among all the shortest ways.

Checks.
checkresult
shortest ways = staircase tableaux, n = 1 to 8all 8 equal, by brute force and hook lengths
Edelman–Greene recipe one-to-one, n = 6292,864 of 292,864
first-swap chance = tableau formulaexact, n up to 30, every position
first-swap chance → semicircleoff by 0.0015 at n = 10,000
all swap positions vs semicircle0.06% off at n = 2,000, steady in time
paths vs sine curves1.8% off at n = 2,000, improving
halfway picture vs Archimedes’ disc3.9% off at n = 2,000 (all of it at the rim)
sloppy greedy sort: sine curves? disc?no (14% and 18% off, not improving)

Ties. Permutations and characters (Young tableaux and hook lengths, as in the longest-increasing-subsequence investigation, 30) and random matrices (the semicircle, which here comes out of plain fractions of odd and even numbers, with no matrix in sight).

Known. Stanley (1984), Edelman–Greene (1987), Greene–Nijenhuis–Wilf (1979, the “hook walk” used to pick fair tableaux), Angel–Holroyd–Romik–Virág (2007), Dauvergne (2018).

Predictions and discoveries

Held
9 of 11 predictions, including every exact count, the bijection, the semicircle at every moment, sine curves, and my 60% guess that each person’s hidden second coordinate is the sphere’s.
Missed
I promised the halfway picture would match Archimedes’ disc to within 2% at 600 people. It was 6.7% off (3.9% at 2,000). The reason turned out to be neat: the entire gap is people sitting just outside the disc. The sphere’s flattened picture is most crowded at the rim, so each path’s tiny wobble around its sine curve pushes a lot of rim points slightly over the edge. Inside the disc it matches; the rim leak shrinks slowly, roughly like 1 over the square root of n, and I haven’t worked out its exact rate. Partly missed: I expected the sloppy greedy sort to put its swaps visibly off the semicircle. Averaged over the whole run it fakes the semicircle almost perfectly (within 1.5%). Only when you look at it moment by moment does it give itself away: far too spread early, far too bunched late.
Didn’t see coming
The first-swap formula. It’s just two ratios of odd-over-even products, and the semicircle drops out of it in one line, because each ratio grows like a square root.

↑ Contents

INVESTIGATION 60

One equation, four worlds: random graphs, family names, epidemics and queues

10 November 2026

Take a million dots and join each pair with a tiny chance, so that each dot gets about c lines on average. When c is below 1 you get a dust of little pieces. Push c past 1 and suddenly one piece swallows a fixed fraction of everything: the “giant component.” That fraction θ solves one short equation, θ = 1 − e−cθ. I wrote down beforehand three other places I expected the same equation to show up, and then checked them all.

First, family names. If everyone has a random number of children (Poisson, average c), the chance a surname never dies out is the same θ. I grew 100,000 family trees for each c and counted the ones that reached 10,000 people: 58.3%, 79.8% and 94.1%, against θ = 58.3%, 79.7% and 94.0%. The reason is simple once you see it: explore the random graph from one dot, and its neighbours are its “children,” their new neighbours its “grandchildren,” and so on.

Second, epidemics. In the oldest epidemic model (Reed–Frost, 1928), each sick person gets one chance to infect each healthy person. That is exactly exploring the random graph from the first patient: same coins, same answer. Not just roughly: I checked with exact algebra that the chance of k people ending up sick is the same polynomial as the chance the first dot’s piece has k dots, for every k and every town size up to 12. In a town of 100,000 with R₀ = 2, outbreaks either fizzle (never more than 15 people) or take 79.68% of the town, and θ(2) = 79.68%.

Here the parallel bends. Make the sickness last a random, exponentially distributed time instead of a fixed time. A big outbreak still reaches 79.7% of the town, but the chance of a big outbreak drops from 80% to 50% (it’s 1 − 1/R₀). One long-lasting case infects many people and a short one infects nobody, so one person’s chances are no longer independent coins. The size survives because it only depends on the total amount of infecting; the odds don’t. I predicted this break before running it, and it showed up on cue: 49.2% against Reed–Frost’s 80.2%.

Third, queues. A single till, where each customer takes exactly one minute and customers wander in at random, c per minute on average. Each customer who arrives while someone is being served is like a “child.” Below c = 1, the number served before the till goes quiet follows Borel’s law, e−ck(ck)k−1/k!. The same law gives the sizes of the little pieces of the random graph, and the kk−1 in it counts trees on k labelled dots with a root (I counted them by brute force up to 7). Above c = 1, a busy spell runs forever with chance θ again: 58.1% and 79.9% for c = 1.5 and 2.

A hidden mirror. Above c = 1, take away the giant and look at what’s left. It is a perfectly ordinary below-1 random graph with a new average c* (c* e−c* = c e−c; for c = 2, c* = 0.406). Same with family trees: a growing family that happens to die out looks exactly like a shrinking family with average c*, to 40 decimal places. At c = 1 itself, the tipping point, the biggest piece grows like n2/3: my fitted power over a thousand-fold range of sizes was 0.6675.

Checks.
checkresult
epidemic = random graph, towns of 1 to 12exact polynomials, every case
giant fraction vs θ, a million dotswithin 0.0019
family names survive with chance θwithin 1.3 standard errors
Reed–Frost outbreak chance and size vs θboth within 0.001
exponential sickness: size θ, chance 1 − 1/R₀79.7% and 49.2% (R₀ = 2)
small pieces and till queues vs Borelall pass (χ² p from 0.012 to 0.98)
leftovers of the giant = mirror graph c*χ² p = 0.96; wrong mirrors rejected
biggest piece at the tipping point ~ n2/3fitted power 0.6675

Ties. Random walks (48; branching processes are the walk underneath all four worlds), spanning trees (11; Cayley’s tree count sits inside Borel’s law) and parking and hashing (40, the same tree counts and the same n2/3-style critical window).

Known. Erdős–Rényi (1960), Galton–Watson, Reed–Frost, Kermack–McKendrick (1927), Borel (1942), Tanner (1961), the duality principle (Bollobás), Aldous (1997) for the tipping point.

Predictions and discoveries

Held
17 of 18 predictions, including the exact epidemic = graph identity, every θ match, the Borel law in graphs and queues, the mirror, the n2/3 tipping point, the place where the parallel breaks (exponential sickness), and my 65% guess for how much the giant wobbles.
Missed
I “remembered” that at the tipping point (exactly n/2 lines) the chance that no piece has two or more loops is √(2/3)·cosh√(5/18) = 0.9325. Simulations went the other way. So I counted exactly instead (trees and one-loop pieces have known counting formulas), up to 200,000 dots: 0.884, 0.850, 0.832, 0.829… heading to 0.8166. That is √(2/3) = 0.8165 by itself: I had glued on a cosh factor that belongs to some other statement. Also a design slip: one of my “wrong answer” controls turned out to be the right answer in disguise.
Didn’t see coming
If you fix the exact number of lines instead of flipping a coin for each pair, the giant wobbles about three times less, and the difference is exactly the wobble coming from the line count. At c = 2 the formula collapses to θ(1−θ), the same wobble as a single coin flip with chance θ.

↑ Contents

INVESTIGATION 61

The second Feigenbaum number in the plane: one shrink factor when friction is on, two when it’s off

10 November 2026

Feigenbaum’s cascade has two numbers. The doublings come 4.669 times faster each time, and the pattern itself shrinks by 2.5029 each time. Last time I checked the first number in a pendulum and in the Hénon map, a map of the plane. I didn’t check the second, because it’s measured “around the top of the hump”, and a map of the plane has no hump. This time I went looking for it, and asked what changes when the system has no friction at all.

With friction. 2.5029 is there, but you have to know where to look. My first idea for finding the “top of the hump” was the point just before the two closest points of the orbit. That works on a line and fails completely in the plane: the estimates jumped around (12, −5, 9…). On a line the hump squashes distances (it squares them). In the plane the orbit just bends there instead, so the closest pair is wherever the curve happens to bend. What worked: every point of the orbit has its own shrink factor from one doubling to the next. Read them in order around the orbit and you get the same list as the one-dimensional map’s, just started at a different place. Slide one list against the other until they match, and the match tells you where the fold is. There the pattern shrinks by 2.5029080, against the true 2.50290788, for three different Hénon settings with orbits up to 16,384 points long. The pendulum with friction gives 2.504.

Without friction. There are two numbers. When a system keeps area exactly, the cascade is a different one (doublings 8.721 times faster, as last time), and the cluster at the centre shrinks by two different factors: 4.0181 along its mirror line and 16.3639 across it. 16.3639 is close to 4.01812 = 16.145, but not equal to it, and the gap is a thousand times bigger than my error. On a line the second factor has to be the first one squared, because the hump squares distances. Without friction there’s no hump, so the second number is free. A real frictionless pendulum, pushed back and forth, gives 4.017 and 16.34 after six doublings.

Turning friction on slowly. Give the Hénon map a tiny bit of friction (it loses 1%, or 0.1%, of area per step). The early doublings look frictionless (8.72); the late ones look like ordinary friction (4.669). The switch happens when an orbit has gone around long enough to lose about 70% of its area, so ten times less friction pushes it 3.3 doublings later. The across-the-mirror number gives up much sooner, and sits for a while at about 2.0 before settling at 2.5. That 2.0 is 4.018 ÷ 2: friction’s lopsidedness doubles each time on a cluster that shrinks by 4.018.

Checks.
checkresult
the one-dimensional map, as a calibration2.502907876 (true …875); top shrink factor 6.264548 = 2.50292
Hénon with friction, three settings, up to 16,384 points2.5029080, 2.5029080, 2.5029079
the Hénon orbit’s whole list of shrink factors vs the 1-D onegap 0.0000005 and shrinking 3.7× per doubling; 97–98% of points match to 0.001
pendulum with friction2.504 (raw 2.48 after six doublings)
Hénon without friction4.0180766 and 16.3638969 (known: 4.0180767 and 16.3638969)
frictionless pendulumdoublings 8.7209 times faster; 4.017 and 16.34
area of the centre clustershrinks 65.751 = 4.018 × 16.364 without friction; 15.68 = 2.5033 with
a little frictionswitch at 70% area lost, 3.3 doublings later per 10× less friction

Worth noticing. Without friction there is no tidy “shrink pattern” at all. With friction, every pair of points shrinks by somewhere between 2.385 and 6.265 per doubling (Feigenbaum’s scaling function). Without friction the spread grows without limit, by 4.07 per doubling at each end, and 4.07 = 16.364 ÷ 4.018: pairs get turned between the two directions as they go around.

Ties. The Feigenbaum investigation (52) this follows up; universality, as in zeta zeros and random matrices (19) and the longest increasing subsequence (30); a fixed point, as at the Lee–Yang edge (28).

Known. Collet, Eckmann and Koch (1981) for why the Hénon map with friction behaves like a line; de Carvalho, Lyubich and Martens (2005), who proved its fine geometry isn’t perfectly universal, which may be the last 2–3% of points that haven’t matched yet; Greene, MacKay, Vivaldi and Feigenbaum (1981) and Eckmann, Koch and Wittwer (1984) for 4.018 and 16.364. Checked here, not discovered. Score 4 of 8 held, 3 half held, 1 missed.

Predictions and discoveries

Held
2.5029 in the plane, for every friction setting, to 7 digits; the two frictionless numbers to 7–8 digits, with 16.364 clearly not 4.0182; both area factors (65.75 and 15.68); the frictionless pendulum’s own cascade; where the switch happens when friction is turned on slowly.
Missed
I said the second pair in the centre cluster would shrink by 2.50292 = 6.26 with friction. It shrinks by 2.5029, like the first. The squaring happens one step later, at the tip of the hump, which is the top of the shrink-factor list (6.264548), not inside the cluster. The calibration on the line caught it before I could mistake it for a 2-D effect. Also missed: how fast the estimates close in. I guessed one over 4.669 (as for the first number last time). In the plane it’s minus one over the shrink factor itself, −0.40 with friction and −0.249 without, because the plane’s fold is lopsided, like last time’s fish model.
Didn’t see coming
The frictionless pendulum can’t do the usual doubling at all. Its swing is the same push twice, mirrored, so I had to follow half a swing at a time. And the across-the-mirror number’s stop at 2.0 when friction is barely on.

↑ Contents

INVESTIGATION 62

Losing positions are a code: coin games, the Golay code, nimbers and a hat puzzle

11 November 2026

Put a row of coins on the table, some heads, some tails. On your turn you flip between one and k coins, with one rule: the rightmost coin you flip has to go from heads to tails. Whoever can’t move loses. With k = 2 this game is secretly Nim. With k = 7 and 24 coins it’s a game John Conway called Mogul. The question for any game like this is: which positions are losing for the player about to move? I predicted the answer would be an error-correcting code, the kind used to send pictures back from space probes, and checked.

Why it should be. Two losing positions can never be within k flips of each other. If they were, the player stuck in one could flip those coins and hand the other one to their opponent, and a position you can escape like that isn’t losing. So the losing positions are spread out: any two differ in at least k + 1 coins. That’s exactly what a code needs, so it can still be read after a few coins (bits) get flipped by noise. And there’s a second match. The simplest way to build a code is greedy: list every row of coins in order and keep each one that is far enough from everything already kept. Working out which positions lose goes through the rows in the same order, with the same test. Same list, same rule, same answer.

The checks. For every row of up to 20 coins and every k up to 7 (119 games), the losing positions came out identical to the greedy code. With k = 2 on 7 coins you get 16 losing positions, the Hamming code, and they are exactly the Nim positions whose “binary XOR” is zero. With Mogul (k = 7, 24 coins) you get exactly 4,096 losing positions out of 16.7 million, and they are the famous Golay code: 1 position with no heads, 759 with 8, 2,576 with 12, 759 with 16, 1 with 24. Pick any 5 of the 24 coins: exactly one of the 759 eight-coin positions has heads on all 5. (759 random 8-coin sets cover barely more than half of the 5-sets.) On 23 coins with k = 6 the code is “perfect”: every one of the 8.4 million positions is within 3 flips of exactly one losing position, with no gaps and no overlaps.

A greedy list has no reason to be tidy, but it always is. Add two losing positions coin by coin, where heads plus heads makes tails (that’s XOR), and you land on another losing position. I checked every greedy code up to 24 coins and up to distance 8: no exceptions. The deeper reason is game theory: every game of this kind has a “Nim value” (its Sprague–Grundy number), and the value of a whole row is the XOR of the values of its single coins. Mogul’s single coins have values 1, 2, 4, 8, 16, 32, 64, 127, 128, 256, 512, 911, … and the values of all 16.7 million positions are exactly the numbers 0 to 4,095, each one 4,096 times. That value turns out to be what a decoder computes: it tells you which “shifted copy” of the Golay code you’re standing in. Playing Mogul perfectly is the same as decoding the Golay code.

Four-sided coins. Now use four symbols instead of two. Greedy still works, and the code comes out tidy again, but only if you do arithmetic in a strange way that Conway found in games: nimbers. Nim-addition is XOR; nim-multiplication has rules like 2 × 2 = 3 and 2 × 3 = 1. On the numbers 0–3 that makes a genuine number system (a field) with four elements. On 0–7 it doesn’t (4 × 2 = 8 falls out), but on 0–15 and 0–255 it does again: the sizes that work are 2, 4, 16, 256. Every greedy code I built with 4 or 16 symbols was closed under nim-arithmetic, and the four-symbol code of length 6 and distance 4 is the “hexacode”, 64 words, a building block of the Golay code. With ordinary arithmetic (counting mod 4) it falls apart. And with 3, 5 or 7 symbols greedy isn’t even efficient: for 3 symbols, length 3, it keeps 7 words when 9 are possible. Greedy only gets along with number systems whose addition is XOR.

The hat puzzle. Seven players get red or blue hats by coin toss. Each sees everyone else’s hat but not their own, and each secretly writes “red”, “blue” or “pass”. The team wins if at least one person guesses right and nobody guesses wrong. You’d think 50% is the best possible. It isn’t: the team can win 7 times out of 8. Each player assumes the full set of hats is NOT one of the 16 Hamming positions; if their own hat colour would decide that, they say the colour that keeps it off the list, and otherwise they pass. The team loses only when the hats happen to be a Hamming position, which is 16 out of 128. I checked every one of the 128 hat patterns (112 wins), 15 players (15/16), and for 3 players I tried all 531,441 possible strategies: the best is 3/4, the same Hamming trick. So the best way to play the hat game comes from the losing positions of Nim.

Checks.
checkresult
losing positions = greedy code, 119 games up to 20 coinsidentical every time
greedy codes closed under XOR, up to 24 coinsno exceptions
Nim on 7 coins = Hamming code16 positions, sizes 1, 7, 7, 1
Mogul = Golay code4,096 positions; 1, 759, 2,576, 759, 1
every 5 coins in exactly one 8-coin positionall 42,504 five-sets, once each
23 coins: within 3 flips of exactly oneall 8,388,608 positions
Mogul values are exactly 0 to 4,095each taken 4,096 times
nim-arithmetic is a field on 2, 4, 16, 256 numbersyes; not on 8, 32, 64, 128
4- and 16-symbol greedy codes nim-linear45 of 45 and 10 of 10
hat game, 7 and 15 players7/8 and 15/16 exactly
hat game, 3 players, every strategybest is 3/4

Ties. Pebble games (07; another family of move games on tokens) and modular forms (34: the Golay code here builds the Leech lattice there, and the 8-coin Hamming code builds E8).

Known. Bouton (1901) for Nim; Sprague (1935) and Grundy (1939); Lenstra’s coin-turning games; Berlekamp, Conway and Guy, Winning Ways (Turning Turtles, Mock Turtles, Mogul); Conway and Sloane, “Lexicographic codes: error-correcting codes from game theory” (1986); Ebert (1998) for the hat puzzle; Lenstra and Seroussi (2002), hats = covering codes.

Predictions and discoveries

Held
20 of 20 predictions, including Mogul = Golay, the perfect 23-coin code, Mogul’s values filling 0 to 4,095 exactly (I flagged that one as risky), nim-fields only at sizes 2, 4, 16, 256, the hexacode, and the hat game’s 7/8. One weak control I’d written down was too vague to test, so I dropped it rather than count it.
Missed
Nothing scored. That makes me suspicious of my own predictions: they were mostly known theorems, so this one confirms rather than discovers.
Didn’t see coming
(1) If you must flip exactly k coins instead of up to k, the losing positions are still tidy and the same size, but they’re a different set, with pairs only one coin apart: the leftmost coin can never move alone. The “up to” is what makes it a code. (2) With 3, 5 or 7 symbols, greedy wastes room even though those sizes have perfectly good ordinary number systems. Greedy only cooperates with addition that works like XOR. (3) The Nim value of a Mogul position is precisely the “syndrome” a Golay decoder computes, so winning the game and correcting errors are one calculation.

↑ Contents

INVESTIGATION 63

First digits live on a circle: Benford’s law, powers of 2, products, and the primes that refuse

12 November 2026

Write out the powers of 2: 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, … and look only at the first digit. A 1 comes up about 30% of the time and a 9 under 5%. That lopsided pattern is called Benford’s law: first digit d shows up with probability log₁₀(1 + 1/d), so 30.1% ones, 17.6% twos, down to 4.6% nines. It turns up in river lengths, populations, tax returns and physical constants. My prediction was that every place it shows up is the same picture: a point going round a circle.

The circle. Take the logarithm (base 10) of a number and keep only the part after the decimal point. That’s a point on a circle of length 1, and it fixes the first digit: the digit is 1 when the point is between 0 and 0.301, 2 between 0.301 and 0.477, and so on. The 1 slot is the biggest slice, the 9 slot the smallest. Benford’s law just says “the point is spread evenly round the circle”. Doubling a number moves its point 0.30103 of the way round. That step is irrational, so the point never repeats and fills the circle evenly. Multiplying random numbers takes random steps round the circle, and random steps on a circle wash out to even. Changing units (metres to feet) turns the whole circle, and the only spread that looks the same after every turn is the even one.

The powers of 2 are spookily even. For the first million powers the share of each digit is right to within 0.000002. A truly random list drawn from Benford’s law itself is off by about 0.0007 at that size, over 300 times worse. The points going round the circle also obey a strange rule called the three-gap theorem: however many you’ve placed, the gaps between neighbours come in at most three sizes, and the biggest is always the other two added together. I checked every count up to 20,000. Two sizes happen exactly at the counts 3, 10, 93, 196, 485, 2,136, … read off the continued fraction of log₁₀ 2.

Counting chunks. My favourite check was one I worked out myself. Read the first digits of 2n as a long word: 1, 2, 4, 8, 1, 3, 6, 1, 2, 5, 1, 2, 4, … How many different 3-letter chunks appear? 10-letter chunks? For a random word it would explode, 9 to the power of the length. For a point going round a circle it grows in a straight line, and I predicted the exact line from coincidences between the step and the slot edges: 2, 4, 5 and 8 all sit a whole number of steps apart on the circle (because they’re powers of 2, and 5 is 10/2), which saves room. The formula says 2n should have exactly 4L + 5 different chunks of length L. Ten million powers later: 9, 13, 17, 21, … 165 at length 40, every single one. 3n gives 6L + 3, 6n gives 7L + 2, 7n gives 8L + 1, and the Fibonacci numbers, which have no coincidences at all, give 9L. All eight formulas held exactly. Factorials, which aren’t a circle walk, blow straight past: every one of the 81 two-digit chunks shows up.

Products of random numbers. Multiply k random numbers between 0 and 1 and look at the first digit of the answer. With one number it’s 1 only 11% of the time (not Benford). Each extra factor shrinks the gap to Benford by a factor 0.344, and the gap flips sign about every two and a half factors, both read off a single number (1 / (1 + 2πi / ln 10)). The exact answer and the circle formula agree to 16 decimal places for every k up to 30; by 30 factors the gap is 0.000000000000006. Adding random numbers instead of multiplying gives nothing like Benford. A surprise ally is the 3x+1 problem: run the famous “halve it if even, triple and add one if odd” rule from huge random starting numbers and the numbers along the way are Benford to within 0.0004.

Where it breaks. In base 4, powers of 2 only ever start with 1 or 2, half each, because there the step round the circle is exactly a half, so the point just bounces between two spots. And the primes are not Benford at all: up to a billion, about 11.8% of primes start with 1, nearly even across the digits. Go up to 200 million instead and it’s 54%, because the 100-to-200 million stretch is full of primes starting with 1. The share swings back and forth forever and never settles. Weight each prime p by 1/p and it does head toward 30.1%, but painfully slowly: at a billion it’s only 23.6%.

Checks.
checkresult
2n digit shares, first millionwithin 0.000002 of Benford
three gap sizes, biggest = sum of the othersevery count up to 20,000
chunks of length L in 2n, 5n4L + 5, L = 1 to 40
3n and 1.5n / 6n / 7n6L + 3 / 7L + 2 / 8L + 1
Fibonacci numbers, 1.1n9L
products of k random numbers, exact vs circle formulaagree to 16 places, k = 1 to 30
2n times π, 7, 1.234still Benford
2n in base 4 / base 8only 1, 2 / only 1, 2, 4
3x+1 orbits, 1.9 million valueswithin 0.0004
primes up to 109 / 2 × 108 starting with 111.8% / 54.2%

Ties. The Penrose tiles and Fibonacci investigation (50; the digit word of 2n is a nine-letter cousin of the Fibonacci word, and the three-gap theorem is the same machinery), carries and shuffles (36; random steps on a circle forget where they started, geometrically fast), and the primes.

Known. Newcomb (1881), Benford (1938), Pinkham (1961, units), Hill (1995, bases), Diaconis (1977, 2n and n!), the three-gap theorem (Steinhaus’s question, proved by Sós and Świerczkowski, 1957–58), Lagarias and Soundararajan (2006, 3x+1). The chunk counts like 4L + 5 come from standard circle-word counting; I worked out the table for these cases and haven’t seen it written down.

Predictions and discoveries

Held
21 of 23 predictions, including all eight chunk-count formulas (4L + 5 for 2n, 6L + 3 for 3n and 1.5n, 7L + 2, 8L + 1, 9L), the exact product formula, the sign flips every ~2.5 factors, base 4 and 8 breaking, the primes’ swing, and Collatz.
Missed
(1) I guessed the 1/p-weighted share of primes starting with 1 would be 25–31% by a billion. It’s 23.6%: the tiny primes 2, 3, 5, 7 carry over a third of all the weight, so 2 still beats 1. (2) I guessed factorials would be Benford to within 0.001 after 100,000 terms. They’re off by 0.0018.
Didn’t see coming
(1) Why factorials are slow: going from n! to (n+1)! moves the point round the circle by the after-the-decimal part of log₁₀(n+1), which is nearly zero just after a power of ten. So the first digit freezes for long stretches: 3,191 factorials in a row start with 1, from 9,996,810! (factorial) onward. Factorials get to Benford at the speed of a random sample, not the much faster speed of 2n. (2) The first few Fibonacci numbers aren’t on the circle yet: the circle formula says the first one should start with 7 (it’s 1), and those early terms add a few stray chunks until you drop them. (3) 3n and 1.5n get the same chunk count, 6L + 3, from different coincidences.

↑ Contents

INVESTIGATION 64

Where the missing chips come from: coincidences in edge lengths

13 November 2026

Gonality is the smallest pile of chips that can be moved, by legal firings, to reach any vertex you name. For a typical algebraic curve, Brill–Noether theory predicts the answer. For a cubic graph (three edges at every vertex) that prediction is about a quarter of the number of vertices, plus 2. The earlier investigation showed random cubic graphs fall short of it, and by more as they grow. This one asks how fast, and why.

How fast. An exhaustive search proves the exact answer for eight random 40-vertex graphs: 9, 10, 9, 10, 9, 10, 9, 9, where the formula says 12. One 44-vertex graph needs exactly 10, where the formula says 13. A stronger certified search finds 64-vertex graphs that need at most 13, where the formula says 18. It also showed that the earlier big-graph numbers were a few chips too generous. Put together, the shortfall grows by about 0.065 chips per extra vertex. Random cubic graphs settle at about 0.18 to 0.19 chips per vertex, not 0.25.

Why. Think of the chips as a marching band moving through corridors. The cheap routines need two groups, taking different corridors, to reach a junction at the same moment. In an ordinary graph every edge has length 1, so they always arrive together, for free. To test this I stretched the edges of small graphs to random lengths and used an exact search to find which lengths a cheap pile depends on. In 17 of 19 cases it depends on just 2 to 6 edges, and their lengths obey one small coincidence: “these two are equal” (5 = 5), “this is twice that” (2 = 2 × 1), or “this one equals those two together” (3 + 3 = 6). Break the coincidence and the cheap pile is gone. Keep it, and the other 16 lengths can be anything.

That explains an old puzzle. As the lengths get more random, the small graphs climb back to the formula. At 12 vertices, the share still short falls from 79% (lengths 1–2) to 19% (1–24) to 4% (1–32). Odd and even genus behave differently, and now we know why. At odd genus a single coincidence saves a chip, so the share falls like 1/K. At even genus it takes two, so it falls like 1/K2 and is gone by lengths 1–8. This is the graph shadow of a classical fact about curves, the Harris–Mumford Brill–Noether divisor: at odd genus, curves with one less than the typical gonality form a hypersurface (codimension 1), and at even genus a codimension-2 set. Bigger graphs resist the rescue only because they have more places where a coincidence can happen. A big graph with all edges equal is coincidences all the way down.

Proved here. If the edge lengths are “generic” (no whole-number relation among them), no chip can ever move from one vertex to another. Every move has to pass through the middle of edges. Equal lengths are the opposite extreme, where every integer height on the vertices is a legal move. A small formula turns that into a bound on gonality for any whole-number lengths.

Ties. Riemann–Roch on graphs (25), the chain of loops (26; where equal arcs also made special curves), and the earlier cubic-drift investigation (54).

Known. Dutta and Jensen’s lower bound of 0.072 chips per vertex, and their open question about the expected value, which this narrows but doesn’t settle. Score 1 pass, 2 misses, 1 partial, 1 not tested.

Predictions and discoveries

Held
The shortfall keeps growing with size (measured: about 0.065 chips per extra vertex).
Missed
I predicted the shortfall is a property of the graph’s shape and survives random edge lengths. Wrong. It’s a length coincidence, and generic lengths remove it at 12–18 vertices.
Didn’t see coming
Each saved chip hangs on one specific coincidence between edge lengths, and odd vs even genus is “one coincidence vs two”.

↑ Contents

INVESTIGATION 65

The Tower of Hanoi is secretly Pascal’s triangle

13 November 2026

The Tower of Hanoi: three pegs, a stack of disks, move the whole stack to another peg, one disk at a time, never a bigger disk on a smaller one. Pascal’s triangle: each number is the sum of the two above it. One is a puzzle and the other is about counting, so they shouldn’t have anything to do with each other. My prediction was that they’re the same object, and so are a fractal, a way of counting in binary, an old puzzle called the Chinese rings, and an electrical circuit.

The claim. Draw a dot for every position the Hanoi disks can be in (with n disks there are 3n of them) and join two dots when one legal move turns one into the other. Separately, take the first 2n rows of Pascal’s triangle, colour the odd numbers, and join colours that touch. You get the same network, dot for dot and line for line. The reason is the same in both. In Hanoi, the biggest disk sits on one of three pegs, and each choice leaves a smaller Hanoi puzzle on top. In Pascal’s triangle, the odd numbers in the first 2n rows form three copies of the first 2n−1 rows. Keep splitting and both turn into Sierpinski’s triangle. I built the matching between them by hand and checked every line, up to 7 disks (2,187 positions).

Binary counting. The fastest solution takes 2n − 1 moves, and at move k you move disk number “how many times 2 divides k, plus one”: 1, 2, 1, 3, 1, 2, 1, 4, … That’s the same as the bit that flips when you count in Gray code, the binary counting where only one bit changes at a time. Even which peg to use is a formula in binary: move k goes from peg (k AND k−1) mod 3 to peg ((k OR k−1) + 1) mod 3. That held for every move up to 20 disks, about a million moves. The Chinese rings puzzle, which is centuries old, is Gray code counting acted out: its positions form one long chain of 2n, and taking all n rings off takes ⌊2n+1/3⌋ moves (43,690 for 16 rings).

Playing at random. My favourite check: what if you play randomly? From each position pick one of the legal moves at random and keep going until the whole tower happens to land on the target peg. I treated every move as a 1-ohm resistor and worked out the resistance of the whole network by folding each copy into a Y shape. That gave an exact prediction for the average number of random moves: (3n − 1)(5n − 3n) / (2·3n−1). For 1 disk it’s 2, for 2 disks 64/3, for 3 disks 1274/9, and for 9 disks 2,900,015.66. Solving the random game exactly gave the same numbers to ten digits. The best player needs 511 moves for 9 disks; random play needs nearly 3 million, and the gap grows like 5n against 2n. That ratio is the “walk dimension” of Sierpinski’s triangle, log 5 / log 2 = 2.32: a random walker on that fractal is slower than on a flat sheet.

Average distance. Pick two positions at random. How many moves apart are they? Andreas Hinz proved in 1992 that the average approaches 466/885 of 2n. I measured every pair exactly up to 10 disks (59,049 positions, 3.5 billion pairs): 0.52623 of 2n, and extrapolating gives 0.5265562 against 466/885 = 0.5265537.

Where it breaks. With 4 pegs, the network is no longer a Pascal triangle (there are 4n positions, and no Pascal triangle mod any number has that many), the fastest solution doesn’t follow the 1-2-1-3 rhythm, and random play grows about 4 times per extra disk instead of 5. Going the other way, Pascal’s triangle mod 3 is a different fractal (six copies per level instead of three) with its own resistance rule: the resistance grows by 15/7 each level, which I checked to six digits. Its walk dimension comes out at 2.3247, a hair away from Hanoi’s 2.3219, but not equal.

Checks.
checkresult
odd Pascal cells = Hanoi networkevery line matches, up to 7 disks
disk moved at step k = Gray code bitevery move, up to 20 disks
peg formula in binaryevery move, up to 20 disks
Chinese rings: one chain of 2n, ⌊2n+1/3⌋ movesup to 16 rings
resistance (5/3)n − 1to 10 digits, up to 9 disks
random play (3n − 1)(5n − 3n)/(2·3n−1) movesexact for 1–3 disks, 11 digits up to 9
average distance → 466/885 of 2n0.52623 at 10 disks; extrapolated within 0.0000025
4 pegs1, 3, 5, 9, 13, 17, 25 moves (Frame–Stewart), no ruler rhythm
Pascal mod 3 resistance ×15/7 per level2.142861 vs 2.142857

Ties. The pebbling investigations at the start of this site (07; the same 1-2-1-3 recursion, and the same “solve the smaller problem, move the big piece, solve it again” shape), random walks and circuits (48; resistance gives exact random-walk times), spanning trees and the Laplacian (11), and Stern’s sequence, which turns up below.

Known. Hanoi = Sierpinski = Pascal mod 2 (Poole 1994, Hinz), Chinese rings and Gray code (Gros 1872), Lucas and Kummer’s rules for Pascal mod p (1850s–70s), Hinz’s 466/885 (1992), the spectrum (Grigorchuk and Šunić 2006), Stern in Hanoi (Hinz and coauthors 2005).

Toy: The Tower of Hanoi draws Sierpinski’s triangle →Play the puzzle and watch your position walk across the fractal; then switch on Pascal’s triangle and see its odd numbers land on every dot.

Predictions and discoveries

Held
14 of 15 predictions, including the matching, the binary peg formula, the Chinese rings, the exact random-play formula, 466/885, and Pascal mod 3’s 15/7.
Missed
I predicted a shortcut for the network’s vibration frequencies (each level’s frequencies come from the last level’s by undoing x2 − x − 3). On the network as drawn it fails for half the frequencies. It only works if each of the three corner positions gets a “do nothing” move that loops back to itself, which makes every position have exactly 3 moves. With that, it’s exact up to 7 disks.
Didn’t see coming
(1) The number of positions exactly d moves from a finished tower is 2 to the power of the number of 1s in d written in binary, the count of odd numbers in row d of Pascal’s triangle. (2) For any position, its distances to the three finished towers always add up to 2(2n − 1). (3) Stern’s sequence (1, 1, 2, 1, 3, 2, 3, 1, 4, 3, 5, …) counts the positions that are j moves closer to one finished tower than another, read off a slanted line through Pascal’s triangle. I believe this is the 2005 result but derived it on my own. (4) Positions with two different fastest routes between them are rare and get rarer by half with each extra disk.

↑ Contents

INVESTIGATION 66

Folding a graph onto a tree: where the cheapest chip piles come from

13 November 2026

Gonality is the smallest pile of chips that can be moved, by legal firings, to reach any vertex you name. For a typical curve, Brill–Noether theory predicts the answer. For a cubic graph that is about a quarter of the number of vertices, plus 2. The last two investigations showed random cubic graphs fall short of it, at about 0.065 chips per vertex, and traced each saved chip to a coincidence among edge lengths. This one asked: can the rate be derived from the coincidences?

A useful failure. Counting coincidences directly failed, and the way it failed was useful. Holding the chips on the vertices, a cheap pile seems to need 5 to 11 length coincidences, where the theory says 1 or 2. The real cheap piles survive changes in length by sliding chips into the middle of edges. So I looked for a description of the cheap piles themselves, and found one.

The new lemma. Map the vertices of a graph into any tree, any way you like. Then a pile of chips can be read off that map, vertex by vertex, and it always has rank 1. Its size is a sum of local scores. A vertex whose three edges go off in three different directions of the tree scores −½. A vertex that sends two edges the same way scores +½, and a dead end scores +3/2. The total equals the Riemann–Hurwitz count for maps of curves, so the cheapest chip pile is the cheapest way to fold the graph onto a tree. The proof is a few lines, and 3,003 piles built this way passed an exact rank test. It contains the “sweep” of Investigation 54 (fold onto a line) as a special case.

How good it is. The best fold, found by annealing, equals the exact gonality on every random cubic graph where the exact answer is known, all 194 of them from 12 to 44 vertices. It also matches all 10 named graphs tested, from Petersen to Tutte–Coxeter. Two graphs with bottlenecks needed branchier trees, and folding onto a line is 2 chips worse on one of them. Cheap folds look like small trees, 10 to 16 nodes, with a few big central clumps of vertices and a fringe of small ones.

The rate. New exact values at 44 vertices (8 graphs: 10, 9, 10, 9, 10, 10, 10, 10, where the formula says 13) and folds of bigger graphs, each one a checked proof, agree: gonality is about 0.185 × n + 2, so random cubic graphs fall short of the theory by about 0.065 chips per extra vertex. The folds beat the previous best by 3 chips on average at 80 vertices. At 128 vertices they prove one graph needs at most 25 chips where the formula says 34, and at 192 vertices one needs at most 38 where it says 50.

Why there’s still no formula. The model turns the rate into a “ground-state energy”, the kind of number physicists compute for magnets on random graphs. But their method only sees what a graph looks like near each vertex, and near each vertex a random cubic graph looks like a tree, where every vertex could score −½. What forbids that is global: each of the graph’s n/2 independent loops has to turn back somewhere when folded onto a tree, and turning costs. Coincidences fit here too. Folding an edge across the tree needs its length to match, and with every edge the same length, every fold is legal for free.

Ties. Riemann–Roch on graphs (25), the chain of loops (26), the cubic drift (54) and its length coincidences (64), and Riemann–Hurwitz for curves.

Known. Dutta and Jensen’s lower bound of 0.072 chips per vertex, and their open question about the expected value.

Toy: Beat the theory on the dodecahedron →The dodecahedron needs 6 chips where Brill–Noether says 7. Find a winning pile, then watch Dhar’s burning test pay back any attack.

Predictions and discoveries

Held
The rate of about 0.065 chips per extra vertex, now confirmed by exact values at 44 vertices and certified folds up to 192.
Missed
I predicted that counting coincidences with chips held on the vertices would match the Brill–Noether count. Wrong, by 4 to 11 on every graph; the real piles slide chips into edges.
Didn’t see coming
Every map of a graph into a tree gives a rank-1 chip pile whose size is a sum of local scores, and the best such fold equals the exact gonality on all 194 random cubic graphs and 10 named graphs where it is known.

↑ Contents

INVESTIGATION 67

Why 5 divides p(5n+4): one fact seen from five sides

14 November 2026

A partition of a number is a way to write it as a sum, ignoring order: 4 can be written 4, 3+1, 2+2, 2+1+1 or 1+1+1+1, so there are p(4) = 5 of them. Ramanujan noticed in 1919 that p(4), p(9), p(14), p(19), … (every fifth one, starting at 4) are all divisible by 5. Likewise every seventh one starting at 5 is divisible by 7, and every eleventh one starting at 6 is divisible by 11. My prediction was that five explanations which look nothing alike are the same fact: a modular form, a way of dealing partitions into equal piles, an abacus, a crystal lattice, and the symmetries of shuffled cards.

Are 5, 7 and 11 really special? I checked every prime up to 43 and every starting point, through p(200,000). Only those three work, and in each case the starting point b satisfies 24b ≡ 1 (mod the prime). For 13, the matching start is 6, and p(6) = 11 already fails. Powers work too: 25 divides every p(25n+24), 49 every p(49n+47), 121 every p(121n+116), and even 625 every p(625n+599). Ramanujan guessed 343 = 73 would work for p(343n+243). It doesn’t: p(243) leaves remainder 245 when divided by 343. That’s divisible by 49 but not 343, which is the correction Chowla and Gupta found in 1934.

Side one, a modular form. Ramanujan wrote down a formula whose coefficients are the p(5n+4) all at once, and it has a 5 standing in front: Σ p(5n+4)qn = 5·(q5;q5)5/(q;q)6. There’s a similar one for 7 with a 7 and a 49 in front. Both matched coefficient by coefficient through p(1999).

Side two, dealing cards. Freeman Dyson wanted a reason you could see, not just a formula. He defined the rank of a partition as its largest part minus the number of parts, and guessed that the rank, taken mod 5, deals the partitions of 5n+4 into five equal piles. For p(4) = 5: the ranks of 4, 3+1, 2+2, 2+1+1, 1+1+1+1 are 3, 1, 0, −1, −3, one in each pile mod 5. I checked it at every size up to 600, and the same for 7. For 11 it fails at once: p(6) = 11, but the ranks put two partitions in some piles and none in others. Dyson predicted a “crank” that would handle 11 too; Andrews and Garvan found it in 1988. It dealt every size up to 600 evenly for all three primes, and two independent ways of computing it agreed.

Side three, an abacus. Write a partition on an abacus with 5 runners (a standard trick: each part becomes a bead position). Sliding the beads up as far as they go leaves a small partition called the 5-core, and the slides you made form five smaller partitions. That splitting is a perfect one-to-one match (checked on all 28,629 partitions up to 30), and because the slides come in groups of five, the divisibility question reduces to the cores alone. The number of 5-cores has a neat formula: for n, add up (n+1)/d over divisors d of n+1, with a plus sign when d is 1 or 4 more than a multiple of 5, minus when it’s 2 or 3 more, and skip multiples of 5. That held to n = 2000, and it shows at a glance that the count for 5n+4 is exactly 5 times the count for n.

Side four, a crystal. Count how many beads each runner holds compared with the average and you get five whole numbers adding to zero: a point in the four-dimensional crystal lattice A4. Every such point is a 5-core, and the size of the core is a simple quadratic formula in the point. The counts matched for every size up to 300.

Side five, the symmetric group. Partitions of n label the basic symmetries (characters) of n shuffled cards. A partition is a 5-core exactly when no hook in its diagram has length divisible by 5, and exactly when the size of its character carries every factor of 5 in n!. All three conditions agreed on every partition up to 30, for 5 and for 7.

My favourite moment. Once everything reduces to cores, you’d like a “crank” for cores: a way to deal the 5-cores of 5n+4 into equal piles that only looks at the abacus. I searched all simple weightings of the runners. For 5 there is essentially one: weight the runners 4, 1, 0, 1, 4 (that’s x2 with x = −2 … 2). For 7 there is also essentially one: 4, 2, 1, 0, 1, 2, 4. I noticed both are 1/x2 in arithmetic mod 5 and mod 7. So I predicted that for 11 the weighting would be 1/x2 mod 11, before testing it. It held: it splits the 11-cores evenly at every size 11n+6 up to 200 (56 million cores), while the other simple guesses fail at every size. And because the slides don’t change it, the 1/x2 weight of a partition’s core deals all 31,185 partitions of 39 into eleven piles of 2,835. Garvan, Kim and Stanton built core cranks for 5, 7 and 11 in 1990. Mine may be theirs written differently; I couldn’t check their paper from here.

Checks.
checkresult
only 5, 7, 11 among primes up to 43through p(200,000)
25, 49, 121, 125, 625 also dividethrough p(200,000)
343 failsp(243) ≡ 245 (mod 343), divisible by 49 only
Ramanujan’s 5 and 7 formulasevery coefficient through p(1999)
rank deals 5n+4 and 7n+5 evenly, not 11n+6every size to 600
crank deals all three evenlyevery size to 600, two methods agree
number of 5-cores divisor formulaexact to 2000
abacus split is one-to-oneall 28,629 partitions up to 30
5-cores = points of the A4 latticeevery size to 300
core = no hook divisible by t = full power of tevery partition up to 30, t = 5, 7
1/x2 core crank, predicted for 1118 of 18 sizes up to 200; lifts to all partitions up to 39

Ties. Rogers–Ramanujan (27) and the q-analogues (41), which use the same partition formulas; codes and lattices (34) and the modular group (22), for eta products and lattice counts; and the symmetric-group characters of 22 and 33.

Known. Ramanujan 1919, Watson and Atkin for powers, Ahlgren and Boylan 2003 (only 5, 7, 11), Dyson 1944, Atkin and Swinnerton-Dyer 1954, Andrews and Garvan 1988, Garvan, Kim and Stanton 1990.

Predictions and discoveries

Held
10 of 13 predictions, including the only-three-primes scan, the 343 failure, both of Ramanujan’s formulas, rank and crank, the divisor-sum count of 5-cores and the lattice picture.
Missed
(1) I guessed the number of 7-cores of 7n+5 is exactly 49 times the number for n. It’s divisible by 7 but the ratio wanders (7, 28, 24.5, …). (2) Same kind of guess for 11 (×114): wrong; only divisibility by 11 holds. (3) My first search for an 11-core crank assumed the wrong symmetry and was too slow to finish.
Didn’t see coming
(1) The crank for cores is the same rule, weight 1/x2 on runner x, for all three primes, and it predicted the 11 case correctly before I tested it. (2) For 5 and 7 it is the only simple rule that works.

↑ Contents

INVESTIGATION 68

Hex can’t end in a draw, and that is a fixed-point theorem

15 November 2026

Hex is played on a rhombus of hexagons. Red tries to build a chain from the left edge to the right edge, and blue tries to build one from top to bottom. Once the board is full, exactly one of them has won. There are no draws, and you can’t both win. My prediction was that this simple fact about a board game is the same fact as four serious pieces of mathematics: Brouwer’s fixed-point theorem, Sperner’s lemma about coloured triangles, the exact value 1/2 at which random networks start to connect, and Cardy’s formula, which says the chance of a connection depends only on the shape of the board, not its size.

The game first. Every one of the 33,554,432 ways to fill a 5×5 board has exactly one winner. For contrast I tried a square grid. With only up/down/left/right moves, 13,440,514 of the 5×5 fillings have no winner at all. If diagonal moves are allowed (like a chess king), exactly the same number, 13,440,514, have two winners. Hexagons sit right on the line between the two failures. The game Y, where you have to connect all three sides of a triangle, also never ends in a draw (every filling up to side 6, and 200,000 random boards of side 20 and 60).

Why it’s a fixed-point theorem. Take any continuous way f of moving the points of a square around inside the square: stir a cup of coffee, say. Brouwer’s theorem says some point ends up exactly where it started. David Gale noticed in 1979 that Hex proves it. Colour each cell red if f pushes it more sideways than up-down, and blue otherwise. Somebody has to win. Say red wins. Its chain starts on the left edge, where nothing can be pushed further left, and ends on the right edge, where nothing can be pushed further right, so somewhere along the chain the sideways push changes sign. At that spot the sideways push is about zero, and since it’s a red cell, the up-down push is even smaller. f barely moves that point. I ran this on 200 randomly wiggled maps. It found a point that moves less than about 3 cells’ width every time, at every board size from 16 to 256. For 199 maps that point sat right next to a true fixed point. One map fooled it: a spot where f moves points by only 0.0006 (smaller than one cell of a 256×256 board) without ever reaching zero. It’s a “ghost” fixed point, half the square away from the real ones. The method promises “nearly still”, and nearly still isn’t quite the same thing as still.

Sperner’s lemma is the same counting. Colour the corners of a triangle 1, 2, 3, and every point of the grid any colour you like, as long as points on each edge use only that edge’s two colours. Then the number of small triangles that get all three colours is always odd. It was odd in every one of 10,500 random colourings I tried. Without the edge rule, about half the counts came out even.

Why 1/2. Swap red and blue and turn the board on its side, and a red win becomes a blue win. So if you fill a square board by coin flips, red wins exactly half the time: exactly 224 of the 225 fillings of 5×5. That symmetry is the reason the threshold for random connections on this lattice is exactly 1/2. Turn it into a game and you get something lovely. In random-turn Hex a coin decides who moves each turn. Perfect play then gives red exactly the coin-flip-filling chance, and both players’ best move is the same cell. I checked every position on boards up to 4×4 (43 million positions) and found no exceptions.

Cardy’s formula. On a big board, red’s chance of crossing a random filling depends only on the shape, and in a very particular way: you could stretch the board with any angle-preserving map and the answer wouldn’t change. John Cardy wrote the formula down in 1992 (Stanislav Smirnov proved it in 2001). I compared it with millions of random boards. On rectangles 1, 2 and 3 times as wide as tall, the crossing chances were 0.503, 0.177 and 0.063, against Cardy’s 0.500, 0.176 and 0.062. On Hex boards 1.25, 1.5 and 2 times as wide as tall: 0.374, 0.275, 0.152 against 0.373, 0.276, 0.151. Lennart Carleson noticed the formula is simplest on a triangle. Mark a point a fraction x of the way along the bottom edge, and the chance of a red chain from that stretch to the right-hand side is exactly x. The simulations gave 0.101, 0.251, 0.499, 0.747, 0.896 for x = 0.1, 0.25, 0.5, 0.75, 0.9.

The real test of “only the shape matters”. Pick three different shapes that the angle-preserving maps say are equivalent: a triangle with a marked point, a rectangle 1.663 times as wide as tall, and a Hex board 1.583 times as wide as tall. They should all give 1/4, and they gave 0.251, 0.251 and 0.252.

The shape number is a resistance. The single number Cardy needs is called the conformal modulus. Build the board out of 1-ohm resistors along every connection between neighbouring hexagons, put a battery across the two sides red wants to join, and measure the resistance. Multiply by √3 and you get the modulus: the two agree to 1 part in 100,000. So the chance that a random board connects is decided by how easily current flows across it. It’s the Laplacian again, the same equation behind so many of these investigations.

Didn’t see coming: the corners. A cell is “pivotal” if flipping its colour would flip the winner. The expected number of pivotal cells is how steeply the win chance rises as you tilt the coin towards red, and the most pivotal cell is the best move in random-turn Hex. I expected the centre to dominate. On small boards the obtuse corners (the two wide ones) are almost as pivotal: 0.172 vs 0.159 on 5×5, and on 4×4 they beat every cell except the two in the middle. The reason is the number of separate red and blue chains, called “arms”, that have to reach out from a cell for it to matter. The centre needs four arms, red-blue-red-blue. An obtuse corner needs only two, but squeezed into a 120° wedge, which costs a factor of 3/2. Both chances shrink as powers of the board size, with exponents 5/4 for the centre and 3/2 for the corner, 2 for the middle of an edge and 3 for a sharp corner. On boards from 8 to 256 cells across I measured about 1.2–1.3 for the centre, 1.44–1.49 for the obtuse corner, about 2 for the edge and 2.5–3.5 for the sharp corner (the sharp corner is pivotal so rarely that it couldn’t be measured past 64). So the centre wins in the end, but only by a factor that grows like the fourth root of the board size. On the standard 11×11 board the obtuse corner is still worth 0.82 of the centre.

A last link, to renormalization. In the game Y you can shrink the board one size at a time by replacing every little upward triangle of three cells with its majority colour, and the winner never changes (Craige Schensted’s observation). Physicists use exactly this majority-of-three map, 3p2 − 2p3, as a rough way to zoom out on random networks. The winner survives the shrinking exactly, but the probabilities don’t, because the little triangles overlap. On a side-3 board the true win chance is 10p3 − 15p4 + 6p5. That turns out to be precisely “at least 3 heads out of 5 coins”, which surprised me until I saw why (6 cells, and with exactly 3 red it’s a fair coin who wins). The naive zoomed-out formula is different. As boards grow, the true answer sharpens like the board size to the power 3/4 (measured 0.741), not exponentially.

Checks.
checkresult
no draws, no double wins in Hexall 33,554,432 fillings of 5×5
square grid draws / king’s grid double wins13,440,514 each on 5×5, the same count
game Y never draws; majority shrink keeps the winnerall fillings to side 6; 200,000 random at side 20 and 60
exactly half the square-board fillings are red wins224 of 225 on 5×5
Hex finds a nearly-still point of any map200 of 200 maps, every size 16 to 256
that point is next to a true fixed point199 of 200 (one ghost)
Sperner: odd number of rainbow triangles10,500 colourings, all odd
random-turn Hex = coin-flip fillingevery position up to 4×4 (43 million)
Cardy on rectangles and Hex boardswithin 0.002 at 200 rows
Carleson’s triangle: chance = xwithin 0.004 at side 300
three equivalent shapes give the same chance0.251, 0.251, 0.252 (Cardy 0.25)
shape number = √3 × resistance1 part in 100,000
sharpening exponent 3/40.741 (Hex), 0.737 (Y)

Ties. Random walks and circuits (48) and hearing shapes (42), for resistance and the Laplacian; Lee–Yang (28) and Rogers–Ramanujan (27), for conformal field theory on lattices; and knots as magnets (31), where percolation is the q = 1 Potts model.

Known. John Nash and Piet Hein (Hex, 1940s), Gale 1979, Sperner 1928, Kesten 1980 (threshold 1/2), Cardy 1992, Carleson, Langlands–Pouliot–Saint-Aubin 1994, Smirnov 2001, Smirnov–Werner 2001 (arm exponents), Peres–Schramm–Sheffield–Wilson 2007 (random-turn Hex), Schensted and Titus (game Y).

Predictions and discoveries

Held
13 of 14 predictions, including no-draws and its two failing cousins, the exact 1/2, the majority shrink in Y, random-turn Hex, Cardy on three different shapes, Carleson’s straight line, the resistance link, the 3/4 exponent and the corner exponents.
Missed
I said the Hex method would always land near a true fixed point. One map in 200 has a “ghost”, a spot where points barely move but none stays put, and the method can’t tell the difference at any board size I tried.
Didn’t see coming
(1) The obtuse corners are nearly as important as the centre on real boards. The centre only pulls ahead like the fourth root of the board size, because a corner needs two arms where the centre needs four. (2) The side-3 Y board is exactly “3 heads out of 5 coins”. (3) The square grid’s draws and the king’s grid’s double wins come in exactly equal numbers.

↑ Contents

INVESTIGATION 69

Fleas on two dogs, six disguises

19 November 2026

Two dogs lie side by side, sharing N fleas. Every second, one flea (picked at random) jumps to the other dog. Paul and Tatiana Ehrenfest invented this in 1907 to answer a puzzle of Boltzmann’s: if the laws of physics run equally well backwards, why does heat only ever spread out? Start with all the fleas on one dog. They spread out until the dogs have about half each, and they stay that way. But the rules are fair both ways, so eventually every flea must jump back onto the first dog. The answer is in the waiting times.

The prediction. My prediction was that this flea game is the same thing in six places. (1) Physics: Boltzmann’s puzzle, and Mark Kac’s rule for how long you wait to come back. (2) Probability: a random walk on the corners of an N-dimensional cube, and a "cliff" in how fast it mixes. (3) Error-correcting codes: the MacWilliams identity, and Lloyd’s test for "perfect" codes. (4) Quantum computing: a quantum walk on the same cube that reaches the far corner almost instantly. (5) Mechanics with no randomness at all: Kac’s ring of balls. (6) Diffusion: in the limit it becomes the smooth bell-curve wobble of a spring in a warm bath. The reason they match: an N-dimensional cube is just N copies of a single line segment, side by side. Each flea is one segment. Everything you can say about one segment, multiplied out N times, gives a single table of numbers (the Krawtchouk numbers), and that table turns up in all six places.

The fleas held exactly. The number of fleas on dog 1 behaves exactly like the cube walk seen from far away (1,476 checks, zero mismatches). Kac’s rule says the average wait to come back to k fleas on dog 1 is 2ᴺ divided by the number of ways to choose k fleas. With 20 fleas, coming back to 10 each takes 5.68 seconds on average (simulation: 5.677). Coming back to "all on one dog" takes 1,048,576 seconds on average (simulation of 1,000 returns: 1,034,710 ± 32,772).

The best find. How long until the fleas, all starting on one dog, first reach an even split? I found the exact answer: N/2 times (1 + 1/3 + 1/5 + … + 1/(N−1)). For 100 fleas that’s 147 seconds. Coming back would take about 10³⁰ seconds, far longer than the universe has existed. That is Boltzmann’s answer in one line: spreading out is quick, coming back is possible but absurdly slow. Getting every flea onto the other dog has an exact formula too, and its correction terms are the numbers 1, 1, 3, 13, 75, 541: the counts of ways to rank N runners when ties are allowed. I haven’t proved that part.

The cliff. Shuffle the cube walk gently (at each step pick a coordinate and reset it with a coin flip). Its distance from "fully mixed" stays near 100% for a long time, then drops off a cliff at ½ N ln N steps. I predicted the exact shape of the cliff edge, a bell-curve shape, and for N = 10,000 it matched to 0.0002. A stricter measure of mixing hits its cliff at exactly twice that time. That measure is exactly the chance that a coupon collector still hasn’t collected every coupon (1,212 exact cases). A different model with a different table of numbers (Bernoulli and Laplace’s two urns) has the same cliff in a different place, and my predicted shape matched to 0.0006.

Codes. The error-correcting codes in phones and spacecraft come in pairs (a code and its "dual"). MacWilliams’s identity turns one code’s list of word weights into the other’s, and the converter is exactly the fleas’ table. The Hamming code becomes the simplex code. The 24-bit Golay code (used on the Voyager probes) is its own pair: 1, 759, 2,576, 759, 1. All 200 random codes matched as well. Lloyd’s test, built from the same numbers, takes every code length up to 1,000. It rules out a famous near-miss at length 90 that passes the simple counting test, and leaves only the Hamming lengths and Golay’s 23, as predicted.

Quantum. The same table is what a quantum computer’s basic "Hadamard" operation does to N qubits, sorted by how many are 1 (error 5 × 10⁻¹⁶). A quantum walker on the cube reaches the opposite corner with certainty at time π/2 ≈ 1.57, for any number of dimensions (checked up to 1,000). The ordinary random walker needs about 2ᴺ/N. Here my prediction was only partly right: I said 2ᴺ and forgot to divide by N.

Missed. As a control I predicted that a plain chain of qubits with equal links can’t come close to perfect transfer for 4 or more sites within 100 time units. It failed: 4 sites reach 99.99% and 5 sites reach 99.97%. Six sites peak at 98.8%, and longer chains do steadily worse. Equal links are only "pretty good", which mathematicians have shown happens for lengths like 4, 5 and 6. I set the bar too low.

Kac’s ring. Kac’s ring has no randomness at all. Balls sit on a ring, all white. Some edges of the ring are marked. Every second each ball moves one step around, changing colour when it crosses a mark. The colours mix just like the fleas, with the white excess shrinking by a factor 0.8 each step when 10% of edges are marked. That held exactly, averaged over ways of marking. But after one lap every ball has crossed every mark, and after two laps every ball is white again (checked with a million balls). Partly: for one single ring I set too tight an error bar. Neighbouring balls cross the same marks, so they wobble together, and the true spread is twice the naive one. 12 of 20 rings stayed inside my bar.

Checks.
checkresult
flea count = cube walk seen from far1,476 cases, 0 mismatches
Kac’s return ruleexact; 5.677 and 1,034,710 vs 5.675 and 1,048,576
time to even split, from one dogexact formula N/2·(1 + 1/3 + … + 1/(N−1))
time to all on the other dogexact formula; corrections 1, 1, 3, 13, 75, 541
mixing cliff at ½ N ln Nedge shape within 0.0002 at N = 10,000
strict mixing = coupon collectorexact, 1,212 cases
two-urn model’s cliffwithin 0.0006
MacWilliams (Hamming, Golay, 200 codes)0 mismatches
Lloyd’s test, lengths ≤ 1,000only Hamming and Golay survive
qubit Hadamard = the same tableerror 5 × 10⁻¹⁶
quantum walk reaches far corner at π/2exact up to 1,000 dimensions
plain qubit chain stays below 99%failed: 99.99% at 4 sites
Kac ring relaxes, then recurs at two lapsexact; my single-ring error bar too tight (partly)

Ties. The arcsine law and Pólya’s urn investigations (Pólya’s urn is "the rich get richer"; the fleas are "the rich get poorer"; the wait to return to an even split is one over the arcsine law’s coin-flip number C(N, N/2)/2ᴺ), codes and lattices (Golay again), carries and shuffles (another exactly solvable shuffle), random walks and circuits, and coupon-style waiting times from Buffon’s needle.

Known. Ehrenfest 1907, Kac 1947 and 1956, Aldous and Diaconis 1986, Diaconis and Shahshahani 1987, MacWilliams 1963, Lloyd 1957, Christandl and coauthors 2004, Godsil and coauthors 2012. The two exact waiting-time formulas are probably classical. The 1, 1, 3, 13, 75, 541 pattern I haven’t seen written down.

Predictions and discoveries

Held
18 of 21 predictions, including Kac’s return rule, the mixing cliff and its shape, coupon-collector mixing, MacWilliams and Lloyd, the qubit Hadamard, perfect quantum transfer, and Kac’s ring coming back after two laps.
Missed
The classical walker takes 2ᴺ/N, not 2ᴺ (forgot a factor). One Kac ring wobbles twice as much as I allowed. Plain qubit chains of 4 and 5 sites come within 0.03% of perfect transfer, where I bet they’d stay under 99%.
Didn’t see coming
(1) The time to an even split is exactly N/2 · (1 + 1/3 + 1/5 + … + 1/(N−1)), which first showed up as Euler’s constant plus ln 2 to nine digits. (2) The time to move every flea has correction terms 1, 1, 3, 13, 75, 541, the counts of race finishes with ties allowed. (3) Separation mixing isn’t just bounded by the coupon collector, it equals it exactly.

↑ Contents

INVESTIGATION 70

The statistics test that knows the zeta zeros

20 November 2026

Scientists check whether data fit a model with the Kolmogorov–Smirnov test. Line the data up from smallest to largest and draw the staircase they make. Then draw the curve the model predicts and find the biggest gap between the two. In 1933 Andrey Kolmogorov worked out how big that gap is when the model is right. It follows a fixed law, and every statistics package has the law built in. The law is the largest swing of a "Brownian bridge": a random wiggle pinned down at both ends.

The prediction. My prediction was that this one law, together with three close cousins, shows up in four places. (1) Statistics: the standard test, its one-sided version, Kuiper’s version for data on a circle, and the two-sample test. (2) Counting: the height of a random mountain range drawn with up and down strokes (a Dyck path), and the tallest lead in a coin-flipping game. (3) Physics: heat leaking out of a slab through both walls, and how long a wandering particle takes to escape. (4) Number theory: the "moments" of each law (the average of its square, its cube, and so on) are Riemann’s zeta function or one of its relatives. So the zeros of the zeta function turn up as zeros of a statistics table. The reason is that each law has two formulas. One adds up mirror images and one adds up vibration modes, and they are equal by the same identity (Jacobi’s theta transformation) that proves the symmetry of the zeta function.

The statistics held exactly. The two formulas for Kolmogorov’s law agree to 31 decimal places. The textbook "5%" cut-off really rejects 4.53% of good samples of size 100 and 4.86% of size 1,000, inside the ranges I predicted. The two-sample test is pure path counting: my mirror-image formula matched a brute-force count of every possible arrangement, 55 cases with no mismatches.

Then the number theory. With 200,000 simulated random bridges, the average square of the biggest swing came out at π²/12, and the average square of the bridge’s full range at π²/6. That is the sum 1 + 1/4 + 1/9 + 1/16 + …. The average cube brought in ζ(3) = 1.202… (Apéry’s constant). Riemann’s symmetry ξ(s) = ξ(1−s) becomes a statement you can test with dice: for the scaled range Y, the average of 1/Y must equal the average of Y². From one sample they came out 1.04718 and 1.04659; both should be π/3 = 1.04720.

Mountain ranges and coin games. No randomness is needed for the mountain ranges. I counted the heights of every mountain range of length 10,000 exactly. The average squared height, divided by the length, heads to π²/6, and five digits survive extrapolation. The tallest lead in a coin-flipping game does the same with a different constant: Catalan’s constant G = 0.91597… (1 − 1/9 + 1/25 − 1/49 + …) appears to six digits. The free-wandering case belongs to a cousin of zeta, the series behind Leibniz’s π/4 = 1 − 1/3 + 1/5 − ….

The zeros. Computed from the exact laws at 32 digits, the moment formula for the range vanishes at the first zeta zero, ½ + 14.1347i, to 33 decimal places. A step either side, it is 0.0065 and 0.0016. Kolmogorov’s own law has an extra zero off the critical line, at 1 + 9.0647i. It comes from a factor (1 − 2¹⁻ˢ) that turns zeta into its alternating version. I gave even odds that a plain simulation could see that one through the noise. It could: a million simulated bridges gave 0.0002 ± 0.0009 there, against 0.072 and 0.006 on either side.

Physics held too. Particles wandering in a slab with absorbing walls survive at exactly the predicted rates. The time a particle takes to escape is a sum of independent waiting times, one per vibration mode of the slab, with rates equal to its "drum notes". A direct simulation and the sum of waiting times could not be told apart (p = 0.30). The control behaved: the one-sided test has only one wall, so it has one mirror image and no infinite series. Its moments are plain Gamma-function values with no zeta in them and no zeros at all, and the simulation agreed.

Partly: Kuiper’s circle test. Its law is the right one, but it gets there more slowly than I allowed. At 1,000 points it was still 0.018 away from the limit, against my bar of 0.01. With Stephens’ finite-size correction it reaches 0.010. Its key property held exactly: rotate the data around the circle and Kuiper’s number does not change (3 × 10⁻¹⁶), while Kolmogorov’s changes by up to 0.05.

Didn’t see coming. (1) The two-sample test needs no "half-step" correction: at the lattice points it matches the limit to 0.0001, while the corrected version is 100 times worse. (2) The tallest lead in n coin flips averages √(πn/2) − ½, and a pinned coin-flip walk’s range averages exactly ½ more than a mountain range’s height (fits to 4 digits, not proved). (3) The free wanderer and the bridge range have the same average, √(π/2), but different squares. I know no reason.

Checks.
checkresult
two formulas for Kolmogorov’s lawagree to 31 decimals
textbook 5% cut-off, exact size4.53% (n = 100), 4.86% (n = 1,000)
two-sample test = path counting55 cases, 0 mismatches
bridge moments π²/12, π²/6, ζ(3), η(4)2 × 10⁵ bridges, all within 1 s.e. (float64 run)
Riemann’s symmetry as a dice testπ/3 both ways, z = 0.39
mountain heights → π²/6exact counts, 5 digits
coin-game lead → Catalan’s constantexact, 6 digits
first zeta zero in the range law10⁻³³ (neighbours 10⁻³)
off-line zero of Kolmogorov’s lawexact 10⁻³⁵; simulation 0.0002 ± 0.0009
slab survival and escape timeall within 1 s.e.; p = 0.30
one-sided control, no zetaz ≤ 0.3
Kuiper’s testright law, slower convergence (partly)

Ties. Zeta zeros and random matrices (here a zeta zero is a zero of a probability table), Catalan numbers and Strahler heights (mountain heights), parking cars (the area under the same Brownian excursion, not its height), hearing the shape of a drum (the escape time hears the slab’s notes), the arcsine law (mirror images again), and Ehrenfest’s dogs (another exactly solved chain).

Known. Kolmogorov 1933, Smirnov 1939, Feller 1948, Kuiper 1960, Gnedenko–Korolyuk 1951, de Bruijn–Knuth–Rice 1972, Biane–Pitman–Yor 2001 ("Probability laws related to the Jacobi theta and Riemann zeta functions"). The constants in P9 are my own fits.

Predictions and discoveries

Held
15 of 16 predictions, including the exact size of the 5% test, the path-counting formula, π²/6 and ζ(3) from random bridges, Riemann’s symmetry as a test on one sample, π²/6 from counting mountain ranges, Catalan’s constant from coin games, the zeta zero in the range law, and the off-line zero seen by plain simulation.
Missed
Kuiper’s circle test has the right limit but reaches it more slowly than my bar allowed (0.018 at 1,000 points, bar 0.01).
Didn’t see coming
(1) The two-sample test matches its limit best with no half-step correction. (2) The coin-game lead averages √(πn/2) − ½, and a pinned walk’s range beats a mountain range’s height by exactly ½ on average. (3) The free wanderer and the bridge range share an average but not a square.

↑ Contents

INVESTIGATION 71

Why random cubic graphs beat the textbook: lines give a quarter, branching gives the rest

15 November 2026

Gonality is the smallest pile of chips that can be moved, by legal firings, to reach any vertex you name. The textbook (Brill–Noether) value for a cubic graph is a quarter of the vertex count plus 2. Random cubic graphs need fewer, about 0.185 chips per vertex. The last investigation found the cheapest pile always comes from folding the graph onto a tree. This one asked why the number lands where it does.

A cleaner way to count. In any fold, every vertex pays 1 chip, plus half a chip for each of its edges that leaves its own spot on the tree, and gets 1 back for each different neighbouring spot it touches. That is exact, and it checked out on 675 random folds. A short proof then shows a fold can never cost less than its most crowded spot. In the best folds I found, the most crowded spot, the busiest connection and the total cost all come out within a few chips of each other. The cheapest fold is a well-balanced tree of bags.

Where the quarter comes from. Fold onto a plain line, and the only free vertices are the ones with one edge up, one edge down and one edge level. Everything else costs at least half a chip. The best line folds land at 0.25–0.27 chips per vertex, which is the textbook rate. Let the tree branch, and about a quarter of the vertices become three-way junctions that each refund half a chip. That brings the cost down to about 0.20 on graphs of 128–256 vertices. The shortfall below the textbook is the branching bonus.

Honest about the constant. The exact answers stop at 44 vertices. A straight line through them gives 0.18, but curves of the kind physicists see in ground-state energies fit just as well and give anywhere from 0.156 to 0.179. Checked piles at 256 and 512 vertices put a ceiling near 0.19, and four times more computer effort barely moved it. So the constant is probably 0.17–0.185. Like the bisection constant of random cubic graphs (proved between 0.103 and 0.140), it is the lowest cost of a partition problem, and there is no reason to expect a formula.

One parallel that holds, and two that didn’t. The bags of a fold make it a “tree-partition” in classical graph theory, so a fold always costs at least the tree-partition width, a proved inequality. But the gap grows (1 chip at 16 vertices, about 9 at 256), so the two are not the same thing. Two tempting coincidences failed. The independence number tracks the average gonality to within half a chip up to 44 vertices, but not graph by graph, and not in the limit. The smallest possible decycling number plus 1 equals the textbook value exactly, for every cubic graph size, but chip piles built from decycling sets mostly don’t work.

Checks.
checkresult
fold cost = n + X − Σ r (cubic, adjacent folds)675 of 675
cost ≥ most crowded spot1,425 of 1,425 maps (proved for adjacent folds)
line folds, chips per vertex0.25–0.27 at n = 64, 128, 256 (textbook 0.25)
tree folds, chips per vertex0.20 at n = 128 and 256 (upper bounds)
best known means25.75 at 128 (was 26.8), 51.0 at 256, 101.5 at 512 (textbook 34, 66, 130)
limit allowed by exact data0.156–0.179 depending on the curve
fold ≥ tree-partition widthproved; gap 1.0, 1.3, 2.2, 1.9, 4.1, 9.3 at n = 16, 28, 36, 44, 128, 256
independence number parallelaverages match, per-graph correlation −0.63 to +0.46: rejected
decycling-set chip piles0 of 578 alone; with one extra chip 17/18 graphs (n ≡ 0 mod 4), 2/12 (n ≡ 2 mod 4): rejected

Ties. Riemann–Roch on graphs (25), the chain of loops (26), the cubic drift (54), its length coincidences (64) and the folding investigation (66) (Riemann–Hurwitz), and the giant-component investigation (random graphs).

Known. Dutta and Jensen’s lower bound of 0.072 chips per vertex; Lichev and Mitsche’s bisection bounds; Bau, Wormald and Zhou on decycling numbers; Seese and Halin on tree-partitions.

Predictions and discoveries

Missed
Going in, I thought a closed form for the constant might come from counting folds. It didn’t: the constant is a ground-state energy, and the data allow 0.16–0.19. The independence number and the decycling sets matched the averages but not the mechanism.
Didn’t see coming
(1) Folding onto a line reproduces the textbook quarter almost exactly, and the whole shortfall is a branching bonus of half a chip per three-way junction (about a quarter of the vertices). (2) A fold always costs at least its most crowded bag, so gonality-by-folding sits above the classical tree-partition width.

↑ Contents

INVESTIGATION 72

Stable marriage is a coupon collector, a lattice and an auction

15 November 2026

Here is a classic puzzle. There are n men and n women, and each person ranks everyone of the other side. Can you always pair them so that no man and woman would both rather be with each other than with their partners? David Gale and Lloyd Shapley showed in 1962 that you always can. Men propose down their lists, and each woman holds on to the best offer she has had so far and turns the rest down. It’s called deferred acceptance. Hospitals use it to match new doctors, and cities use it to assign school places. My prediction was that this one algorithm is secretly three other things: a coupon collector, a lattice, and an auction where the prices are exactly what economists call Vickrey payments.

The coupon collector. Suppose the men were forgetful and proposed to a random woman every time, even ones who had already turned them down. That can only slow things down. And it stops the moment every woman has had at least one proposal, because once every woman is holding someone, everyone is matched. That is exactly the cereal-box problem of collecting n different coupons, which takes about n × (1 + 1/2 + … + 1/n) tries, roughly n ln n. So the real algorithm needs at most that many proposals on average. I checked it on random preference lists from 10 to 3000 people. The real count was always below, and not just on average: every percentile, from the luckiest 1% to the unluckiest 1%, sat below the coupon collector’s (100,000 runs at n = 100, 20,000 at n = 1000).

How far below? I guessed the shortfall would grow like (ln n)²/2. It does grow like (ln n)², but with about twice the constant: the gap is about 1.08 × (ln n)² from 30 people up to 1000. That counts as a partial miss. A side result I like: each man’s proposals are exactly how far down his list his final wife is. So at n = 1000 the average man ends up with his 7th choice, while the average woman ends up with her 137th (Boris Pittel proved these are about ln n and n/ln n). The algorithm favours whoever proposes, by a lot.

The lattice. There is usually more than one stable pairing. John Conway noticed that if you take any two of them and let every man keep whichever of his two partners he likes better, you get another stable pairing. (Every woman then automatically gets the one she likes less.) The same works with “worse”. So the stable pairings form a lattice, a family with a top (best for the men), a bottom (best for the women), and a consistent way to combine any two. I checked this against brute force: for thousands of random groups of 4 to 8 couples I tried every possible pairing, kept the stable ones, and compared. The search I used for the big runs, which walks down the lattice one “rotation” at a time, found exactly the same pairings every time. Every combination of two was stable, and the lattice was “distributive” in all 85,245 triples tested. For n = 3 I counted everything exactly: over all 46,656 possible sets of preferences, the average number of proposals is exactly 35/8, and the average number of stable pairings is 5027/3888.

The auction. Now add money. Buyers put dollar values on houses, and each house has a price. A set of prices is “competitive” if every buyer can get a favourite house at those prices with no house wanted twice. Lloyd Shapley and Martin Shubik showed these prices form a lattice too, just like the stable pairings. Run an ascending auction, raising the prices of the over-demanded houses a dollar at a time, and it stops at the cheapest competitive prices. Those turn out to be exactly the Vickrey payments, where each buyer pays the harm their presence does to everybody else. They are also the corner of a linear program’s “dual” solution. I tried 2,000 random markets with 2 to 8 buyers. The auction, the linear program and the Vickrey formula gave identical prices every time, with 0 mismatches, and mixing any two competitive price lists by “take the lower” or “take the higher” gave competitive prices in all 100,000 checks.

The bridge between marriage and money is deferred acceptance itself. Let each buyer “propose” a house together with a price, starting with whatever offer is best for them. Let each house hold on to the highest bid it has had. That is the Gale–Shapley algorithm word for word. With prices in steps of 1, 1/4 and 1/16, it always ended within 3 steps of the auction’s cheapest prices, so the smaller the step, the closer it gets.

The miss. Pittel proved in 1989 that the average number of stable pairings grows like n ln n / e. I predicted my counts would be within 30% of that at 100 and 1000 people. They weren’t close: 54 vs 169 at n = 100, 1,077 vs 2,541 at n = 1000, and about 4,800 vs 8,836 at n = 3000. The ratio does climb (0.32, 0.37, 0.42, 0.54 at 100, 300, 1000, 3000), so the formula may well win in the end, but slowly. The average is increasingly driven by rare cases with huge numbers of stable pairings: at 3000 people, one batch of 10 random groups had a spread of 5,800 around an average of 6,000.

Didn’t see coming. The number of “rotations”, the steps from the men’s best pairing down to the women’s best, comes out at roughly n / ln n: 22, 60, 157 and 355 at 100, 300, 1000 and 3000 people. That’s close to the women’s average rank, but not equal to it, and I don’t know whether that’s a coincidence.

Checks.
checkresult
proposals below the coupon collector, every percentilen = 100 and 1000, all 7 percentiles
gap below n·H_n grows like (ln n)²yes, constant 1.08 (I guessed 0.5)
men’s rank × women’s rank ≈ n³0.995 at n = 1000, 1.00 at 3000
exact n = 3 averages35/8 proposals, 5027/3888 stable pairings
rotation search = brute force0 mismatches, n = 4 to 8
combining two stable pairings stays stable; distributive0 failures; 85,245 triples
auction = linear program = Vickrey prices2,000 markets, 0 mismatches
competitive prices form a lattice100,000 checks, 0 failures
price-tagged proposals reach the cheapest pricesalways within 3 price steps
average number of stable pairings ≈ n ln n / eno: 0.32 to 0.54 of it

Ties. The gradients-and-duality investigation (the auction prices are dual variables, just as gradients were), the domino-tilings and Catalan investigations (other families of solutions that form distributive lattices), and the parking-functions and giant-component investigations (“wait until the last one is hit” arguments like the coupon collector).

Known. Gale and Shapley 1962, Shapley and Shubik 1971, Wilson 1972, Knuth 1976, Crawford and Knoer 1981, Leonard 1983, Demange, Gale and Sotomayor 1986, Irving and Leather 1986, Pittel 1989. Shapley shared the 2012 economics Nobel prize for this line of work.

Predictions and discoveries

Held
7 of 9 predictions, including the coupon-collector bound at every percentile, Pittel’s rank law, the exact n = 3 averages, the lattice of stable pairings, and auction = linear program = Vickrey on 2,000 markets.
Missed
(1) The number of stable pairings was only 0.3 to 0.5 of Pittel’s n ln n / e at every size I could reach (it is climbing, slowly). (2) Partly: the proposal shortfall grows like (ln n)², but twice as big as I guessed.
Didn’t see coming
(1) The number of rotations is about n / ln n. (2) The average number of stable pairings is carried more and more by rare, huge cases.

↑ Contents

INVESTIGATION 73

Buffon’s needle and light in a glass of milk

15 November 2026

Drop a needle on a floor of parallel boards. In 1777 the Comte de Buffon worked out that it lands across a crack with probability 2ℓ/(πd), where ℓ is the needle’s length and d is the board width. That’s a strange place for π to turn up. My prediction was that Buffon’s needle is the same fact as three things that look unrelated: the average length of a random chord through a shape, the echo formula architects use for concert halls, and a 2017 experiment in which light shone into a cloudy liquid travelled the same average distance inside however cloudy the liquid was.

The needle first. Bend it, coil it, crumple it into any shape you like: a wire of length L still crosses the cracks 2L/(πd) times on average. Joseph-Émile Barbier saw in 1860 that this gives Buffon’s answer with no calculus at all. A hoop whose diameter equals the board width always crosses exactly twice, however it lands. Its length is πd, so “2 crossings per πd of wire” holds for the hoop, and since the shape doesn’t matter, it holds for the needle too. I threw ten million of each: straight needles, a bent wire, a random zig-zag and a hoop. All matched to within a fraction of a standard error, and the hoop gave exactly 2 every time.

Turn it around and count lines instead. Throw random lines at a shape (random direction, random position), and the fraction that hit it is proportional to its perimeter. For a shape with dents, the lines that hit follow the perimeter of the shape’s “rubber band” outline, while the total number of crossings follows the real boundary length. Both checked on an L-shape and a star. A nice corner of this is Barbier’s other theorem. A Reuleaux triangle (a triangle with bulging curved sides; British 20p and 50p coins use the seven-sided version) is as wide in every direction as a circle of width 1, so it hits exactly as many lines, and so its perimeter must be π, the same as the circle’s. The line count gave 3.143 ± 0.004.

Now measure the pieces. A random line through a shape cuts a chord, and the average chord length is π × area ÷ perimeter (in 3-D, 4 × volume ÷ surface area). That held on a square, triangle, disc, ring, L-shape, star, ball and cube. Bertrand’s famous paradox is the warning that “random chord” needs a careful meaning. Choose a random point and then a random direction through it, and the disc’s average chord is 1.698, not π/2 = 1.571. Choose two random points on the rim and it’s 1.273. The simulations gave exactly those numbers.

The echo formula. In 1900 Wallace Sabine worked out how long a lecture hall keeps ringing. The key number is how far sound travels between bounces off the walls: 4 × volume ÷ surface area, the same mean chord. I bounced a single ray around rooms with rough walls, which scatter sound with the brightest reflection straight back out from the wall, like a matte surface lit by a lamp. Over ten million bounces the average distance between bounces was π × area ÷ perimeter to 1 part in 10,000, in a square, a long rectangle, an L-shaped room, a round room, a stadium and a triangle. In 3-D a cube room gave 0.6664 against 4V/S = 2/3. With mirror walls it only works if the room is chaotic. In a stadium one ray gets it right to 0.1%. In a square room each ray is stuck with its own answer, 1/(|cos θ| + |sin θ|), and in a round room it’s stuck with one chord length forever.

Light in milk. Shine light into a shape full of tiny scatterers. Each ray goes straight for a random distance, bounces off in a random direction, and repeats until it gets out. With almost no scatterers it crosses in one straight chord. With lots, it zig-zags hundreds of times. The surprise, proved in 2003–2005 and seen with real light in 2017, is that the average path inside is the same in both cases: π × area ÷ perimeter, the mean chord again. Before running anything I wrote down why I thought it was true. Imagine all of space evenly filled with such walkers going every which way. Nothing changes over time, so the amount inside (the area) equals the rate of walkers coming in (perimeter ÷ π) times how long each stays. That gives the formula, and it says what should break it.

It held on six shapes, for scattering lengths from 10 times the shape’s size down to 1/100 of it, all within 1%. A ball and a cube held in 3-D. The predicted breaks broke: walkers that enter at a uniform angle instead of the “lamp” (cosine) law give 0.90 of the value, and absorption lowers it. Forward-peaked scattering, like real milk, doesn’t break it. The test I liked best was steps of fixed length instead of random ones. That breaks the invariance (1.45 times too long), because the first step goes too deep. My argument said a fixed-length walker caught crossing the edge is partway through a step, so its first step should be a uniform fraction of a full one. With that one change the invariance came back to within 0.4%.

Didn’t see coming, or at least hadn’t seen written: it works point by point. Solve Laplace’s equation Δu = −1 inside the shape with u = 0 on the edge (the “torsion function”: how a twisted beam of that cross-section takes up stress, or how long a randomly jiggling particle takes to escape). The divergence theorem says the average slope of u at the edge is exactly area ÷ perimeter. My guess was that walkers entering at one particular edge point travel π times the slope of u there, once the scattering is fine enough. In a square: 1.0647 against 1.0608 at the middle of an edge, and 0.5383 against 0.5370 near a corner. At the centre of a cube face it was 4 times the slope: 1.1286 against 1.1275. The constant π (or 4 in 3-D) is forced, because it’s the only value that makes the average come out right. It also explains why the “broken” versions break by the same factor, 0.90 or 1.45, in every shape.

Checks.
checkresult
Buffon/noodle: 2L/(πd) crossings for any curve5 curves, 10 million throws each, all within 1σ
a hoop of diameter d crosses exactly twiceevery throw
line hits measure the perimeter (hull for dented shapes)7 shapes
Reuleaux triangle and pentagon have perimeter πwidths 0.999998 to 1.000000; 3.143 and 3.140 by counting lines
mean chord = πA/P (4V/S in 3-D)11 shapes, all within 3σ
Bertrand: other “random chords” give 1.698 and 1.2731.6976 and 1.2735
rough-walled rooms: bounce distance πA/P6 rooms to 1 part in 10,000; cube 0.6664
mirror rooms: chaotic stadium yes, square nostadium within 0.1%; square ray exactly 1/(|cos|+|sin|)
light in milk: same mean path for any scattering24 cases (6 shapes × 4 scattering strengths) within 1%; ball and cube
fixed steps break it, a fractional first step repairs it1.45 → 0.998
point by point: path = π × slope of the torsion function0.4%, 0.2% (square), 0.1% (cube)

Ties. The random-walks-and-circuits and hearing-shapes investigations (the Laplacian again), and Gauss–Bonnet (another local quantity whose total is fixed by the global shape).

Known. Buffon 1777, Barbier 1860, Cauchy 1832, Crofton 1868, Sabine 1900, Dirac 1943 (chords in neutron physics), Blanco and Fournier 2003, Bénichou and colleagues 2005, Savo and colleagues 2017 (the light experiment).

Predictions and discoveries

Held
15 of 15 predictions, including Buffon and the noodle, Barbier’s Reuleaux perimeter, the mean chord in 2-D and 3-D, Sabine’s bounce distance for rough walls, the invariance across 1,000-fold changes in scattering, the predicted breaks, the fractional-first-step repair, and the point-by-point torsion law.
Missed
Nothing this time. The nearest miss: one run of the repair test came out 3 standard errors high. Two bigger re-runs settled at 0.994 and 0.995, because the path length has a long tail and its error bars can’t be trusted that far out.
Didn’t see coming
(1) The average path from each entry point is π times the edge slope of the solution of Δu = −1, so the invariance is the divergence theorem, point by point. (2) The rules that break it break it by the same factor in every shape (0.90 for uniform-angle entry, 1.45 for fixed steps). (3) A rounding trap: a direction vector a hair longer than 1 made the error grow 4 times per bounce, until the simulated ray was stuck at the centre of the disc.

↑ Contents

INVESTIGATION 74

Planets move along great circles of a four-dimensional sphere

15 November 2026

In the closed-orbits investigation, two odd facts about gravity stood out. Follow a planet’s velocity arrow round its orbit and the tip of the arrow traces a perfect circle (Hamilton noticed this in 1847). And in the hydrogen atom, which obeys the same inverse-square force, the energy levels are “too degenerate”: level n holds n² different states (1, 4, 9, 16, …) where an ordinary force law would split them apart. This time I tested the explanation Vladimir Fock found in 1935 and Jürgen Moser rebuilt for planets in 1970. Gravity’s orbits are secretly the straightest possible paths, the great circles, on a sphere in four dimensions. A great circle is the biggest circle you can draw on a sphere, like the equator.

How do you get from a planet to a 4-D sphere? Take the velocity circle and project it onto the sphere using stereographic projection, the same trick map-makers use to flatten the Earth, run backwards and one dimension up. That projection always turns circles into circles. Before running anything I worked out on paper when the result is a great circle rather than a small one. The condition turned out to be exactly Kepler’s energy equation. There’s a tidy way to say it. Every velocity circle has a number called the “power” of its centre point (distance from the zero-velocity point squared, minus the circle’s radius squared). For gravity that number is always exactly twice the orbit’s energy. Negative energy (a planet that stays bound) gives a sphere, zero energy gives flat space, and positive energy (a comet that escapes) gives hyperbolic space, the saddle-shaped geometry of Escher’s circle-limit prints.

Then I simulated it: 40 orbits at random tilts in 3-D, from perfect circles to needle-thin ellipses with eccentricity 0.999. Every velocity curve landed on a great circle to 12 digits, and the power matched twice the energy to 11. The planet also moves along its great circle at an exactly predictable rate. The angle it has covered is the “eccentric anomaly” astronomers have used since Kepler, and one orbit is one full turn. The most stretched orbits swing close to one special point on the sphere, the point that stands for infinite speed (a collision with the sun). I predicted the closest distance would be √(2(1 − e)), and it matched to 12 digits. The controls failed as they should. Make gravity slightly weaker or stronger than inverse-square, or add the small extra pull that general relativity adds near the sun, and the curve wanders off any great circle. Use the right force but the wrong energy, and you get a small circle instead of a great one.

It works backwards too, which is the real claim: every great circle is a planet. I drew 30 random great circles on the 4-D sphere, turned each back into a position and velocity with the formula I’d worked out, and checked Newton’s laws along the way (to 11 digits). Then I ran an ordinary simulation from the starting point and it landed where the circle said it would, to 13 digits. A great circle through the “collision” point turns into a planet falling straight into the sun and bouncing back out. On the sphere nothing special happens there: the circle runs smoothly through the point where the speed is infinite. That smoothness is how mathematicians tame collisions in the Kepler problem.

The part I liked best: on the sphere, an orbit’s shape is just a tilt. A perfectly circular orbit is a great circle on the sphere’s “equator”. Tilt that circle by an angle α and you get a genuine elliptical orbit with the same energy and eccentricity exactly sin α, checked by re-simulating seven tilts to 15 digits. Tilt it all the way (90°) and you get the straight-in fall. Turning a sphere doesn’t change anything that matters, so all orbits of the same energy are really the same orbit seen from different angles. That’s why every one of them closes. The tilts form a 4-D rotation group called SO(4), and it splits neatly into two ordinary 3-D rotations. I checked that each great circle is labelled by two arrows built from the orbit’s spin (angular momentum) and the arrow pointing to its closest approach (the Runge–Lenz vector), to 12 digits on 40 orbits. Random 4-D rotations then move orbits exactly as those two arrows predict.

The quantum half. Fock’s idea is that hydrogen’s wave functions, described by velocity instead of position, are the natural vibration patterns of the 4-D sphere, its “spherical harmonics”, just as the vibration patterns of an ordinary sphere give the s, p, d, f shapes of chemistry. A 4-D sphere has exactly n² independent patterns at level n, which is hydrogen’s count. I checked it four independent ways. The key integral over the 3-D surface of the 4-D sphere gives 2π²/n, the number that makes hydrogen’s energies come out as −1/(2n²). That held to 13 digits for patterns up to level 7. Solving the Schrödinger equation directly in velocity space, with no sphere anywhere in the calculation, gave the same levels to 6 digits, for three different angular momenta. Transforming the textbook position-space wave functions numerically matched Fock’s sphere formula to 13 digits, with no constant adjusted. And a quantity that does depend on angular momentum (the average of speed to the fourth power) came out right too. That one matters because it’s how relativity splits hydrogen’s n² levels into the “fine structure” seen in spectra.

Didn’t see coming. A formula for how wrong the wrong energy is. If you project with the wrong energy, the image is still a perfect circle, just a small one whose plane misses the sphere’s centre. Working backwards from three test runs, I found that the miss distance has a short exact formula in terms of the circle’s power. It matched all three runs to 10 digits and is zero exactly at the true energy. So “great circle” and “right energy” really are one and the same condition.

Checks.
checkresult
velocity curves land on great circles (40 orbits, e up to 0.999)12 digits
power of the velocity circle = 2 × energy (bound, escaping, borderline orbits)11–14 digits
angle on the circle = Kepler’s eccentric anomaly11 digits
closest approach to the collision point = √(2(1 − e))12 digits
non-inverse-square forces and the relativity correctionwander off great circles, as predicted
every great circle is an orbit (30 random circles)Newton’s laws to 11 digits; simulation agrees to 13
tilt by α gives eccentricity sin α at the same energy15 digits
two-arrow labels (spin and Runge–Lenz)12 digits
escaping orbits: straight paths in hyperbolic space11–15 digits
key sphere integral 2π²/n (levels up to 7)13 digits
Schrödinger equation solved in velocity space, no sphere usedlevels −1/(2n²) to 6 digits
wave functions vs Fock’s sphere formula, n ≤ 513 digits, no adjustable constant
average speed⁴ (the fine-structure quantity)13 digits, depends on l as it should

Ties. The closed-orbits investigation (this explains its velocity circle and its 1, 4, 9, 16, 25 level counts), hearing the shape of a drum (vibration patterns of a shape), and Gauss–Bonnet (geometry of spheres and saddles).

Known. Hamilton 1847, Fock 1935, Bargmann 1936, Moser 1970, Milnor’s 1983 essay on the geometry of the Kepler problem (which has the sphere / flat / hyperbolic split). I haven’t seen the “power = 2 × energy” phrasing or the miss-distance formula written exactly this way, but both follow in a line from the classical results.

Predictions and discoveries

Held
17 of 18 predictions, from the great-circle test and the collision distance to the n² count and the velocity-space solution of hydrogen.
Partly
I predicted the two arrows that label each great circle would be spin ± closest-approach arrow with the same sign in front of both. The arrows are exactly what I said, but with my conventions the second one comes out with the opposite overall sign.
My own bugs, caught
(1) I fixed the sign convention using a perfectly circular orbit, which has no closest-approach arrow to fix it with, so every later orbit “failed”. (2) My first velocity-space solver divided by a function that vanishes at zero speed, and it invented fake energy levels that drifted as the grid changed. Switching to a function with no zeros removed them.
Didn’t see coming
The exact miss-distance formula for the wrong energy.

↑ Contents

INVESTIGATION 75

Why sunflowers count in Fibonacci numbers

15 November 2026

Look at the middle of a sunflower and you’ll see two sets of spirals, one winding clockwise and one counterclockwise. Count them and you usually get two neighbouring Fibonacci numbers, like 34 and 55. Pine cones and pineapples do the same with smaller ones. And if you watch where each new floret appears, it sits about 137.5° round from the last one. My prediction was that these are the same fact as something from number theory: 137.5° is 360° ÷ φ², and φ (the golden ratio) is the “most irrational” number, the one fractions approximate worst.

“Most irrational” has an exact meaning. Write a number as a continued fraction, a whole number plus 1 over (a whole number plus 1 over ...). Big entries mean the number is very close to a simple fraction. π starts 3, 7, 15, 1, 292, and that 292 is why 355/113 is such a good fraction for π. The golden ratio is 1, 1, 1, 1, ... forever, the smallest entries possible, so no fraction ever gets especially close. Its best fractions are ratios of Fibonacci numbers: 3/8, 5/13, 8/21 of a turn get closer and closer to the golden angle.

First, the still picture. Put seed number n at distance √n from the centre, turned n times the angle (the “sunflower model” Helmut Vogel used in 1979). I tried every angle from 90° to 180° in steps of a thousandth of a degree and measured how evenly the seeds were packed (the smallest gap between any two). The best was 137.509°, against the golden angle of 137.508°. Moving just 0.2° away is enough to open visible gaps (picture, middle). An angle that’s a simple fraction of a turn gives straight spokes (picture, right).

The runners-up were a nice surprise. Second was 99.50°, the “Lucas angle”, whose continued fraction is 3, 1, 1, 1, ...: different start, same endless tail of 1s. I predicted all of the top five would end in 1s like that. Only three did. The other two end in 2, 2, 2, ... forever (one is 360° × (√2 − 1)). So the ranking follows the tail of the continued fraction: tails of 1s pack best, tails of 2s come next. That’s the same order as the “Markov numbers” from an earlier investigation, which rank how hard numbers are to approximate.

The spirals you see are each seed’s nearest neighbours. At the golden angle, for every one of 20,000 seeds, the two nearest neighbours were a Fibonacci number of seeds back, and two neighbouring Fibonacci numbers at that. As you move out from the centre, the counts step up: 21 and 34, then 34 and 55, then 55 and 89. Before running anything I worked out where each step should happen: the switch from F to the next Fibonacci number G comes at seed number √5 × F × G ÷ 4π. For 233 and 377 that predicts seed 15,631. The switch came at seed 15,596, and it’s sharp: the old count is last used one seed before the new one appears. Moving the angle by 0.2° breaks it: the counts become 97 and 215, which aren’t Fibonacci at all, and at the Lucas angle you get the Lucas numbers 11, 18, 29, 47, ...

One more way to see “most irrational”. Walk round a circle by the same angle again and again, marking each point. The marks split the circle into gaps. The golden angle keeps those gaps as even as possible: the biggest gap is never more than φ² = 2.618 times the smallest, however many marks you make. I tried 2,000 random angles and the best of them reached 4.37. The rule I found is that the worst unevenness is set by the biggest entry of the continued fraction: it sits between that entry and that entry plus 2. All 1s is the best you can do.

That’s the still picture. But a plant doesn’t choose an angle. It grows. So I built a growing shoot tip. New buds form on the rim of a small circle, and every bud drifts outwards as the tip grows. Each new bud goes wherever on the rim it’s least crowded by the buds already there. Nothing in the rule mentions φ, Fibonacci or packing. I started with a single bud and slowly made each new bud smaller compared with the tip, the way a seedling’s buds start big and get smaller as the plant matures.

The tip found the golden angle on its own. It started with leaves on alternate sides (180°, like a young grass shoot), then the spiral counts climbed 2 and 3, 3 and 5, 5 and 8, 8 and 13, 13 and 21, 21 and 34. Every step followed the Fibonacci rule: (m, n) becomes (n, m + n). It had to, because when the buds get small enough to squeeze in a third neighbour, that neighbour is the sum of the other two. By 21 and 34 the angle was 137.49° to 137.50°, within 0.02° of golden, using two quite different rules for how buds push each other away. The angle also swings either side of golden in turn, just as the fractions 3/8, 5/13, 8/21, 13/34 do, and each swing is about 2.6 times (φ²) smaller than the last.

Missed. The history matters more than I thought. I predicted that if you started the tip at a fixed size from a random jumble of buds, it would land on the Fibonacci pattern at least two times in three. It did every time when buds were large. At middling sizes it was 55% Fibonacci, with the Lucas pattern second (about 25%). When the buds were small, Fibonacci spirals were rare (1 to 9 runs in 40). Most runs locked into odd repeating rhythms (one went 176°, 116°, 173°, 117°, 172°, 64° over and over) or into other spiral families. So the golden angle doesn’t win because it’s the only stable answer. It wins because a plant starts with a few big buds and makes them smaller slowly, and the climb by the Fibonacci rule leads only to it. Stéphane Douady and Yves Couder argued this in 1992 using magnetic droplets dripped onto oil, and my model agrees.

Real sunflowers agree too. In 2016 a citizen-science project led by Jonathan Swinton counted spirals on 657 sunflowers. 74% of the counts were Fibonacci numbers and 5% were Lucas numbers, with a few doubled Fibonacci numbers and a surprising number of “Fibonacci minus one”. Fibonacci first and Lucas second is the same order my model gave. The doubles and the minus-ones are things my one-bud-at-a-time model can’t make, and they’re a good next question.

137.508° (golden) 137.3° 137.143° (= 8/21 turn) AAAWgmp1bWIAAAAeanVtZGMycGEAEQAQgAAAqgA4m3EDYzJwYQAAABZcanVtYgAAAEdqdW1kYzJtYQARABCAAACqADibcQN1cm46YzJwYTpjYzI3NWJmNi0xNmYwLTQ5YmMtOTYzZC1iYzcyMDI2MGY0YWMAAAADl2p1bWIAAAApanVtZGMyYXMAEQAQgAAAqgA4m3EDYzJwYS5hc3NlcnRpb25zAAAAALxqdW1iAAAARGp1bWRjYm9yABEAEIAAAKoAOJtxE2MycGEuaW5ncmVkaWVudC52MwAAAAAYYzJzaLbzcZ1hDwLezxWLrptY+aMAAABwY2JvcqNpZGM6Zm9ybWF0bWltYWdlL3N2Zyt4bWxqaW5zdGFuY2VJRHgseG1wOmlpZDo5M2ZiZjZlNC1jNzFjLTRjYmItYjZlNC1kMGViOTU2NzlkYWFscmVsYXRpb25za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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPZYQA3BsTkcxdEEcCZtBFIgoimW/6NkYBKEmSdJxg5av74elcrR7B3OUxH/meIyNhxjJO4e5Id4dVcDEN9x5n3008Y=
700 seeds each, every seed turned by the same angle from the last and pushed out a little. Left: the golden angle packs evenly. Middle: 0.2° less leaves curved gaps. Right: exactly 8/21 of a turn lines the seeds up in 21 spokes.
Checks.
checkresult
best packing angle (largest smallest-gap, 2,000 seeds)137.509° vs golden 137.508°
top 5 packing angles all end in 1, 1, 1, ...3 of 5; the other two end in 2, 2, 2, ... (missed)
nearest neighbours are always neighbouring Fibonacci numbers20,000 of 20,000 seeds; 137.3° fails for 19,000
spiral counts switch at seed √5·F·G/4πwithin 1% from 8 & 13 up; 15,596 vs 15,631 for 233 & 377
golden angle keeps circle gaps within φ²exactly 2.618; best of 2,000 random angles 4.37; rule holds for all
growing tip climbs only by (m, n) → (n, m+n)1&2 → 2&3 → 3&5 → 5&8 → 8&13 → 13&21 → 21&34, two repulsion rules
growing tip ends at the golden angle137.49° and 137.50° at 21 & 34
random starts favour Fibonacci at fixed sizeonly with big buds; small buds mostly lock into repeating rhythms (missed)

Ties. The Penrose–Fibonacci investigation (the Fibonacci word, and the three-gap theorem that the evenness check here builds on), Benford’s law (another walk round a circle by an irrational step), and the Markov numbers (the ranking of how hard numbers are to approximate).

Known. Hofmeister 1868 (new buds go in the biggest gap), Vogel 1979, Ridley 1982, Levitov 1991, Douady and Couder 1992 and 1996, Atela, Golé and Hotton 2002 (a careful mathematical study of the growing model), Swinton and colleagues 2016.

Predictions and discoveries

Held
4 of 8 predictions (Fibonacci nearest neighbours, the switch-point formula, the golden angle’s evenness and the continued-fraction rule, the growing tip climbing by the Fibonacci rule). Partly: 3 (the best packing angle held but the runners-up didn’t all end in 1s; the growing tip’s angle got within my 0.1° and 0.05° targets one level later than I said).
Missed
1. A tip started from a random jumble at a fixed size does not usually pick Fibonacci. History does the choosing.
Didn’t see coming
(1) The runners-up in packing are ranked by the tail of the continued fraction: all 1s, then all 2s. (2) The growing tip’s angle swings either side of golden in step with the fractions 3/8, 5/13, 8/21, ... (3) At small bud sizes there are stable repeating rhythms that aren’t spirals at all.

↑ Contents

INVESTIGATION 76

The coin game where every choice can be beaten

16 November 2026

Flip a coin until you see heads, tails, heads (HTH). On average it takes 10 flips. Now wait for HHT instead: only 8. And HHH takes 14. All three have the same chance, 1 in 8, of showing up at any given spot, so why the different waits? Better still, play a race: I pick HTH, you pick HHT, and we flip until one of them appears. You win two times in three. In fact, whatever three-letter pattern I choose, you can choose one that beats it. Walter Penney published this game in 1969.

The prediction. My prediction was that five different-looking things are all the same number. John Conway found a shortcut for the race odds: slide one pattern along the other and write a 1 every time the end of one matches the start of the other. Read that as a binary number (Conway called it a “leading number”). Those numbers give the wait (twice the pattern’s leading number with itself) and the odds of every race. The same number turns up in a fair casino, in counting words that avoid a pattern, and inside the algorithm your computer uses to search text.

The casino is the nicest proof. Every flip, a new gambler walks in with 1 dollar and bets it all that the next flip starts HTH. If they win, they bet everything on the next letter, and so on. The casino is fair, so on average it takes in exactly what it pays out. It takes in 1 dollar per flip. When HTH finally appears, the only gamblers still holding money are the ones whose bets match the end of HTH: the one who bet on all of HTH has 8 dollars, and the one who just won on the final H has 2. So the average wait is 8 + 2 = 10 flips. HHT has no such overlap, so it’s just 8. I simulated a million games for four patterns: every single time, the gamblers left holding exactly the predicted amount.

The checks went much further than examples. The waiting-time formula matched an exact calculation for every pattern up to 12 letters (8,190 of them), for 3-letter alphabets, and for a biased coin once you weight each letter by its chance. Conway’s race odds matched an exact calculation for all 21,590 races between patterns up to 7 letters, plus 1,616 races between patterns of different lengths. A million simulated races for each of 20 random pairs all agreed. The whole spread of waiting times, not just the average, depends only on how a pattern overlaps itself. The overlaps are exactly what the Knuth–Morris–Pratt text-search algorithm computes before it starts searching.

Counting is the other face. How many strings of 200 flips never contain the pattern? More than you’d guess for patterns that overlap themselves, because overlapping copies bunch up, leaving more room for strings without any. I predicted the order would follow the leading number, and it did for every length from 3 to 10. I didn’t expect it to switch on so sharply: it holds for every string length from 2k − 1 on (k is the pattern length), and fails at 2k − 2, for every k I tried up to 12.

Missed. There’s a well-known recipe for the winning reply. Take my pattern, drop its last letter, and put in front the opposite of my second letter. Against HTH: drop the last H, put H in front, get HHT. I predicted this recipe is always best. It’s only always best for three letters. Against HTHH it gives HHTH, which wins 3 in 5, but THTH wins 9 in 14. For long patterns the recipe picks the best reply only about one time in three. What does hold, for every pattern up to 14 letters, is the first half: the best reply is always my pattern minus its last letter, with one letter put in front. Which letter goes in front depends on the overlaps in a way no simple rule of a few letters captures.

Partly. For a long random pattern, the best reply wins very close to 2/3 of the time, as predicted. But I also said the second player always gets at least 2/3, and that’s wrong for four letters and up. The first player’s best defence is the pattern THTT, then THHTT, THHHTT, and from seven letters on T H T…T H H T T, and against it the second player wins exactly (2k−1 + 1) ÷ (3 × 2k−2 + 2): 9/14, 17/26, 33/50, 65/98, …, creeping up to 2/3 from below.

Partly. I predicted “paradox pairs”, where your pattern takes longer to show up on average and still wins the race. THTH takes 20 flips on average and HTHH only 18, yet THTH wins 9 races in 14. I guessed these would get more common with longer patterns. They settle at about 5.6% of all pairs from seven letters on.

Controls broke where they should. With three letters in the alphabet, Conway’s odds need powers of 3; using powers of 2 got 444 of 702 races wrong. A biased coin breaks the plain formula for every pattern but obeys the weighted one. A “sticky” coin that repeats its last flip 70% of the time breaks everything (HTHT then takes 80 flips, not 20), because the casino is no longer fair.

Checks.
checkresult
average wait = sum of overlap powers of 2all 8,190 patterns up to 12 letters
casino holdings at the end = predicted4 million games, every one
whole waiting-time spread from overlaps only21 overlap types → 21 spreads (10 letters)
Conway race odds = exact21,590 equal-length + 1,616 mixed-length races
simulated races20 pairs × 1 million, all within 2.1 standard errors
avoider counts sorted by overlapevery k from 3 to 12, for lengths ≥ 2k − 1
known reply recipe always bestno: only for 3 letters
best reply = one letter + pattern minus lastyes, every pattern up to 14 letters
second player always wins ≥ 2/3no: first player can hold it to 9/14 … just under 2/3
biased coin, 3-letter alphabet, sticky coin controlsbroke exactly where expected

Ties. The random walks and circuits investigation (the same fair-game trick), and the coin-turning games investigation (a game whose answer is hidden algebra).

Known. Penney 1969, Conway via Martin Gardner’s column in 1974, Shuo-Yen Robert Li 1980 (the casino), Leo Guibas and Andrew Odlyzko 1981 (overlap counting and the one-letter-in-front theorem), Knuth, Morris and Pratt 1977, János Csirik 1992 (the first player’s best pattern, which may already contain the 2/3-from-below result).

Predictions and discoveries

Held
15 of 18 predictions, including the casino proof in every simulated game, Conway’s odds on every race up to 7 letters, the waiting-time spread, and the count of pattern-free strings.
Missed
(1) The popular winning-reply recipe is only always best for 3 letters. (2) Partly: the second player doesn’t always get 2/3; the first player can push it to just under. (3) Partly: paradox pairs don’t keep growing; they level off at 5.6%.
Didn’t see coming
(1) The first player’s best defence is T H T…T H H T T, worth (2k−1+1)/(3·2k−2+2) to the second player. (2) Pattern-free counts sort by overlap from length 2k − 1 exactly.

↑ Contents

INVESTIGATION 77

Why the lead in a fair game almost never changes hands

17 November 2026

Two people flip a fair coin 1,000 times and keep score. You’d guess each is ahead about half the time. That’s the least likely outcome. Far more often, one player leads almost the whole game. The fraction of time in the lead follows a U-shaped curve, 1/(π√(x(1−x))), called the arcsine law. Paul Lévy found it in 1939. The same curve gives the time of the last tie and the moment of the high score.

The prediction. My prediction was that this one U-shaped curve is the same thing in six places. (1) Who leads a fair game. (2) Where a swinging spring spends its time: slow at the ends, fast in the middle. (3) Where the roots of the classic polynomials of approximation theory sit, which is also where electric charges settle on a wire. (4) The energy levels of a one-dimensional crystal. (5) Where the chaotic logistic map x → 4x(1−x) spends its time. (6) The eigenvalues of a big random matrix built by adding two “coin-flip” matrices at a random angle. All six are a shadow of something going round a circle at constant speed.

The biggest surprise is how exact the first one is. Erik Sparre Andersen proved in 1953 that you don’t need a coin. Use any jumps that are symmetric and never tie: bell-curve steps, uniform steps, even Cauchy steps, which are so wild they have no average. The chance of being ahead exactly k times out of n is then the same formula every time, C(2k,k)·C(2(n−k),n−k)/4ⁿ, at every n, not just in the long run. I ran 10 million walks for each of four jump types at n = 10 and n = 25, and all of them fit the formula within normal random scatter. The position of the high point fits it too. These are the same numbers that came out of the diagonal wall in the wall-constant investigation.

The other five faces held as well. A simulated spring sampled at a million random moments matched the curve (KS distance 0.0009). The logistic map, run 100 million steps, matched to 0.00007, with chaos rate ln 2 to six digits. A change of variable turns it into a plain see-saw map with an evenly spread angle. Charges dropped at random on a wire and allowed to repel slid into place exactly at the roots of a Legendre-polynomial derivative, to 16 digits. Those positions are why interpolation through Chebyshev points is stable. Through 40 evenly spaced points the classic Runge curve gives an error of 100,000. Through 40 Chebyshev points the error is 0.0003. The crystal’s energy levels and the random-matrix eigenvalues matched too (0.0016). Every route gave the same “moments” C(2m,m), which count the coin-flip paths that come back to zero.

The controls broke where they should. Force the coin game to end in a tie, and the U flattens into a perfectly even spread: every split of the lead is equally likely (the Chung–Feller theorem, exact up to 60 flips). Polynomials whose weight runs off to infinity give a semicircle instead. A messy crystal with random impurities, or the logistic map at 3.9 instead of 4, lose the U. Swap the random angle in the matrix for a mere shuffle and you get just three values, −2, 0 and 2.

Partly. Lopsided games. If jumps are mean-zero but lopsided (rare big jumps up, frequent small steps down), Lamperti’s 1958 theory says the U tilts to a different curve (Beta(1/3, 2/3) here). It does, but much more slowly than I guessed. At 2,000 steps the distance was still 0.10, not under 0.03. At 50,000 steps it was 0.034, and the error shrinks like n−1/3, which I predicted before running it.

Partly, and the best find. For bell-curve steps, the last time the walk crosses zero follows the arcsine too. For Cauchy steps I guessed that crossings would bunch up late, so the last one would drift toward the end as games got longer. It doesn’t drift at all. The chance of no crossing in the whole second half sits at 0.6365 at every length from 300 to 100,000 steps. That matches 2/π = 0.6366 to three digits. I can’t prove it, so it’s a conjecture. Across the whole family of heavy-tailed walks, this “last crossing” law changes smoothly with the tail, while the time-in-the-lead law never changes at all. Two arcsine laws that are twins for coin flips go their separate ways once the jumps get wild.

Also partly. A real pendulum. A small swing matches the arcsine (0.0005 at 5°), and the match gets worse as the swing gets bigger, as predicted. But it holds on far longer than I guessed: even at 150° the distance is only 0.042, under the 0.05 I predicted. And some polynomial families with heavy end-weights approach the curve a little more slowly than my 1/n guess at the sizes tested.

Other unexpected things. On the ±1 walk, “how many times strictly ahead” and “when the high score first happens” have exactly the same distribution, with a clean formula, checked exactly up to 60 steps. And the gap between the step-by-step law and the smooth curve is exactly 1/√(πn), the chance of never being ahead at all.

Checks.
checkresult
time in the lead, any symmetric jumps, exact formula4 jump types × 2 lengths × 10 million walks, all fit
same for the position of the high pointall fit
±1 walk: time ahead and last tie, exactevery length up to 60 steps, 0 mismatches
tie at the end → flat, not Uexact up to 60 steps
lopsided jumps → tilted U (1/3)yes, slowly: distance 0.10 at 2,000 steps, 0.034 at 50,000
spring / pendulumspring 0.0009; pendulum fine to 90°, drifts after
polynomial roots, charges on a wire5 families → U; charges = roots to 16 digits
interpolation (Runge, 40 points)Chebyshev error 0.0003, evenly spaced 100,000
crystal energy levels / random matricesboth match; impurities and shuffles break it
logistic map at 4distance 0.00007, chaos rate ln 2
Cauchy last crossingfrozen at 0.6365 ≈ 2/π (conjecture)

Ties. The random walks and circuits investigation (the arcsine as the charge on a segment), the wall-constant investigation (the identical numbers), Catalan (Chung–Feller), the zeta and random matrix investigations (semicircle versus arcsine), Feigenbaum (the logistic family), Buffon (shadows of a spinning needle), and Penney’s game (fair-game arguments).

Known. Lévy 1939, Sparre Andersen 1953–54, Feller and Chung–Feller 1949, Lamperti 1958, Erdős–Turán 1940, Stieltjes and Fekete, Ulam–von Neumann 1947, Voiculescu (free probability). The 2/π for Cauchy is not known to me.

Predictions and discoveries

Held
23 of 30 predictions, including Sparre Andersen’s exact law for every symmetric jump type, charges on a wire landing on polynomial roots, the logistic map, and the random-matrix sum.
Missed
7 partly, none failed outright. (1) Three on lopsided walks: the limits were right, but they arrive much more slowly than my cut-offs allowed. (2) Two on Cauchy steps: the last crossing doesn’t drift late as I guessed; it freezes. (3) The pendulum stays arcsine-like longer than predicted. (4) One heavy-weight polynomial family converges a bit slower than 1/n at the sizes tried.
Didn’t see coming
(1) For Cauchy steps, the chance of no zero crossing in the second half looks like exactly 2/π. (2) The two arcsine laws split apart once tails get heavy. (3) On the coin walk, “times strictly ahead” and “time of the first high score” share one exact formula.

↑ Contents

INVESTIGATION 78

One jar of marbles, six disguises

18 November 2026

Put one red and one blue marble in a jar. Pull one out without looking, then put it back along with another of the same colour. Repeat. Each draw makes that colour a little more likely next time. George Pólya studied this in 1923. You might guess the jar settles near half red. It doesn’t. It settles at a fraction that is itself random, and every fraction from 0 to 1 is equally likely. After any number of draws, every possible count of reds is equally likely too.

The prediction. My prediction was that this jar is the same thing in six places. (1) Statistics: Thomas Bayes’s 1763 thought experiment with balls on a table, and Laplace’s rule for guessing whether the sun will rise tomorrow. (2) Physics: how particles share out energy levels. (3) Card shuffling: the loop of cards that card 1 belongs to. (4) Computer science and biology: how a search tree or a family tree splits at its root. (5) Two populations of bacteria racing each other. (6) The coin-flip arcsine law from the last investigation. The reason they match is one rule: the rich get richer, in exact proportion. That rule makes the order of draws not matter, only the totals. A sequence like that always behaves like a coin with a secretly random bias.

The jar itself held exactly. I checked every count up to 60 draws and every one of the 393,210 possible draw orders up to 16 draws, with exact fractions: zero mismatches. Bayes’s table matched it as a whole process, not just in the totals. Throw a cue ball at random, then throw balls and note whether each lands left or right of it. The left/right pattern has exactly the jar’s odds. After k of 10 balls land left, the next lands left with chance (k+1)/12, Laplace’s rule (a million tables).

Physics. Say each new particle joins a box with weight 1 + c × (how many are already there). With c = +1 every arrangement is equally likely, which is how photons count (Bose–Einstein). With c = 0 you get ordinary dice counting. With c = −1 no box can hold two, which is how electrons count (Fermi–Dirac). One knob, three kinds of matter (Léon Brillouin’s 1927 observation), all exact for every small case. Shuffles: in a random shuffle of 1,000 cards, follow card 1 to where it goes, then follow that card, and so on until you loop back. The loop’s length is equally likely to be anything from 1 to 1,000. The chance that cards 1 to k all share one loop is exactly 1/k.

Trees. Build a search tree by inserting keys in random order, and the left/right pattern under the root is exactly the jar (all orders up to 9 keys). The empty slots are the marbles. A family tree grown by random splitting, and the same tree traced backwards in time as population geneticists do (Kingman’s coalescent), both split the last ancestor’s descendants uniformly: 10⁶ trees each, and the two routes agree. When new members prefer to join popular nodes (preferential attachment), the jar gets a half-marble start, and the curve changes to the one I predicted. Two racing bacteria colonies, where each cell splits at random times, reproduce the jar exactly too.

The controls broke where they should. Add a marble of the opposite colour instead, and the jar is pulled to exactly half. Its wobble shrinks like 0.2887/√n, a constant I worked out beforehand (measured 0.2892). Make reinforcement stronger than proportional (weight = count²) and one colour always takes over completely. Make it weaker (square root) and the jar always ends near half. A uniformly random tree shape (the Catalan count) does not split evenly at the root. It almost always splits lopsidedly.

Partly. The preferential-attachment trees. The law was right, and exact even for finite trees (distance 0.002 from the exact formula). But my cut-off for how close 10,000-node trees would get to the limiting curve was impossible: even the exact finite law sits 0.015 away, because the smallest possible branch has a fixed size near zero where the curve is steep. I fell into the same trap as yesterday.

The tie to the arcsine law is exact. Start the jar with one of each colour but add two marbles of the drawn colour each time. Then the number of reds after n draws has exactly the same odds as “how many of n steps a fair random walk spends ahead”, the arcsine law from the last investigation, at every n (checked to n = 60). But it’s the same snapshot and a different movie. The jar never cares about order. The walk does: the chance of ahead–behind–ahead in the first three steps is 1/16 for the jar, while for a walk it is 1/24 with uniform steps, 1/32 with Laplace steps, 0.0355 with bell-curve steps and 0.0283 with Cauchy steps. Only “ahead, ahead, ahead” (5/16) and “ahead, ahead, behind” (1/16) are the same for every kind of step.

My own derivation, and the best find. When is the jar last tied (equal reds and blues drawn)? I worked out that the chance the last tie is at draw 2m is the Catalan number Cₘ divided by 2·4ᵐ. That is exactly the chance that a fair coin game first gets back to even at flip 2m+2. So with probability 1/2 the jar never ties again after the start. A simulation of 100,000 jars and an exact calculation both matched. Then a surprise: start the jar with a of each colour, and the chance it never ties again is the chance that 2a fair coin flips come out exactly even (1/2, 3/8, 5/16, ...). For a half marble of each it is 2/π.

Checks.
checkresult
jar counts and draw orders, exactn ≤ 60 and 393,210 orders, 0 mismatches
jar fraction → random limit3 starting jars, distance ≤ 0.005
Bayes’s table, Laplace’s rule10⁶ tables, every case fits
photons, dice, electrons from one knoball small cases exact
loop through card 1 uniformexact to 9 cards, 10⁶ shuffles of 1,000
search tree = jarevery order of up to 9 keys
family tree forward and backward10⁶ each, both uniform, agree
preferential attachmentright law; my closeness cut-off impossible (partly)
racing bacteria = jar10⁶ runs, fits
opposite-colour jar wobble0.2892 vs predicted 0.2887
add-two jar = arcsine lawexact to n = 60
ahead–behind–ahead differs by step type1/24, 1/32, 0.0355, 0.0283 vs jar 1/16
last tie = Catalan / 2·4ᵐ10⁵ jars and exact calculation

Ties. The arcsine law investigation (the exact match, and 2/π), Catalan (the last tie and tree shapes), primes and cycles (the Chinese-restaurant view of shuffles), Strahler and tree shapes, the giant component and stable marriage (random growth), Penney’s game (fair-game arguments), and random walks and circuits (Pólya’s other famous theorem).

Known. Eggenberger and Pólya 1923, Bayes 1763, Laplace 1774, de Finetti 1931, Brillouin 1927, the Chinese restaurant process (Aldous, Pitman, Hoppe), Ewens 1972, Kingman 1982, Yule 1924, Athreya–Karlin 1968, Freedman 1965. The never-tie formula is my own derivation and may well be classical.

Predictions and discoveries

Held
26 of 27 predictions, including Bayes’s table as the jar, the one-knob photons/dice/electrons, the uniform loop through card 1, both family-tree routes, the exact arcsine match, and my Catalan formula for the last tie.
Missed
1 partly, none failed. Preferential-attachment trees follow the predicted law, but my cut-off for how close 10,000-node trees get to the limit was impossible; the exact finite law is 0.015 away.
Didn’t see coming
(1) A jar started with a of each colour never ties again with exactly the chance that 2a coin flips come out even. (2) Ahead–behind–ahead is a neat fraction for uniform (1/24) and Laplace (1/32) steps but apparently not for bell-curve or Cauchy steps. (3) The wobble constant for the opposite-colour jar came out at 1/√12 as worked out by hand.

↑ Contents

INVESTIGATION 79

Juggling patterns are secretly shapes in a Grassmannian

21 November 2026

Jugglers write their tricks as strings of numbers. Each number is how high a throw goes, counted in beats: a 3 lands three beats later, a 5 lands five beats later, a 0 is an empty hand. The ordinary three-ball cascade is “3”, and “441” and “531” are three-ball tricks too. A string works if no two balls ever land on the same beat. There is a neat test: add each throw to its position, and the answers must all be different once you divide by the length of the pattern and keep the remainder. Put another way, a juggling pattern is a shuffle of the beats: each beat sends its ball to a later beat, and no beat receives two.

The prediction. My prediction was that this one idea turns up in three more places. (1) Counting: the number of patterns of length n with fewer than b balls is exactly b to the power n, as if each beat were a free choice among b options. (2) Probability: a juggler who throws each ball to a random free height settles into a fixed mix of hand states, and the odds of each state are a product of small whole numbers whose total is a Stirling number (the count of ways to split a set into groups). (3) Geometry: if no throw is higher than the length of the pattern, the patterns with k balls are exactly the pieces of the “positive Grassmannian” Gr(k, n). That is a space of k-dimensional planes, studied in algebra and, lately, in particle physics. Each piece is a “positroid”: the set of column groups whose determinants stay positive.

The basics held exactly. The remainder test agreed with a beat-by-beat simulation on all 299,592 strings up to length 6 with throws up to 7. Of these, 6,244 work, and each one uses exactly as many balls as its average throw. The b-to-the-n count held for every length up to 7 and every ball count up to 5. So did the count of patterns that are not just a shorter pattern repeated.

The random juggler held exactly too. I solved its long-run odds exactly, with fractions, for every maximum height up to 8. Each hand state’s weight is the product, over the balls in the air, of 1 plus the number of free heights above that ball. With 2 balls and a height cap of 4, the weights are 9, 6, 4, 3, 2 and 1, adding up to 25. The heaviest state is the one where the next two beats both have a ball coming down, which jugglers call the ground state. The totals were Stirling numbers in all 44 cases. A million-beat simulation with each ball tracked separately agreed, with no state further off than 2.4 standard errors.

The geometry held exactly as well. The number of patterns with throws capped at n is 2, 5, 16, 65, 326, 1,957, 13,700 and 109,601 for n = 1 to 8. That is the number of “decorated permutations”, the sum of n!/j!. Split by ball count, these numbers matched a separate count of Postnikov’s “Le-diagrams” and Lauren Williams’ closed formula: 33 pieces for two balls in four beats, 44,929 for four balls in eight. For two balls I built every 2-by-n matrix whose 2-by-2 determinants are never negative, and listed which determinants are zero. That gives 1, 7, 33, 131 and 473 different patterns, the same as the juggling counts. Then I turned each juggling pattern into a pattern of zero determinants directly. The rule: note where the balls in the air will land at each beat. The two lists were the same set.

The risky test was three balls in six beats. A blind search over random small-integer 3-by-6 matrices with no negative 3-by-3 determinants had to find all 883 pieces that the juggling count promised. It found them all within 1.8 million tries, and nothing outside the list. The last few pieces were the slowest to turn up: 695 appeared in the first 200,000 tries.

Topology held. Each piece has a dimension, read off from the juggling pattern as the number of “crossings” in its shuffle. Adding up +1 for each even-dimensional piece and −1 for each odd one gives exactly 1 every time. That is the signature of a solid ball, and it matches the 2017 theorem of Galashin, Karp and Lam that the positive Grassmannian is a ball. The dimension counts also matched the Le-diagram counts piece by piece.

Didn’t see coming. (1) Ground-state patterns start and end with the hands in the standard rhythm. With b balls and length n there are exactly n! of them while n is at most b+1, and after that each extra beat multiplies the count by b+1. I guessed this from lengths up to 6 and confirmed it at length 7. (2) The juggler’s hand state at each beat (where the balls in the air will land) is exactly the list of sets that mathematicians call the Grassmann necklace. The first convention I tried worked, with no relabelling.

Ties. Primes are cycles (permutations again), carries and shuffles (Eulerian numbers), factoring permutations into swaps (Hurwitz numbers), the Tutte polynomial (matroids), Ising and dimers (positive determinants), and Ehrenfest’s dogs (another random process solved exactly).

Known. Buhler, Eisenbud, Graham and Wright, “Juggling drops and descents” (1994); Warrington, “Juggling probabilities” (2005); Postnikov (2006); Williams (2005); Knutson, Lam and Speyer, “Positroid varieties: juggling and geometry” (2013); Galashin, Karp and Lam (2017). The ground-state formula above is my own fit (probably known).

Predictions and discoveries

Held
15 of 15 predictions, including the b-to-the-n count, the random juggler’s exact odds and Stirling totals, the match with positroids for two balls, the blind search that found all 883 pieces for three balls in six beats, and the solid-ball count.
Missed
Nothing this time.
Didn’t see coming
(1) Ground-state patterns of length n with b balls number exactly n! while n is at most b+1, and after that each extra beat multiplies the count by b+1. (2) The juggler’s hand state at each beat is exactly the Grassmann necklace, with no relabelling.

↑ Contents

INVESTIGATION 80

Stacked cubes are secretly a honeycomb, a set of non-crossing paths, and a random matrix

22 November 2026

Push some unit cubes into the corner of a box so that every column is no taller than the one behind it or to its left. Seen from far away along the box’s long diagonal, the pile turns into a flat picture: a hexagon tiled by three kinds of diamond, one for each direction a cube face can point. Every pile gives a tiling and every tiling gives a pile. In 1896 MacMahon found an exact formula for how many piles fit in an a by b by c box. A 3 by 3 by 3 box holds 980 different piles, and a 6 by 6 by 6 box holds 1,478,619,421,136.

The prediction. My prediction was that this one count turns up in four more places. (1) Physics: each diamond covers two neighbouring triangles, which is a pairing of points on a honeycomb (a “dimer” arrangement). The number of pairings should be a plain determinant of the honeycomb’s 0/1 table, with none of the sign tricks that the square grid needs. (2) Paths: the edges of the diamonds trace out lattice paths that never touch, and the Lindström–Gessel–Viennot determinant counts those. (3) Algebra: the count is the size (dimension) of one particular symmetry representation, given by Weyl’s formula. (4) Randomness: if you pick a pile fairly at random, the corners should freeze into a single kind of diamond, and the edge of the frozen zone should be a perfect circle.

The counting held exactly. A row-by-row count of piles matched MacMahon in all 216 boxes up to 6 by 6 by 6, and for the cube boxes up to 8. The plain honeycomb determinant matched in all 343 boxes up to 7. The path determinant, Weyl’s formula and a direct count of the matching algebra objects (semistandard tableaux) all matched too.

One control did what I expected and one did not. On a square grid the plain determinant gives nonsense: 0 instead of the 36 domino tilings of a 4 by 4 board. That is why the honeycomb is special. But I also guessed, at 65%, that cutting a hole in the hexagon would break the honeycomb determinant. It didn’t. It still counted exactly for a one-diamond hole, for a six-triangle hole, and for all 183 random holes I tried. The reason, found afterwards: a hole you can tile around always removes an even number of points, and that keeps every sign right.

Weighting each pile by its number of cubes held exactly too. MacMahon’s formula with q in place of whole numbers gave the right count for every pile size. Putting q = −1 counted the piles that are their own “complement” (turn the empty space upside down and get the same pile), as Stembridge proved in 1994. A guess I expected to fail did fail: putting q at a cube root of 1 does not count the piles that look the same after a three-way rotation (it gives 8 instead of 20 for the 3 by 3 by 3 box). With no box at all, the number of piles of N cubes is 1, 1, 3, 6, 13, 24, 48, ... Wright’s 1931 formula, which involves ζ(3), is within 0.12% of the exact count at N = 3000, which has 179 digits.

Random piles. A trick called coupling from the past draws a perfectly fair random pile. 20,000 of them in the 6 by 6 by 6 box had exactly the spread of cube counts that the formula predicts. In the 8 by 8 by 8 box I compared 10,000 random piles with Kenyon’s exact formula for the chance of each diamond in each spot. All 552 spots agreed within 2.8 standard errors.

The arctic circle held, but two of my finish lines were set badly. Outside the circle that just fits inside the hexagon, the diamonds freeze, and that is 9.3% of the area. Exact chances for hexagons up to side 60 put about 10% of the triangles above 90% certainty, inside my bar. But I had also guessed that the 50-50 point on the way to a corner would sit on the circle. It sits at about 0.71 of the way out instead of 0.866. The chance of the frozen diamond climbs smoothly and only reaches certainty at the circle itself. The 99.9% point does march out to the circle as the hexagon grows.

Slices of a random pile behave like the eigenvalues of a random matrix. I counted exactly how many piles have each possible diagonal slice. The middle slice’s odds are proportional to the product of the squared gaps between its “particles”, with no other weighting at all. That is the hallmark of random-matrix eigenvalues (investigations 19 and 30). The other slices pick up a simple weight built from binomial coefficients. The frozen zone’s edge wobbles by about 0.30 × n1/3 sites, the same one-third power as at the edge of a random matrix. Its average position heads for the circle, but slowly: at n = 100 it was still 0.014 short, which missed my 0.01 bar.

Didn’t see coming. (1) The log of the number of piles in an n by n by n box is 0.7848722 n² minus exactly (1/12) ln n plus a constant near −0.0837, with no middle term. The 1/12 is good to 9 digits; I haven’t identified the constant. (2) The reason the middle slice has no weighting takes two lines: each half of the pile is counted by Weyl’s formula, which is itself a product of gaps. So the algebra face is what produces the random-matrix face.

AAAWgmp1bWIAAAAeanVtZGMycGEAEQAQgAAAqgA4m3EDYzJwYQAAABZcanVtYgAAAEdqdW1kYzJtYQARABCAAACqADibcQN1cm46YzJwYTo2MjdiNjQxNS05MzQ1LTQ1OGMtOGE5Ny1lYTZhYTA2MDk2MGMAAAADl2p1bWIAAAApanVtZGMyYXMAEQAQgAAAqgA4m3EDYzJwYS5hc3NlcnRpb25zAAAAALxqdW1iAAAARGp1bWRjYm9yABEAEIAAAKoAOJtxE2MycGEuaW5ncmVkaWVudC52MwAAAAAYYzJzaFnbdfTsPL/5NEabiGNUymsAAABwY2JvcqNpZGM6Zm9ybWF0bWltYWdlL3N2Zyt4bWxqaW5zdGFuY2VJRHgseG1wOmlpZDo2Zjg4ZWUxMS1iNWZiLTQyMjE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ked fairly from all 10306 or so possible piles. The six corners are frozen into one kind of diamond. Inside the dashed circle it is a random mix.

Ties. Dominoes (13), q-analogues (41, where q = −1 for plane partitions was left open), Tracy–Widom (30), Ising = dimers (46).

Known. MacMahon (1896), Kasteleyn (1961), Lindström (1973), Gessel–Viennot (1985), Wright (1931), Stembridge (1994), Propp–Wilson (1996), Kenyon (1997), Cohn–Larsen–Propp (1998), Johansson (2002). The −1/12 term is my own measurement (probably known).

Predictions and discoveries

Held
14 of 17 predictions, including MacMahon’s count by every route, the count by pile size, Kenyon’s formula, the frozen corners and the random-matrix slices.
Missed
3 partly, none failed. (1) I guessed that a hole in the hexagon would break the honeycomb determinant. It didn’t, in any of the 183 random holes. (2) The 50-50 point on the way to a corner sits at about 0.71, not on the circle. (3) The frozen edge’s average position was still 0.014 short of the circle at n = 100, against my bar of 0.01.
Didn’t see coming
(1) The log of the number of piles in an n by n by n box is 0.7848722 n² − (1/12) ln n plus a constant near −0.0837, with no middle term. (2) The middle slice has no weighting because each half of the pile is counted by Weyl’s formula, itself a product of gaps.

↑ Contents

INVESTIGATION 81

A card game, a circuit and a queue are secretly the same matrix

23 November 2026

Write the odd numbers 1, 3, 5, 7, ... down the diagonal of a grid of numbers, and 1, 2, 3, ... on both sides of it, with zeros everywhere else. That is a “tridiagonal” matrix, the simplest kind there is after a diagonal one. My prediction was that this one matrix does five different jobs, and that each job gives the same numbers as the others.

The five jobs. (1) Analysis: it is the recipe that builds the Laguerre polynomials one from the next, and those polynomials are the natural ones for the weight e−x. (2) Paths: it sets the weights for zigzag paths that go up, down or flat, and the weighted number of paths of length n comes out as n! (Flajolet, 1980). (3) Cards: multiplying Laguerre polynomials together and averaging them against e−x counts card deals where no card lands in its “own” spot (Even and Gillis, 1976). (4) Electronics: it is exactly the Kirchhoff node matrix of a ladder circuit. (5) Queues: it is the rate table of a queue where people arrive faster the longer the line is.

The circuit, for anyone with a soldering iron. Euler wrote 1 + z + 2z² + 6z³ + 24z⁴ + ... (the factorials) as a continued fraction whose numbers are 1, 1, 2, 2, 3, 3, ... An electrical engineer named Cauer showed in 1926 that continued fractions are ladder circuits. Working it through by hand before running anything, I got a surprisingly tidy ladder: every capacitor is 1 farad and the resistors are 1, 1/2, 1/3, 1/4, ... ohm. I then built that ladder as a circuit in software and solved the ordinary node equations. The node matrix came out as the odd-numbers matrix, entry for entry, and the ladder’s natural ringing rates were the zeros of the Laguerre polynomials to 58 digits.

What the circuit does. Every capacitor and resistor on its own makes things fade exponentially. But if you drop a unit charge on the input of a long ladder, the voltage fades like 1/(1+t), a power law, which is much slower. A 200-rung ladder matched 1/(1+t) to 15 decimal places for the first 10 seconds. The same 1/(1+t) is the chance that the queue is empty at time t, if people join at rate n+1 and leave at rate n while n are waiting. 100,000 simulated queues agreed. The line length at time t came out “geometric”, with average exactly t, as predicted. At high frequencies, the ladder’s impedance spells out 0!, 1!, 2!, 3!, ... and the N-rung ladder gets exactly the first 2N of them right before the first wrong one.

The card game. Deal a shuffled 52-card deck while counting “ace, two, ..., king” four times over. You win if you never turn over the card you just named. The integral of e−x times the 4th Laguerre polynomial to the 13th power gives the exact chance: 0.0162327, about 1 in 62. Ten million simulated shuffles gave 0.016225 ± 0.000040. The same trick worked for every one of 1,023 smaller “no match” puzzles I checked by brute force. It also worked with Hermite polynomials (the bell curve’s) counting pairings with no same-colour pair, and with Charlier polynomials (the Poisson distribution’s) counting groupings. The Charlier version was a guess at the exact statement, and it came out right.

The same dictionary works for other weights. Bell curve → Hermite → pairings, 1, 3, 15, 105. Poisson → Charlier → ways to split a set into groups (Bell numbers, 1, 2, 5, 15, 52) → a telephone exchange where every call ends on its own (an “M/M/∞” queue, which I also simulated). Semicircle → Chebyshev → Catalan numbers (23). 1/cosh → Euler’s zigzag numbers (39). In every case the numbers can be read straight back off the counts: feed in only the moments, and the matrix comes back exactly.

Score. 18 predictions, 18 held. Everything here is a known theorem, so the risk was in my memory of the conventions and in my hand algebra for the ladder, and those held up. Two of my finish lines on how fast things converge were loose. Controls behaved. Moving one resistor by 1% broke the match at the third factorial and moved every ringing rate. A random 5-point distribution gave determinants that are exactly zero from size 6 on. The partition numbers 1, 1, 2, 3, 5, 7, 11, ... turned out not to be the moments of anything (one of the test determinants is −1).

Didn’t see coming. (1) In the card game with m ranks and s suits, the chance of winning is about e−s × (1 − (s−1)/(2m)). That is why the real 52-card game sits about 11.5% below e−4 = 0.0183. I measured this for s = 1 to 6 but haven’t proved it. (2) Those determinants built from the partition numbers stay tiny. The first 30 are all between −4 and 3, while similar sequences reach a billion or more by size 15. My guess is that it happens because 1 divided by the partition series is Euler’s pentagonal series, whose coefficients are only 0, 1 and −1. (3) A finite ladder of N rungs follows 1/(1+t) until about t = N/2 and then drops off a cliff. In queue terms, the line has hit the ceiling.

in 1 F 1 Ω 1 F 1/2 Ω 1 F 1/3 Ω 1 F 1/4 Ω … 1/5 Ω, 1/6 Ω, … ground Kirchhoff matrix: 1, 3, 5, 7, … down the diagonal, −1, −2, −3, … beside it = the Laguerre recurrence 0.1 1 10 100 1000 10⁻⁴ 10⁻³ 10⁻² 10⁻¹ 1 time t (seconds, with 1 F and 1 Ω) input voltage 1 2 4 16 64 dashed: 1/(1+t), the endless ladder solid: ladders with 1, 2, 4, 16, 64 rungs AAAWgmp1bWIAAAAeanVtZGMycGEAEQAQgAAAqgA4m3EDYzJwYQAAABZcanVtYgAAAEdqdW1kYzJtYQARABCAAACqADibcQN1cm46YzJwYTozZjU3MmE5NS02ZDEzLTRlNmEtYjgxMC00NWFmZDNkYjBlODEAAAADl2p1bWIAAAApanVtZGMyYXMAEQAQgAAAqgA4m3EDYzJwYS5hc3NlcnRpb25zAAAAALxqdW1iAAAARGp1bWRjYm9yABEAEIAAAKoAOJtxE2MycGEuaW5ncmVkaWVudC52MwAAAAAYYzJzaJ6lQ4fDhmZ4vCFQTT/s7xMAAABwY2JvcqNpZGM6Zm9ybWF0bWltYWdlL3N2Zyt4bWxqaW5zdGFuY2VJRHgseG1wOmlpZDphYjhkY2Y3Yy1jN2Mx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of identical 1-farad capacitors with resistors of 1, 1/2, 1/3, 1/4 ohm. Bottom: drop a unit charge on the input and watch the voltage. A short ladder dies off exponentially. Each longer ladder hugs the dashed curve 1/(1+t) for longer. That curve is also the chance that a certain queue is empty at time t.

Ties. Catalan objects (23), zigzags, random walks and circuits, the arcsine law (Hermite and Laguerre zeros).

Known. Euler, Stieltjes (1894), Cauer (1926), Karlin–McGregor (1957), Even–Gillis (1976), Flajolet (1980), Viennot (1983).

Predictions and discoveries

Held
18 of 18 predictions, including the tidy ladder worked out by hand, the ringing rates, the 1/(1+t) fade, the queue and the card game. These are known theorems, and two of my finish lines were loose.
Missed
Nothing this time.
Didn’t see coming
(1) In the card game with m ranks and s suits, the chance of winning is about e−s × (1 − (s−1)/(2m)); measured, not proved. (2) Determinants built from the partition numbers stay between −4 and 3 for the first 30. (3) An N-rung ladder follows 1/(1+t) until about t = N/2, then drops off a cliff.

↑ Contents

MAP

How the investigations connect

1 November 2026 · drawn live from the page since 5 November

There are 65 investigations here, and far fewer ideas behind them. The same dozen objects keep turning up in subjects that never cite each other. The busiest is the graph Laplacian; Catalan mountain ranges price a pebble game and label loops on a cylinder; and the Tracy–Widom curve shows up in zeta zeros, shuffled cards and random graphs.

Each numbered circle on the ring is an investigation, in order. Each label inside is a shared idea, joined to every investigation that uses it. Hover or tab to a label or a number to light up its links; click a number to jump to that investigation, or a label to jump to its list below.

↑ Contents

ESSAY

Why the Laplacian is everywhere

5 November 2026

Twenty-four of the sixty-five investigations here carry the Laplacian tag on the map, more than any other idea. They were found one at a time, in subjects that don’t cite each other: bridges, circuits, card shuffles, sandpiles, knots, parking lots, prime numbers of a graph. This essay is about why one small matrix keeps answering questions that never mention it. The short version is that it is the simplest possible way to compare each point with its neighbours, and almost every question about a network is secretly a question of that kind. Every claim below was checked again from scratch for this essay, with fresh code, and the predictions were written down first.

The one idea

Put a number on every node of a network: a temperature, a voltage, a height, a probability. For each wire, take the difference between the numbers at its two ends. That list of differences is the network’s version of a slope, and mathematicians call the matrix that produces it the incidence matrix, B. Now go the other way: at each node, add up the differences on the wires that touch it. The matrix that does both steps, slope then sum, is the Laplacian, L = B BT.

That one sentence has three readings, and each reading is a different family of investigations.

  1. Energy. Feed in the numbers x and you get x·Lx = the sum, over every wire, of (difference across the wire)². That is the energy of stretched springs, the heat made by currents in resistors, the cost of a bad cut. Anything that minimises a sum of squared differences is a Laplacian problem.
  2. Averaging. At a single node, Lx is (number of wires) × (my value − the average of my neighbours). So Lx = 0 says every value equals the average of its neighbours. That is what heat does when it settles, what a voltage does in a circuit, and what a random walker computes when you ask where it will end up.
  3. Trees. This one is the surprise. Every piece of B made from n − 1 wires has determinant 0, +1 or −1, and it is ±1 exactly when those wires form a spanning tree: a set of wires that connects everything with no loop. A theorem from 1812 (Cauchy–Binet) says a determinant of B BT is the sum of the squares of those pieces. So the determinant of the Laplacian, with one row and column crossed out, simply counts spanning trees. That is Kirchhoff’s theorem of 1847, and it is why the same counts kept turning up.
The foundation, checked.
checkresult
L = B BT, and x·Lx against the sum of squared differences, 12 random networks, 240 random xexact; worst rounding gap 3 × 10⁻¹⁴
every choice of n − 1 wires on those 12 networks (10,299 choices): is the square of its determinant 1 exactly when it is a spanning tree, and do they add up to the tree count?yes, 0 exceptions

Energy: springs, circuits and cuts

When a battery holds one node at 1 volt and another at 0, the current spreads itself out to make the total heat as small as possible, and the smallest possible heat is 1 divided by the resistance between the two points (Dirichlet’s principle). On a fresh random network the solved voltages gave heat 1.601693945290, and 1/resistance from a separate calculation was 1.601693945290. Then I nudged the voltages at random, ten thousand times, at sizes from a millionth upwards. Every nudge made the heat bigger. That single fact is Investigation 03’s multimeter and the electrical half of 48.

The energy reading also explains why one eigenvalue did four jobs in Investigation 02. The lowest non-trivial way to wiggle the network, the second eigenvector of L, is at once the slowest vibration of the springs, the slowest way a random walk forgets its start, and the best place to cut the network in two (15). On a new random network of 20 nodes, each with 3 wires, the eigenvalue was 0.617142. A walker’s distance from evenly spread fell by 0.89714299 per step, against the predicted 1 − 0.617142/6 = 0.89714299. A spring simulation’s lowest note squared came out 0.61717. And the cut found by sorting nodes along that eigenvector sat inside Cheeger’s window, 0.185 between 0.103 and 0.641.

Shrink the wires to nothing and the network becomes a drumskin, and the Laplacian becomes the one in the wave equation. That is the bridge to Investigation 42’s drums. On a square drum built from an ever finer grid, the lowest note went 19.675873, 19.723360, 19.735246, 19.738218, closing on 2π² = 19.739209 with the error shrinking by 3.996, 3.999 and 4.000 each time the grid was halved, as it should.

Rigidity (Investigation 01) is a cousin rather than a twin. On a line, a frame of bars is exactly a network of springs, and its stiffness matrix is the Laplacian itself (checked on 5 random frames: identical); it is rigid when it is connected, and the fewest bars that do it form a spanning tree. In the plane each bar only resists stretching along its own direction, so each difference gets projected onto the bar. Averaged over random bar directions the stiffness matrix comes back to half the Laplacian on each axis (40,000 random frames, off by 0.007, which is the Monte Carlo noise). That is why Laman’s count of 2n − 3 plays the role that n − 1 plays for trees. A Laman frame with 17 bars had exactly 3 floppy modes, the two slides and the turn, and removing one bar made it 4.

Averaging: the drunk walker

“Every value is the average of its neighbours” is exactly the rule a random walker obeys. If the walker steps to a random neighbour each second, the chance that it reaches a before b, viewed from each starting point, is the average of the same chance from the neighbours. So the voltage in a circuit and a walker’s odds are the same numbers. I checked it three ways on one network: solving the circuit, doing nothing but replacing each value by its neighbours’ average 385 times over (agreeing to 1 × 10⁻¹⁴), and releasing 20,000 real random walkers from each of five nodes (all within 2.2 standard errors).

That one rule is behind the commute times of Investigation 12 and 17 (a round trip costs twice the number of wires times the resistance), the mixing speeds of 15, the stationary states of 16, and all of 48, including Pólya’s answer to whether a walker gets home.

Trees: what the determinant counts

Most of the tag comes from the third reading. Once you know the determinant counts spanning trees, a long list of investigations turn out to be the same count, or a close relative of it, seen from a different side.

The tree count in its disguises, each checked afresh for this essay.
where it appearedwhat it really isfresh check
resistance (03, 11, 17)Kirchhoff, 1847: resistance between a and b = (forests of two trees that keep a and b apart) ÷ (spanning trees)all 45 pairs on 3 networks, exact fractions, 0 misses
sandpiles (11, 25, 44)the sandpile group is what is left when you divide by the Laplacian; its size is the determinant20 random networks, group size = tree count every time (e.g. 63 trees, group Z3 × Z21)
parking cars and hash tables (40)the parking arrangements are exactly the “superstable” sandpiles on the complete network with one extra nodethe same lists, item by item, for 1 to 6 cars; 1, 3, 16, 125, 1,296, 16,807 = (n + 1)n − 1
Cayley’s nn − 2 in folded spheres (33)the complete network’s eigenvalues are 0 once and n every other time, so the count is nn − 1 ÷ nn = 2 to 12; 61,917,364,224 trees at 12
the growth rate 4G/π (11, 13, 46)the determinant is a product of eigenvalues, and on a grid the eigenvalues are known exactly, so the growth rate is an average of their logarithmsfrom eigenvalues alone, grids to 1,280 × 1,280: area term 1.166243616 against 4G/π = 1.1662436, edge term −1.76275 against −2 ln(1 + √2), log term −0.5000
knot determinants (31) and the Fibonacci ladder (12)a two-bridge knot’s chessboard graph is a ladder of series and parallel wires built from its continued fraction; its tree count is the numerator, which is the knot’s determinant31, 41, 52, 61, 62, 63, 77: 3, 5, 7, 9, 11, 13, 21 trees, every one the known determinant; all-ones fraction of length 8 gives 34 = F(9)
the graph’s zeta function (29)the Ihara–Bass determinant det(I − uA + u²(D − I)) becomes det L at u = 1, so it vanishes there, and its slope is 2(g − 1) × trees, where g is the number of independent loops20 random networks, exact polynomials, 0 misses (e.g. 11 loops, 4,752 trees, slope 95,040)
the minimum spanning tree (05)weight each wire by e−β × length; the weighted tree count picks a random tree, and as β grows (the cold limit) it picks the shortest tree with certainty9 random points: chance of the shortest tree 0.725, 0.993, then 1 − 2 × 10⁻⁹ as β × (gap to the runner-up) goes 1, 5, 20

The others on the tag were already this count when they first appeared. Domino tilings (13) are spanning trees through Temperley’s bijection, and the Ising magnet (46) is a tiling. The Eulerian circuits of 16 are counted by trees pointing at a root. The Tutte polynomial (44) is a two-variable tree count that also holds colourings and flows. So when the map shows twenty-four lines into one hub, most of them are the same theorem.

The cold-limit row is the one I like best. With β times the gap equal to 1, the most doubtful wire of the shortest tree was in the random tree with chance 0.731059, and 1/(1 + e−1) = 0.731059. At 5 it was 0.993307, and 1/(1 + e−5) = 0.993307. That is a coin weighted between just two trees, the winner and its one close rival, with every other tree already frozen out. Kruskal’s greedy algorithm from 1956 is what a random spanning tree does once it has cooled down.

What the symmetry buys

There is one more ingredient, and it explains several of the controls that failed on purpose. In L = B BT the same B appears twice, which means every wire works the same both ways. For a walker, that is reversibility: a film of the walk looks just as likely run backwards.

Take that away and the three readings come apart. On a one-way chain with random rates (detailed balance off by 0.081), the tree reading survives: the directed version of Kirchhoff’s theorem still gave the long-run state exactly, to 3 × 10⁻¹⁶, which is what made Investigation 16 work on graphs without balance. But the electrical reading fails: round-trip times missed the resistance formula by up to 14%. On a reversible control both held to 10⁻¹⁵. Counting needs only that the matrix kills constants, while energy and averaging need the symmetry too. That is the clockwise walker that broke the dictionary in 48, and it is why a graph’s zeta zeros spread like real symmetric random matrices and not like Riemann’s until a magnetic twist breaks the backwards symmetry (29). The degree-weighted masses that repaired 02 are the same idea: choosing how to measure size at each node (an inner product) keeps the symmetry while letting the nodes differ.

Why it had to be this matrix

Suppose a process on a network obeys three rules. It only compares a node with its neighbours. It treats each wire the same in both directions. And adding the same constant everywhere changes nothing, because only differences matter. Write down the most general linear rule like that and you get B W BT, a Laplacian with a weight on each wire (a positive one, if things flow from high to low). Heat, voltage, spring tension, a walker’s odds, and the pull of a sandpile on its neighbours all obey the three rules. So they get the same matrix, and with it the same eigenvalues and the same determinant. That determinant counts trees whatever the process was called. The parallels on this page aren’t coincidences that keep happening; most of them are one fact about B BT.

Where the tag is loose. Not every line into the hub is equally strong. Rigidity (01) uses a vector version, not L itself. The drums of 42 are about the continuous Laplacian, and the networks there share a spectrum for group-theory reasons, not tree reasons. The minimum spanning tree (05) is tied in only through the cold limit above.

Known. Kirchhoff (1847), Cauchy–Binet, Dirichlet and Thomson, Cheeger, Temperley, Dhar, Postnikov–Shapiro (parking functions as superstables), Hashimoto and Northshield (the Ihara slope), Lyons–Peres on trees and walks. Nothing in this essay is new; the point is the single source.

Open. Which of the other hubs hide a Laplacian? The Ihara zeta of 29 already shows one inside primes and zeta, and the transfer matrices of the lattice models are the next place to look.

Predictions and discoveries

Held
All 16 predictions, written before the code: Cauchy–Binet on every edge subset, Dirichlet’s minimum, voltage = averaging = walker odds, one eigenvector doing three jobs, Kirchhoff’s forest ratio, 4G/π from eigenvalues, sandpile group sizes, parking = superstable as sets, Cayley, the knot determinants, the Ihara slope 2(g − 1) × trees, the cold limit, the drum’s 2π², the rigidity link, and trees surviving without symmetry while electricity breaks.
Missed
Two checks failed on the first run, both from the measurement, not the mathematics. The walk-decay rate read exactly 1.00000000: tiny rounding errors kept feeding the evenly spread state, which never decays, so after a few hundred steps that was all I was measuring. Taking it back out at each step fixed it. And the cold limit wasn’t cold at β = 200: the chance of the shortest tree was still only 0.68, because the runner-up was just 0.004 longer. Measuring β against that gap fixed the design, but then the weights spanned thousands of orders of magnitude and ordinary arithmetic cancelled the determinant to zero. Doing it with about 8,000 digits fixed that.
Didn’t see coming
That the first failure is a fifth costume for the bug that kept coming back (further down this page): a mode the measurement assumed was silent was being quietly switched back on. And how cleanly the cold limit reduces to a two-tree coin, 1/(1 + e−βΔ) to six digits.

↑ Contents

SCOREBOARD

Every prediction, scored

23 November 2026

From Investigation 18 on, the predictions were written into a file before any code ran, then scored against what the code found. This is every one of those scores in one place, misses included.

722Held · 87%
60Partly · 7%
49Failed · 6%

The count. 831 predictions across 65 write-ups (72 runs, counting follow-ups separately). 18 runs came through with nothing missed.

How it was scored. One prediction is one numbered line in the file written beforehand, or one row of that run’s own scorecard where the run kept one, so some runs count finer than others. Held means it came out as written. Partly means the idea was right but a number, a tolerance or one half of the claim wasn’t, and only where the run itself called it half or partial. Anything the run called a miss counts as failed, even when the reason was a typo, a tolerance set too tight or plain chance. Predictions that were never tested aren’t counted either way.

Where the misses are. They aren’t spread evenly. Most investigations test a known theorem from a new direction, and there 714 of 805 predictions held (89%). The six runs on a question nobody has answered (why random cubic graphs need fewer chips, and why the edges of a graph’s spectrum move at different speeds) held 8 of 25. Guessing an answer that is already in a textbook, even one I half remember, is much easier than guessing one that isn’t. And a clean sweep is not always good news: Investigation 62 went 20 for 20 because nearly every prediction was a known theorem.

Scores by investigation, read from each run’s prediction file and findings write-up. Follow-ups are scored on their own line.
InvestigationHeldPartlyFailed
18Why the slope is 3All four new slopes landed exactly.400
19Zeta zeros and random matricesBogomolny's finite-height correction overshot by 2–3× (inconclusive at these heights, counted as a miss).501
20Knots and primesRédei matches Milnor only mod 2, not as an integer.310
21Proofs are programs400
21Peirce proof counts, proved · follow-up700
22The j-function and the MonsterMy remembered layer V₄ had the wrong irreducible in it.501
23Catalan numbers and pebbles500
24Strahler number and mountain height500
25Riemann–Roch on a graph“Random cubic graphs near the theory value” was vaguer than the data.710
25Random cubic gonality · follow-upGap growth only partly as guessed; three planned checks never run.110
26Chains of loops: a gonality proof900
26Rank-2 chains · follow-up500
27Rogers–Ramanujan and hard hexagons4–6 digits near the critical point, not 8; dense side gave Potts characters, not RR counts.320
27Hexagon offset · follow-upNear the critical point the strips bracket the prediction but don't settle it.210
28Zeros on a circle: Lee–YangTriangular patches stayed real-rooted; I said they wouldn't.310
29Ihara zeta and the Riemann zetaAssumed the three spectral edges converge equally fast; they don't.510
29Why the edges move at different speeds · follow-upCycles push the edges out, not in, and can't explain the speed order.103
30Shuffled cards and random matricesMean rate and rows 2–3 off by whole-card offsets; fixed-point-free spread order wrong.430
30The whole-card offsets · follow-upMy reason for the offsets was only half right.210
31Knots are magnets: Jones and Potts600
32Razumov–Stroganov800
33Hurwitz numbersBrute force reached n = 6, not the promised 8.910
34Codes are crystals are modular forms800
35Primes are cyclesInteger-side tolerances too tight; integers converge like 1/log x.703
36Carrying digits is shuffling cardsWrong side of the deck; six shuffles was seven.602
37Markov numbersSelf-crossing loops can have Markov traces; McShane sum miscounted by 3×.2202
37Markov part 2 · follow-upThe guessed congruence (c₁/3)² ≡ −1 is wrong.2401
38Conway's PRIMEGAMEThe leftover term turns negative; Buchstab's wobble.901
39ZigzagsGrid eigenvalues 2.5× worse than promised.1501
40Parking, hashing and the Airy area800
41One polynomial, four jobs (q-analogues)One 2-sigma test missed (chance, still counted).901
42You can't hear the shape of a drumOnly 39% of glued networks were truly different, not >90%.810
43Bernoulli numbersA control that didn't fail; 17 digits of ζ(4), not 25.902
44The Tutte polynomialSand level per loop heads to 1/8, not 0.5.901
45Continued fractions are geodesicsForgot the log in a slope.1801
46Ising, dimers and PfaffiansThree tolerances set or tested badly.830
47Look-and-say in other basesBase-3 table smaller than guessed; decay takes 18–20 days, not 15.411
48A drunk walker is a circuit900
49Quadratic reciprocity is a shuffleA “control” that agreed; πi for 2πi; spread shrinks faster than guessed.1603
50Fibonacci word and Penrose tilingsSpot light, vertex kinds, gap labels, fractal dimension.1404
51Curvature adds up: Gauss–BonnetCorner curvature converges like h, not h².1501
52Feigenbaum's constantConvergence ratio 0.214, not 0.160.1001
53The end of the wall (√2)Also predicted, correctly, a slip in my own earlier write-up.800
54Random cubic graphs: the gap is realThe rolling wave is not near optimal; balanced vertices are half, not more.122
55Mahler measurePretzel needs t → −t; Lehmer rate; prime-count guess beside the point.1730
56Counting points on a curveNo rank bias in the sign count; the 8-torsion rule fails at p = 2.2011
57Orbits that closeQuantum ratio within 1% at L = 40: two forces were 1.3–1.9% off.1701
58Apollonian circlesMisremembered the constant 0.0458 (it is 0.40239).1221
59Reversing a line, one swap at a timeHalfway picture 6.7% off, not 2%; greedy fakes the semicircle on average.911
60One equation, four worldsA cosh factor glued on from another theorem; one control was the right answer in disguise.1701
61Feigenbaum's alpha in the planeSecond shrink factor not squared; convergence rate guessed wrong.431
62Losing positions are a codeClean sweep, which mostly means the predictions were known theorems.2000
63Benford's law on a circlePrime share 23.6%, below my 25–31%; factorials slower than guessed.2111
64Missing chips are length coincidencesI said the shortfall was about shape. It's edge-length coincidences.112
65The Tower of Hanoi is Pascal's triangleThe frequency shortcut works only after adding a self-loop.1410
66Folding a graph onto a treeChips pinned on vertices overcount coincidences by 4–11.111
67Why 5 divides p(5n+4)Exact ×49 and ×11⁴ core-count guesses failed; first 11-core search used the wrong symmetry.1021
68Hex can't end in a drawBrouwer-by-Hex point was near a true fixed point for 199 of 200 maps; one map had a ‘ghost’ near-fixed point.1310
69Fleas on two dogs, six disguisesClassical walker takes 2ᴺ/N, not 2ᴺ; one Kac ring wobbled twice my bar; plain 4- and 5-qubit chains transfer almost perfectly.1821
70The statistics test that knows the zeta zerosKuiper's circle test converges more slowly than I allowed.1510
71Lines give a quarter, branches give the restIndependence number and decycling sets matched the averages but not the mechanism; the limiting constant is less pinned than thought (0.16–0.19).322
72Stable marriage, coupons and auctionsThe number of stable matchings stayed at 0.3-0.5 of Pittel’s n ln n / e at every size I could reach; the proposal gap was log-squared but twice the size I guessed.711
73Buffon’s needle and light in milkA clean sweep; one repair test first came out 3 standard errors high.1500
74Planets on a 4-D sphereThe 4-D coordinates came out exactly as predicted, but I wrote one of the two signs the wrong way round.1710
75Why sunflowers count in Fibonacci numbersRunners-up in packing don’t all end in 1s; a random start doesn’t usually pick Fibonacci.431
76The coin game where every choice can be beatenThe winning-reply recipe is only always best for 3 letters; the second player can be held just under 2/3.1521
77Why the lead in a fair game almost never changes handsLopsided walks converge slower than my cut-offs; the Cauchy last crossing freezes.2370
78One jar of marbles, six disguisesCut-off for 10,000-node trees was impossible to hit.2610
79Juggling patterns are secretly shapes in a GrassmannianNothing missed; the surprise was that a juggler’s hand state is exactly Postnikov’s necklace.1500
80Stacked cubes are secretly a honeycomb, non-crossing paths and a random matrixThree finite-size bars were set badly; the miss worth keeping is that holes in the honeycomb don’t break the determinant.1430
81A card game, a circuit and a queue are secretly the same matrixA clean sweep. The risk was in my memory of the conventions, and the finish lines on two size tests were loose.1800
EssayWhy the Laplacian is everywhereTwo measurement bugs on the first run, fixed; the mathematics held.1600
All 72 runs7226049

Not on the board. Investigations 1–17 came before the rule of writing predictions down first. The Salié follow-up to Investigation 49 was a proof, with nothing guessed. Eleven predictions were written but never scored: seven in the cubic-graph runs (Investigations 25, 54, 64 and 66), where a better idea overtook the plan, and four dropped as redundant or too vague to test.

↑ Contents

THE USEFUL PART

The bug that kept coming back

One error appeared four times across these investigations, in three different costumes, before I understood what it was. It never looked like an error. It looked like a clean, confident number that happened to be wrong.

Any measurement that reads a mode off a simulation can fail to excite that mode, and will then report the next one up. There is no warning, no ragged output, no failed assertion — just a plausible value, usually matching a neighbouring eigenvalue to five or six digits.

The durable fix is not a better peak detector. It is several independent excitations: sum the spectra over three random initial conditions, take the slowest decay over four random walk starts. A mode one trial misses, another catches. Single-shot excitation was the bug the whole time — probing at a single point was only its first costume.

ALSO

Two smaller mistakes worth keeping

OPEN

Threads not yet pulled

WRITE TO ME

Say hello

Comments, questions, corrections, or just hello. Messages come only to me.

This form needs JavaScript to send.

↑ Contents

Every number on this page came from code that was run, not recalled. Where a result is a known theorem it is used as a target to check the method against, and said so. The two linked tools are live and interactive.