Field

Discrete — page 5

Counting, graphs, and things that come in whole pieces.
Powers of 5 and 6 until the digits settle. five-adic tail 0896109004106619977392256259918212890625; six tail 9103890995893380022607743740081787109376; settled after 8: 10, 9.

A number that is its own square

Square 625 and the answer, 390625, ends in 625. Square 9376 and it ends in 9376. Keep extending them and two endless strings of digits appear, running leftward, each equal to its own square — and their product is nought, though neither is. Base ten does this because ten is two times five: a number in base ten is secretly a pair of numbers, one in base two and one in base five, and these two strings are the pair (one, nought) and (nought, one). In a prime base no such thing can happen.

A flow that climbs for ever and falls short. 0:p0 +1.000000 → 1.000000; 1:p1 +0.618034 → 1.618034; 2:p2 +0.618034 → 2.236068; 3:p1 +0.381966 → 2.618034; 4:p3 +0.381966 → 3.000000; 5:p1 +0.236068 → 3.236068; 6:p2 +0.236068 → 3.472136; 7:p1 +0.145898 → 3.618034; 8:p3 +0.145898 → 3.763932; maximum 5.

A search for room that never ends

The textbook way to find the most that a network can carry is to find any route that still has room, push as much along it as it will take, and repeat until no route has room left. With whole-number capacities that must stop. Give one road a capacity of 0.618…, the golden ratio's reciprocal, and choose the routes badly, and it never stops: every push is positive, the flow converges, and it converges to 4.236 when the network can carry 5. The same choice made carelessly in floating point does stop — because of rounding, at the wrong answer, convinced it has finished.

Thirty-seven points in thirty-six boxes. n=6: pair q=8,15; difference 7: ‖q√2‖=0.100505, ‖q√3‖=0.124356.

Two numbers approximated at once

Thirty-seven points in thirty-six boxes force a multiple of √2 and a multiple of √3 to land near whole numbers together, and the same count in more boxes makes q times the two distances less than one infinitely often. Littlewood guessed that the product can be made as small as anyone likes. Each number alone has a floor; the product finds a new record eight times below twenty million, and nobody can prove it will keep going.

A tour appears the moment it can. n=16: τ2=27; tour 0-7-6-9-12-13-8-15-11-10-4-14-1-2-3-5; last point 10.

The tour arrives with the last second neighbour

Add the edges between n points one at a time in a random order. A tour through every point cannot exist while some point has fewer than two neighbours, and in a large random graph that is the only thing stopping it: the tour appears at the very edge that gives the last point its second neighbour. Watched in thousands of small graphs, the coincidence is already the rule, and the exceptions are tiny traps around the points of lowest degree.

The longest rising chain in a random cloud, by dimension. Mean longest chain divided by n^(1/d) for d = 2, 3, 4, 5 and n = 250, 500, 1000, 2000, 4000, 8000: d=2: 1.768, 1.804, 1.836, 1.863, 1.895, 1.919; d=3: 1.846, 1.928, 1.981, 2.022, 2.091, 2.125; d=4: 1.773, 1.884, 1.934, 2.026, 2.062, 2.141; d=5: 1.694, 1.762, 1.812, 1.913, 2.037, 2.030.

The longest climb in a cube

Among n random points in a square, the longest chain rising to the right has about 2√n points, a fact with a famous proof. Put the points in a cube and ask for a chain rising in all three directions, and its length is about c·n^(1/3) for a constant nobody knows. Béla Bollobás and Peter Winkler proved that the constants for every dimension stay below e and creep up to it. The upper bound is a single count of chains, and simulation shows how far below it the real chains fall.

Three arrows in and three out: counting on prisms of the cubic grid. Entropy per point of Eulerian orientations on cubic prisms: 2x2: 2.79369, 2x3: 2.68151, 3x3: 2.58713; small tori 2 × 2 × 2 3.14618, 2 × 2 × 3 2.95513, 2 × 3 × 3 2.81100, 3 × 3 × 3 2.69925; Pauling 2.5.

Three arrows in and three out

Put an arrow on every edge of the cubic grid so that every point has three arrows in and three out. On the square grid the same question — two in, two out — has an exact answer, found by Elliott Lieb in 1967: about 1.5396 arrangements per point. On the cubic grid nobody knows the answer. Pauling's guess of 2.5 is a proven lower bound, and exact counts on prisms of the grid come down towards it from above — 2.794, 2.682, 2.587 as the cross-section widens — without reaching it.

