Theme

Decided by exhaustion — page 14

Questions with finitely many cases, settled by going through all of them — and what changes when a claim about every argument becomes a count.
A sorting network on 8 wires. Batcher's odd-even merge network with 8 wires, 19 comparators and depth 6; it sorts every input, checked on all 256 strings of noughts and ones. Computation

A sort that never looks at the answers

Most sorting decides its next comparison from the last one. A sorting network decides them all in advance: a fixed sequence of swaps-if-out-of-order, wired up before any number arrives. Whether such a thing sorts everything can be settled by trying 2ⁿ strings of noughts and ones instead of n! orderings. Nineteen comparators sort eight numbers, and proving that nothing shorter sorts eleven took decades and a satisfiability solver. Over neighbours only, one single test, the reversed row, decides the whole question.

The twenty monotone functions of three letters. All 20 monotone Boolean functions of three letters drawn on the cube of inputs, from the constant false to the constant true. Logic

Functions that only go up

Of the 256 logical functions of three letters, only twenty never turn off when a letter is turned on. Dedekind asked in 1897 how many such monotone functions there are for n letters. Computing the count is hard enough that the answer has advanced one letter every twenty-five years or so, and the ninth arrived in 2023, from two groups in the same month, at forty-two digits. Almost everything about the number comes from a single layer of the cube.

Why 78,557 · 2ⁿ + 1 is never prime. For k=78557: 3 divides when n is 0 mod 2; 5 divides when n is 1 mod 4; 7 divides when n is 1 mod 3; 13 divides when n is 11 mod 12; 19 divides when n is 15 mod 18; 37 divides when n is 27 mod 36; 73 divides when n is 3 mod 9; every exponent covered with period 36. Number

Numbers that never make a prime

Multiply 78,557 by a power of two and add one. The result is never prime, for any power, though almost every other odd number gives a prime within a few doublings. The reason is that seven small primes take it in turn to divide the result, on a schedule repeating every 36 steps that leaves no step uncovered. Proving nothing smaller does this has taken sixty years of search, and five candidates are still running.

A full board has exactly one winner. A random 11 by 11 Hex board filled with two colours: second colour connects with a chain of 11 cells. Topology

A board that cannot be drawn

Colour a rhombus of hexagons in two colours. One colour must join its two sides, and only one: in all 65,536 colourings of the four-by-four board, no exception. The proof is a walk along the colour boundary, the same walk that proves Sperner's lemma, and David Gale showed that the no-draw theorem of this board game is equivalent to Brouwer's fixed-point theorem. Nobody knows the winning strategy for a full-sized board, though a short argument proves one exists.

A game of Sprouts. A game on two spots in four moves: each move joins two spots with a free life and adds a new spot on the curve; at the end the two surviving spots lie in different regions. Topology

A game decided before it starts

Draw some crosses on paper. Players take turns joining two free arms with a curve and adding a new cross on it. However they play, a game on n crosses lasts exactly 5n − 2 moves, so the winner is known before the first move: Euler's formula has already decided it. Its close relative Sprouts differs by one rule, leaving a real game whose winner for each size is known only by huge search, and which seems to depend on the size modulo six for no known reason.

Ten stable matchings on four a side. The market of four a side made by doubling, with all 10 of its stable matchings joined by the rotations that lead from one to the next, 18 in all. Applied

The market with the most stable matchings

Random preferences give a sixteen-a-side market about five stable matchings. Nesting a two-a-side market inside itself gives the same size 195,472, every one of them listed. That construction is forty years old and nothing has beaten it, while the ceiling above it has fallen from 2¹⁷ⁿ to 3.55ⁿ. The truth lies somewhere between 2.28ⁿ and that.

Alone on the track. Speeds 1, 2, 3, 4 relative to a still runner: the best time 0.2000 leaves every other runner at least 0.2000 away, exactly 1/5. Discrete

Alone on the track

Runners set off together at different constant speeds. Is each of them, at some moment, far from all the others? A pigeonhole on time gives half the conjectured distance in two lines, and sixty years of work have not closed the other half. The speeds 1, 2, …, k are exactly at the limit, and so, surprisingly, are 1, 3, 4, 7 and 1, 4, 5, 6, 7, 11, 13.

A season's games as a flow. Whether Detroit can still finish first: the games among the others are the left column, 27 wins to place, and each rival can absorb at most 76 minus its wins; the maximum flow is 26, so 1 wins have nowhere to go, and Detroit is out. Discrete

Out before the table says so

Detroit has 49 wins and 27 games left, so it can reach 76, and the leader has 75. On paper it is alive. It is not: the four teams ahead must play 27 games among themselves, and whoever wins them, those four finish with an average above 76. Finding that takes one maximum flow, and it is checked against every possible result of every game.

