Theme

Counting the same thing twice — page 14

One collection, counted by two different methods, and an identity that falls out because both answers have to agree. The proof is the pair of counts.
Peaks, pits and passes. Height along one direction on two bumpy surfaces: the torus has 5 peaks, 5 pits and 10 passes, total 0; the sphere has 1, 2 and 1, total 2. Topology

Peaks, pits and passes

Take any lumpy closed surface and any direction of height. Peaks plus pits minus passes is 2 on a sphere and 0 on a torus, whatever the lumps, in every direction. Average one vertex's score over all directions and it becomes the corner's angle defect, computed from nothing but comparisons. So Gauss–Bonnet follows from a count of which neighbours lie higher.

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.

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.

Four rods, hinged, enclosing the most. Quadrilaterals with sides 3, 4, 5, 6 as one corner angle varies; the largest has area 18.97367, equal to Brahmagupta's √360 = 18.97367, with its corners on a circle of radius 3.2873. Geometry

The most four hinged rods can enclose

Four rods of fixed lengths, hinged at their ends, can be pushed into a whole family of quadrilaterals. The one enclosing the most area has its corners on a circle, and Brahmagupta gave its area in 628 as a product of four terms. Order the rods any way round the circle and the area is the same; add a fifth rod and the circle still wins, but the formula is gone.

Five ellipses, every combination once. A rotationally symmetric Venn diagram of five congruent ellipses (centre distance 0.7, semi-axes 1.4 and 0.5, tilted 7.5°): 32 regions on a raster, 30 crossing points. Logic

Venn diagrams that turn into themselves

A Venn diagram shows every combination of in and out exactly once. Ask for one that looks the same after a turn of 1/n, each curve rotating onto the next, and a counting argument forbids it unless n is prime. Five congruent ellipses manage it, certified by Euler's formula; four rotated copies cannot, and it took until 2004 to show that every prime can.

Every way to make change for two pounds. Number of ways to make each amount up to 200 pence from British coins, on a logarithmic scale: 451 for 50p, 4563 for £1, 73682 for £2; a dollar in United States coins has 292. Number

Two pounds in 73,682 ways

Count the ways to pay an amount exactly with a fixed set of coins and the answer is almost a polynomial in the amount — a polynomial plus waves that repeat with the periods of the coins. With parts 1, 2 and 3 the whole formula fits on a line; with British coins the leading term is still 3% off at four hundred pounds. And the fewest coins is a different question, which the cashier's rule answers correctly only for some coinages.

Where to look after looking and not finding. A prior over a 16 by 12 grid and the posterior after 60 looks by the greedy rule that found nothing: the chance of having found the object by then was 0.425. Probability

Where to look after looking and not finding

A lost object is somewhere on a map of probabilities, and every search that fails redraws the map. Bayes' rule says how: the cell searched loses probability in proportion to how good the search was, and every other cell gains. Looking where the chance of finding it on the next look is highest is provably best, and a search that overrates its own eyesight looks in the wrong place — which is how the wreck of Air France 447 was missed for two years.

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.

A knot written as a fraction. The two-bridge knot K(17/5) drawn as a plat on four strings from the continued fraction 17/5 = 3 + 1/(2 + 1/2), with 7 crossings. Topology

A tangle that is a fraction

Two ropes, four people, two moves: twist the right-hand pair, or turn everyone a quarter of the way round. Conway noticed that every tangle made this way carries a fraction, that the moves act on it as x + 1 and −1/x, and that the fraction is a complete invariant: two such tangles are the same exactly when their fractions are. Close the tangle and the fraction names a knot.

One loop that outlasts the noise. 44 noisy points round a circle joined at scale 1.09, and the scales at which each loop appears and is filled: the longest from 0.588 to 1.588, the next 0.025 long. Topology

A hole that lasts across scales

A cloud of points sampled from a circle has no hole at all, and joined at the right scale it has exactly one — but nobody knows the right scale in advance. Persistent homology joins the points at every scale at once and records how long each hole survives. The circle's hole lasts; accidental holes vanish almost at once; and moving every point by δ moves every survival time by at most 2δ.

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.

Where a randomly broken stick can land. De Finetti's triangle of all ways to break a stick into three pieces, with 500 random breaks: the 118 in the shaded middle quarter, where every piece is shorter than half the stick, are the breaks whose pieces form a triangle. Probability

A stick broken in three

Break a stick at two random points and the three pieces form a triangle one time in four — a fact that can be read off a picture without integrating anything, because the pieces are a point spread evenly over a triangle and the good breaks fill its middle quarter. With more pieces the same picture gives 1 − n/2ⁿ⁻¹, which is also the chance that n random points on a circle avoid every semicircle. But 'break at random' is ambiguous: cut once and then cut the longer piece, and the answer is 2 ln 2 − 1.

A family of 16, and the walk that counts it. seed 11: children 2,1,2,2,0,2,1,1,2,0,0,0,0,1,1,0; walk 0,1,1,2,3,2,3,3,3,4,3,2,1,0,0,0,-1 Probability

The walk that counts a family

Start with one ancestor, give everyone a random number of children, and ask how big the whole family gets. Visit the family member by member and keep a running total of children minus one: the total is a random walk, and the family is finished at the exact step the walk first drops below zero. A theorem about rotating sequences then gives the size's law in one line, and when each person has on average one child it is Cayley's count of labelled trees, multiplied by e⁻ⁿ/n!.

13 cards, any two sharing exactly one symbol. JKLM CFIJ BEHJ GHIM CEGL BFGK DEFM CDHK BDIL ABCM AFHL AEIK ADGJ Computation

A deck where any two cards match once

A card game deals cards of eight pictures each, and any two cards in the deck share exactly one picture. The deck is the projective plane of order seven with its lines dealt as cards — 57 of them, of which the game prints 55. The two left out can be reconstructed from the counts of the pictures alone; a deck built one card at a time, by careful search, gets stuck at about two dozen; and the bound of 57 needs one exception, a deck that never stops.

All themes