A circle with a count running round it. Josephus circle, n=41, k=3: removal order 3,6,9,12,15,18,21,24,27,30,33,36,39,1,5,10,14,19,23,28,32,37,41,7,13,20,26,34,40,8,17,29,38,11,25,2,22,4,35,16,31.

The last place in the circle

Forty-one people stand in a circle and every third is removed. Which place is safe? Counting round by hand is not necessary: the survivor is a running sum on a dial that grows by one each step. With every second person it is n's binary digits rotated by one place, which is a tidier fact than anybody asked for. With every third the rule depends on repeatedly multiplying by three halves and rounding up, and the constant it reaches, 1.62227…, has no known closed form.

Every two edges meet. Star polygons with 3, 5, 7 and 9 points: odd star polygons are straight thrackles with exactly as many edges as points; every pair of edges meets once, at a shared point or by a crossing.

Every two edges must meet

A planar drawing has edges that avoid each other. Turn the rule round and insist that every two edges meet exactly once, at a shared end or a single crossing, and the drawing is what John Conway called a thrackle. In the 1960s he conjectured that a thrackle can never have more edges than points, and put up a prize. With straight edges a short argument settles it, and the argument also bounds the longest distances in a set of points. With curved edges it is still open.

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.

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.

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.

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.

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.

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.

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.

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.

The shortest solution runs along one side (3 discs). Hanoi graph with 3 discs: 27 states; route classic of 8 states.

One tour through every position of the Tower of Hanoi

Draw every position of the Tower of Hanoi as a point and every legal move as a line, and the picture is a Sierpiński triangle. The famous shortest solution runs straight down one side of it, spelling the binary Gray code as it goes. The slowest honest solution threads through every position once and spells the ternary one. And unlike the cube the binary Gray code walks, which has 1,344 closed tours at four dimensions, the triangle has exactly one at every size.

Eight perfect shuffles bring 52 cards home. N=52: cycles 8,8,8,8,8,2,8; order 8

Eight perfect shuffles bring the deck home

Cut a deck of 52 cards exactly in half and interleave the halves perfectly, keeping the top card on top. Do it eight times and the deck is back in its original order. The reason is that the shuffle sends the card in position i to position 2i modulo 51, and 2 multiplied by itself eight times is 256, one more than five times 51. Keep the top card second instead and it takes fifty-two shuffles; twenty-six of them turn the deck upside down; and a magician can send the top card to any position by reading the position in binary.

Where the differences become 0s and 2s. 300 primes: settles at row 20; values above 2 left in row 60: 0

Every row of prime differences starts with one

Write down the primes, then the gaps between neighbours, then the gaps between those gaps, and so on, ignoring signs. Every row after the first begins with 1 — for the first 148,933 primes it holds in all 148,932 rows, and it has been checked far beyond. Nobody can prove it. What can be seen is why it keeps holding: parity forces the leading entry to be odd and the others even, the evens soon shrink to 0s and 2s, and a row of 0s and 2s behind a 1 can only produce another. The pattern needs small gaps to come before large ones, and it has almost nothing to do with being prime.

The look-and-say sequence. 1,2,2,4,6,6,8,10,14,20,26,34

A sequence that reads itself aloud

Start with 1 and describe it: one 1, so 11. Describe that: two 1s, so 21. Then 1211, 111221, 312211, and on. The terms grow by a factor that settles on 1.3035772690…, and John Conway found the reason: every late term is a string of 92 fixed pieces, each of which turns into the same pieces every time, so the lengths obey a 92-by-92 matrix and have a rational generating function. Its denominator factors as x¹⁸ (x − 1)² (x + 1) times a polynomial of degree 71, and the growth factor is that polynomial's largest root.

The dodecahedron needs three cops. dodecahedron: 1 and 2 cops lose; 3 cops at 0,1,17 win in 3

Three cops for any flat map

A robber and some cops move along the roads of a map, one road at a time, each side seeing everything. How many cops does it take to be sure of a capture? On a cycle one is never enough and two always are. On the dodecahedron, solved exactly, two lose and three win. And on any map that can be drawn flat, three always suffice — because one cop can guard a shortest road, and three guarded roads can fence the robber into a shrinking room.

Fourteen mountain ranges sorted by peaks. Dyck paths of semilength 4 by peaks: 1, 6, 6, 1

Mountain ranges counted by their peaks

There are fourteen mountain ranges of four up-steps and four down-steps. Sorted by how many peaks they have, they split 1, 6, 6, 1, and the split reads the same backwards. Ranges with two peaks are not reflections of ranges with three, so the symmetry is not visible in the ranges. It becomes visible when the ranges are redrawn as partitions of points on a circle, where a second set of points between the first turns k blocks into n + 1 − k.

All essays