Eight points that do not want to be a cube. Closest-pair angle for 8 points: cube 70.5288 degrees, square antiprism 74.8585 degrees at height 0.5111, numerical search 74.8583. Geometry

Eight points that refuse the cube

Place eight points on a sphere so that the closest pair is as far apart as possible. A cube manages 70.53°. Rotating one face by 45° and pushing the faces together gives 74.86°. A botanist counting pores on pollen grains asked this in 1930, and proofs still stop at fourteen points: one search in five hundred finds the best thirteen, whose failure to reach 60° is why kissing spheres stop at twelve.

Lines that cut out as many triangles as possible. Straight-line arrangements found by a seeded climb: 5 triangles from 5 lines and 11 from 7, each meeting the bound. Geometry

The triangle a triple point buys

How many triangles can eight straight lines cut out? A count of line segments says at most 16, a parity argument takes off one, and the tables say 15. Yet every one of the 1,232,944 arrangements in which only two lines ever cross stops at 14. The fifteenth triangle exists only if three lines are made to meet at exactly one point, and moving a line by a hundredth loses it.

One function, two orders. The function a₁b₁ + a₂b₂ + a₃b₃ as a reduced decision diagram: 8 nodes with partners together, 16 nodes with them apart. Logic

The order of the questions

Decide a Boolean function by asking about its variables one at a time, and share every state that behaves alike. For a₁b₁ + a₂b₂ + … the result has 2n + 2 nodes if partners are asked together and 2ⁿ⁺¹ if they are apart. All 40,320 orders of eight variables give anything from 10 to 32 nodes, while multiplication's middle bit grows fast in the best order of all.

Two sign sequences laid on themselves. Length 41: random signs (seed 41) with E = 552 and merit factor 1.523; the rotated Legendre sequence of 41 with E = 176 and merit factor 4.776. Algebra

A quarter turn quiets the echoes

Lay a sequence of signs on a shifted copy of itself and add up the squares of the overlaps. Random signs leave the total near n²/2, and the squares modulo a prime, started a quarter of the way along, cut it to a twelfth. Exhaustive search finds far quieter short sequences, and no infinite family is proved to do better than 6.342.

Coefficients that close in on a positive curve. The form x² − 1.8xy + y² on the segment x + y = 1, minimum 0.050, with the coefficients of (x + y)ᴺ times it, divided by binomial coefficients, for N = 0, 6 and 19; at N = 19 all are positive. Algebra

Multiply until every sign is positive

A form with a negative coefficient can still be positive wherever its variables are, and proving it usually takes an argument. Pólya found a certificate that needs none: multiply by a power of x + y and wait until every coefficient is positive. The power needed is finite exactly when the form never touches zero, and it grows like the reciprocal of how close it comes.

Three widows and the Mishna's table. The Mishna's division of estates of 100, 200 and 300 among claims of 100, 200 and 300: 33⅓ each; 50, 75, 75; 50, 100, 150. Applied

The debts the Mishna divided

A man dies owing his three wives 100, 200 and 300. The Mishna divides an estate of 100 equally, of 300 in proportion, and of 200 as 50, 75 and 75, and for nearly two thousand years nobody could say why. The table is the nucleolus of a cooperative game, and the only division in which every pair splits its share as two people split a contested garment.

Every convex shape the tangram can make. The 13 convex polygons that the seven tangram pieces can form, each with one arrangement, and the number of arrangements of each: 20, 12, 12, 12, 36, 12, 8, 8, 16, 4, 56, 24, 36. Computation

Thirteen convex tangrams

The seven tangram pieces make thousands of figures, and only thirteen of them are convex. The proof turns a puzzle with sliding pieces into a finite list: every piece is made of the same small triangle, any convex figure puts them all on one grid, and that grid allows exactly twenty convex outlines of the right area. A search tries all twenty and finds that thirteen can be made.

Seven hats, sixteen losses. All 128 ways seven red-or-blue hats can fall, each drawn as seven dots, with the 16 configurations the Hamming strategy loses framed: the team wins 112 of 128, a probability of 7/8. Computation

Wrong guesses that arrive together

Seven players in red or blue hats each see every hat but their own, and must guess their own colour or pass. Every guess is a coin toss, yet with the Hamming code the team wins seven times in eight — not by making guesses better, but by making the wrong ones arrive together. The best chance for any number of players is fixed by the fewest losses that cover the cube.

Three edges at every point, and how many ways to pair. The 3-regular bipartite graphs with six vertices a side having the fewest (17) and the most (36) perfect matchings among all 297200, each with one matching in red. Discrete

How many ways a regular graph pairs off

Give every point of a bipartite graph the same number of edges and Hall's theorem promises a perfect matching. It promises far more: at least ((d − 1)^(d−1)/d^(d−2))ⁿ of them, by Schrijver's theorem, and at most (d!)^(n/d), by Brégman's. Listing all 297,200 cubic graphs on six and six finds only four different counts, and random graphs turn out to live near the bottom.

