Counting the same thing twice — page 14
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.
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.
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.
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.
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.
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.
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 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 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 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.
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δ.
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.
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.
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!.
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.