Fifteen edges that need four colours. The Petersen graph with its 15 edges in 4 colours; a search over all colourings with three finds none. Discrete

One colour more than the busiest point

Colour the edges of a graph so that edges meeting at a point differ. The busiest point forces as many colours as it has edges, and Vizing proved that one more is always enough. So every graph is in one of two classes, and deciding which is hard — yet almost every graph is in the first, and the ones in the second carry an odd piece that cannot be paired off.

Excluded middle fails at one point, and its double negation does not. Open sets of the real line as truth values: p = (0, ∞), ¬p = (−∞, 0), p ∨ ¬p misses 0, ¬(p ∨ ¬p) is empty and ¬¬(p ∨ ¬p) is the whole line. Logic

Every tautology survives double negation

Intuitionistic logic refuses excluded middle, Peirce's law and every other classical principle that claims more than can be shown. Glivenko proved in 1929 that it refuses nothing outright: put ¬¬ in front of any classical tautology and the result is intuitionistically valid. Every Kripke model of up to four states confirms it for eight famous laws, a census of 11,451 formulas confirms it one by one, and a model with a growing domain shows where it stops.

One swap splits the long cycle. A shuffle of 100 boxes whose longest cycle has 61 boxes, drawn as a ring; swapping the contents of two boxes 30 steps apart splits it into cycles of 30 and 31, so every cycle has at most 50 and all prisoners succeed. Probability

One swap saves every prisoner

A hundred prisoners following the cycles of a shuffle all survive about 31% of the time. Let a helper look into the room first and swap the contents of two boxes, and they survive every time. With fewer boxes each, more swaps are needed — exactly one per cut a long cycle needs — and the number of swaps a random room demands has an exact distribution.

Seven numbers whose 128 subset sums all differ. The 128 subset sums of 20, 31, 37, 40, 42, 43, 44, spread from 0 to 257 with no two equal, above those of the powers of two 1 to 64. Discrete

Numbers whose subset sums all differ

The powers of two 1, 2, 4, …, 64 have 128 subset sums and no two are equal. So do 20, 31, 37, 40, 42, 43 and 44, whose largest member is smaller, and an exhaustive search shows no seven numbers do it with less. A pigeonhole on the sums says the largest member must grow like 2ⁿ/n; a variance argument improves that to 2ⁿ/√n; the best known sets sit near 0.22 × 2ⁿ. Whether the truth is a constant times 2ⁿ is Erdős's five-hundred-dollar question, and the pigeonhole cannot reach it.

Fifty-four numbers funnel into 6174. The 54 values Kaprekar's routine can produce from four digits, arranged by how many further steps they need to reach 6174: 1, 3, 12, 10, 10, 10, 8 at zero to six steps. Dynamics

Fifty-four numbers funnel into 6174

Take four digits, not all the same, arrange them largest first and smallest first, and subtract. Repeat. Every one of the 9,990 starts reaches 6174, and none needs more than seven steps. The reason is that the first subtraction forgets almost everything: its result depends only on two differences of digits, so ten thousand starts collapse to fifty-four values, and a map on fifty-four points can be drawn whole. Change the number of digits or the base, and the same collapse ends in cycles instead.

Every prime's Fibonacci period lies on one of two lines or below. The period of the Fibonacci numbers modulo each prime p up to 1,000: for p ≡ ±1 mod 5 it divides p − 1, for p ≡ ±2 mod 5 it divides 2(p + 1); 116 of the 165 primes from 7 to 997 lie on their line. Algebra

The period the golden ratio sets

The Fibonacci numbers, taken modulo any whole number, eventually repeat — the last digits every sixty terms. At a prime the period is not arbitrary: it divides p − 1 when the prime ends in 1 or 9, and 2(p + 1) when it ends in 3 or 7. The reason is where the golden ratio lives. Modulo the first kind of prime it is an ordinary remainder; modulo the second it has to be adjoined, as √5 is adjoined to the rationals, and in that larger field the p-th power swaps φ with its conjugate.

Filling a unit with the largest piece that fits. A unit bar filled greedily by 1/2, 1/3, 1/7, 1/43 and 1/1807, and below it what is left of 1 after each number of terms, from 1/2 down to about 10⁻⁵² after eight: 1/1806 after four. Number

The largest piece that still fits

Fill a unit with unit fractions, always taking the largest one that still fits: 1/2, 1/3, 1/7, 1/43, 1/1807. The denominators are Sylvester's sequence, each one more than the product of all before it, and after k of them what is left is exactly one over the next term minus one. Curtiss proved in 1922 that no k unit fractions get closer to 1 from below; an exact search confirms it to six terms. Applied to almost any other fraction, the same greedy rule is wasteful — 8/97 ends with a denominator of 150 digits.

All themes