Theme

Small cases lie — page 9

Patterns that hold for every example anyone would check by hand, and then stop. The cases within reach are not a sample of the cases.
Strings that overlap themselves leave more behind. 00: 253.293; 01: 230.283; 02: 230.299; 03: 230.315; 04: 230.330; 05: 230.345; 06: 230.361; 07: 230.376; 08: 230.390; 09: 230.405; 10: 220.887; 11: 244.784; 12: 222.442; 13: 223.049; 14: 223.575; 15: 224.033; 16: 224.438; 17: 224.798; 18: 225.120; 19: 225.410; 20: 225.673; 21: 225.913; 22: 249.163; 23: 226.334; 24: 226.520; 25: 226.692; 26: 226.852; 27: 227.001; 28: 227.140; 29: 227.270; 30: 227.393; 31: 227.508; 32: 227.617; 33: 250.747; 34: 227.817; 35: 227.910; 36: 227.998; 37: 228.081; 38: 228.161; 39: 228.237; 40: 228.310; 41: 228.380; 42: 228.446; 43: 228.510; 44: 251.598; 45: 228.631; 46: 228.688; 47: 228.743; 48: 228.796; 49: 228.847; 50: 228.896; 51: 228.944; 52: 228.990; 53: 229.035; 54: 229.078; 55: 252.146; 56: 229.161; 57: 229.201; 58: 229.239; 59: 229.277; 60: 229.313; 61: 229.348; 62: 229.383; 63: 229.416; 64: 229.449; 65: 229.481; 66: 252.538; 67: 229.543; 68: 229.572; 69: 229.601; 70: 229.630; 71: 229.657; 72: 229.684; 73: 229.711; 74: 229.737; 75: 229.762; 76: 229.787; 77: 252.837; 78: 229.835; 79: 229.859; 80: 229.882; 81: 229.904; 82: 229.927; 83: 229.948; 84: 229.970; 85: 229.991; 86: 230.011; 87: 230.031; 88: 253.077; 89: 230.071; 90: 230.090; 91: 230.109; 92: 230.128; 93: 230.146; 94: 230.164; 95: 230.182; 96: 230.199; 97: 230.216; 98: 230.233; 99: 253.275. Analysis

What a missing string of digits leaves behind

Strike from the harmonic series every term whose denominator contains 42 and the rest adds up to 228.45. Strike out 99 instead and it adds up to 253.28. The difference is not about which numbers are lost but about waiting: 99 overlaps itself, so it takes 110 random digits on average to turn up where 42 takes 100, and the sum is almost exactly ln 10 times that wait.

Seven workers, seven jobs, one cheapest way. A 7 × 7 table of exponential costs; optimal assignment 1→5, 2→2, 3→4, 4→1, 5→6, 6→7, 7→3 costing 0.7482; expected optimum Σ 1/k² = 1.511797. Applied

One, plus a quarter, plus a ninth

Give n workers n jobs with every cost drawn at random, average one, and find the cheapest way to pair them. However large n is, the cheapest total averages less than π²/6, and for every n it is exactly 1 + 1/4 + 1/9 + … + 1/n². Parisi guessed the formula in 1998 from n = 1, 2 and 3; thirteen sizes of random tables, solved exactly, land on it within sampling error.

Four generators climbing out of zeroland. Output ones-density from a one-bit start reaches 0.45 after: MT19937 374000, TT800 4500, WELL512 44, xorshift128 37. Computation

Three hundred thousand outputs of nearly nothing

Start the Mersenne twister from a state with a single 1 among its 19,937 bits and it puts out zeros, then sparse ones, and only after about 340,000 outputs anything that looks random. Every linear generator has such a zeroland around the all-zero state; xorshift128 crosses it in 37 outputs, WELL512 in 44, and the twister's three-word twist makes it the slowest of all by four orders of magnitude.

Seven flips between the octagon's farthest triangulations. A shortest flip path of length 7 between two of the 132 triangulations of the octagon. Discrete

How far apart two triangulations can be

Any triangulation of a polygon can be turned into any other by flipping one diagonal at a time. On an octagon seven flips always suffice; on a polygon with m vertices the worst case is 2m − 10 flips once m reaches thirteen, a value Sleator, Tarjan and Thurston proved with hyperbolic geometry in 1988. Breadth-first search over all 58,786 triangulations of the 13-gon finds the sixteen.

Three cycles of forms for the prime 229. Reduced forms of discriminant 229 in 3 cycles of lengths 6, 6, 2; checked: h(5) = h(13) = 1, h(229) = h(257) = 3, h(401) = 5, h(577) = 7, h(1129) = 9. Number

Real fields that factorise uniquely

Among the fields Q(√−d) only nine have unique factorisation, and Gauss guessed as much. Among the real fields Q(√p) he guessed the opposite — infinitely many — and the guess is still unproved. Counting cycles of reduced quadratic forms for the 16,900 primes p ≡ 1 mod 4 below 400,000 finds 79 per cent with class number one, drifting slowly down towards the 75.45 per cent that Cohen and Lenstra's heuristic predicts — and finds the reason the real fields behave so differently: their units are enormous.

One length and three ways of guessing it. Perimeter of the ellipse with semi-axes 1, b: b=1 6.283185307, b=0.5 4.844224110, b=0.1 4.063974180, b→0 4; guesses at b=0.5: Kepler 4.442883, π(a+b) 4.712389, Euler 4.967294. Analysis

The length round an ellipse

An ellipse has an area anyone can write down, πab, and a perimeter nobody can: it is an integral with no expression in the functions of school mathematics. Kepler guessed it, Euler guessed better, and in 1914 Ramanujan wrote down a formula whose error falls like the fifth power of how far the ellipse is from a circle — off by four hundredths of a per cent even for a segment. Gauss had already found the way to compute it exactly, doubling the correct digits at every step.

A party that loses every issue wins the vote. Groups A: 110, B: 101, C: 011, D: 000, E: 000; X wins 3–2; issues won by X: 0 of 3. Applied

A party that loses every issue can win

Two parties take opposite sides on three issues, and every voter backs the party they agree with on more of them. The party that wins the election can be on the losing side of all three issues — in a fifth of random electorates it loses most of them, and in about one in a hundred it loses every one. A majority of voters can even find themselves outvoted on most of the questions decided. Only when issues are settled by three-to-one majorities on average is that ruled out.

Ten dots that never repeat a step. Welch array p=11, g=2: 0,1,3,7,4,9,8,6,2,5; difference triangle rows: 1 2 4 -3 5 -1 -2 -4 3 / 3 6 1 2 4 -3 -6 -1 / 7 3 6 1 2 -7 -3 / 4 8 5 -1 -2 -4 / 9 7 3 -5 1 / 8 5 -1 -2 / 6 1 2 / 2 4 / 5. Computation

Dots that never repeat a step

Place n dots on an n-by-n grid, one in each row and column, so that no two pairs of dots are joined by the same step. These Costas arrays were invented for sonar, and finite fields build them: a primitive root modulo a prime gives one family, a pair of primitive elements in any finite field another. Yet the constructions account for almost none of the arrays that exist — 92 of the 2,160 of order ten — and for orders 32 and 33 nobody has found a single one.

Fifty-two cards, swapped the naive way. Naive shuffle, n=52: max ratio 1.3522 at card 2 → place 1; min ratio 0.7429. Computation

A perfect coin and a biased shuffle

Give a program a perfect source of random numbers and ask it to shuffle a deck by swapping each card with a card chosen from anywhere in the deck. The result is biased, provably and for every deck of three or more cards: there are nⁿ equally likely runs and n! orders, and the first number is never a multiple of the second. In a deck of 52 some card-and-place pairs come up a third more often than they should. Swapping only with cards not yet placed fixes it; swapping only with later cards makes nothing but single cycles.

Where 3003 appears eight times. 3003 = C(3003,1) = C(78,2) = C(15,5) = C(14,6) and their mirror images; N(3003) = 8. Discrete

How often a number can appear in Pascal's triangle

Every number bigger than one appears in Pascal's triangle at least twice, next to the 1 at each end of its own row. A few appear more often: 120 appears six times, and 3003 eight — as C(3003, 1), C(78, 2), C(15, 5) and C(14, 6), each twice. Counting every entry up to a million million finds seven numbers that appear more than four times and none that appear five, seven or more than eight. Whether any number appears ten times, or whether there is any limit at all, is unknown.

Where charges settle on a sphere. N=4: E=3.674234614, distinct minima from 8 starts: 1; N=6: E=9.985281374, distinct minima from 8 starts: 1; N=8: E=19.675287861, distinct minima from 8 starts: 1; N=12: E=49.165253058, distinct minima from 8 starts: 1; N=20: E=150.881568334, distinct minima from 8 starts: 1; five charges: bipyramid 6.474691, best square pyramid 6.483661. Geometry

Where charges settle on a sphere

Put equal electric charges on a sphere and let them push each other apart until nothing moves. Four settle at the corners of a tetrahedron, six of an octahedron, twelve of an icosahedron — but eight do not make a cube, and twenty do not make a dodecahedron. The cube loses to two squares turned half a corner apart, because charges on a sphere prefer triangles; and however many charges there are, exactly twelve more of them have five neighbours than have seven.

A partition in two directions is a pile of cubes. Plane partition 5 4 3 1 / 4 3 2 / 3 2 1 / 1 of 29, drawn as stacked cubes; PL(29) = 3759612. Number

A partition piled into a corner

A partition is a row of numbers that never increases. Let it never increase down the columns too, and it becomes a pile of cubes pushed into the corner of a room. MacMahon counted the piles with one change to Euler's product — each part size k in k colours — and in a box with a product over its cells. The second direction moves the growth from e^(√n) to e^(n^(2/3)), puts ζ(3) where π was, and makes a count that grows with a box's area. One direction further, his guess fails at six.

Haggling that ends at the largest product. δ=0.3: player 1 proposes 0.7194, player 2 offers 0.0647; δ=0.6: player 1 proposes 0.5102, player 2 offers 0.1837; δ=0.85: player 1 proposes 0.3887, player 2 offers 0.2809; δ=0.97: player 1 proposes 0.3435, player 2 offers 0.3232; Nash split 0.3333. Applied

Haggling that ends at the largest product

Two people split a sum by making offers in turn, each refusal costing both of them a little time. Rubinstein proved in 1982 that the game has exactly one sensible outcome, reached at once — and as the delay between offers shrinks, it is the split that maximises the product of what each gets, the rule Nash had laid down as an axiom thirty years before.

Every ordering of four in thirty-three symbols. 123412314231243121342132413214321: windows 1234 2341 3412 4123 (1231) 2314 3142 1423 4231 (2312) 3124 1243 2431 4312 (3121) (1213) 2134 1342 3421 4213 (2132) 1324 3241 2413 4132 (1321) 3214 2143 1432 4321. Computation

The shortest string holding every ordering

Thirty-three symbols hold all twenty-four orderings of 1, 2, 3, 4 as blocks of four in a row, and no shorter string does. The formula 1! + 2! + … + n! gives the shortest length for up to five symbols and was believed for all of them — until a string of 872 for six beat its 873, and a lower bound posted anonymously on a forum left everything between 867 and 872 open.

A ball counted slice by slice. Ball of radius 7.5: slices 0:177, 1:177, 2:169, 3:145, 4:129, 5:97, 6:69, 7:21; total 1791, volume 1767.146. Discrete

The dots a ball catches

Count the lattice points inside a ball and compare with its volume. In five dimensions the error is about the size of one spherical shell, and that is a theorem; in four a logarithm sneaks in; in three and two the true size of the error is unknown. The difficulty runs backwards because the arithmetic of sums of squares is most erratic when there are fewest squares to add.

The bipartite share falls before it rises. n=1: 1 of 1 (100.00%); n=2: 2 of 2 (100.00%); n=3: 7 of 7 (100.00%); n=4: 41 of 41 (100.00%); n=5: 376 of 388 (96.91%); n=6: 5177 of 5789 (89.43%); n=7: 103237 of 133501 (77.33%); n=8: 2922446 of 4682270 (62.42%); n=9: 116011231 of 246348115 (47.09%). Discrete

Triangle-free, and two-sided eventually

Every graph with no triangle and the most edges possible is bipartite. Erdős, Kleitman and Rothschild proved that almost every triangle-free graph is bipartite too — and yet among the 246,348,115 triangle-free graphs on nine labelled vertices, fewer than half are. The share falls before it rises, and the reason is that small graphs are sparse.

The largest hexagon of diameter one. Regular hexagon of diameter 1: area 0.649519053; best hexagon: area 0.674981443, 6 pairs at distance 1; vertices (0.3438, -0.3253) (0.5000, 0.2115) (-0.0000, 0.6138) (-0.5000, 0.2115) (-0.3438, -0.3253) (-0.0000, -0.3862). Geometry

The largest polygon of diameter one

Among pentagons whose points are never more than one unit apart, the regular pentagon has the most area, and the same is true for every odd number of sides. For six sides it is false: a lopsided hexagon found in 1975 beats the regular one by four per cent. Symmetry wins half the cases and loses the other half, and the reason is parity.

The largest primes of n and n + 1, side by side. Joint law of t(n), t(n+1) for 1000≤n<1e7 in 24×24 cells: corner (both near prime) 0 against 44149 expected; other ratios 0.268 to 2.582. Number

Two neighbours share out their small primes

A number and the next one have no prime in common, and the natural guess is that their largest primes are independent. In the limit that is believed and nearly proved. Below ten million it is visibly false: neighbours are both made of small primes only nine-tenths as often as independence predicts, a run of four only two-thirds as often, and the correlation between their largest primes is negative at distance one and positive at distance six — because a small prime that divides one of two neighbours is a small prime the other cannot have.

Ramanujan's tau, scaled by the power it grows like. τ(n)/n^5.5 for n ≤ 400; τ(1..8) = 1, -24, 252, -1472, 4830, -6048, -16744, 84480; largest |τ(n)|/n^5.5 for n ≤ 10000: 3.2796 at 4841. Number

The product raised to the twenty-fourth power

Euler's product (1 − q)(1 − q²)(1 − q³)… has the partition numbers for its reciprocal. Raise it to the twenty-fourth power and multiply by q, and the coefficients that come out — 1, −24, 252, −1472, 4830, −6048 — multiply like the primes they are indexed by, stay inside a bound Ramanujan guessed and Deligne proved fifty-eight years later, agree with a divisor sum modulo 691, and know, modulo 23, how a cubic equation factors.

The forests of a complete graph on four points. K4 forests by size: 1, 6, 15, 16; ratios 2.4000, 2.3438. Discrete

The forests a graph can hold

Count the sets of edges in a graph that contain no cycle, sorted by size, and the counts rise and fall in a single peak — more sharply peaked, John Mason conjectured in 1972, than the binomial coefficients with the same number of edges. On every graph with up to six points the strongest of his three inequalities holds, with equality exactly where cycles are too long to matter; on random graphs with nine points it holds with a margin of about one per cent. It was proved for every graph, and every matroid, in 2018.

The cells a small generator can reach. m = 256, a = 229, 64×64 cells: plain 256 cells, 10 distinct gaps; scrambled 252 cells, 46 distinct gaps. Computation

Birthdays spaced too evenly

Scatter n birthdays through a year of k days, sort them, and count how many of the gaps between neighbours repeat an earlier gap. For random birthdays the count is close to a Poisson variable with mean n³/4k. A linear congruential generator with m states, read in pairs, matches that law until the grid has as many cells as the generator has states, and then leaves it at once: at sixteen times as many cells, every run of the spacings count rejects it. The sample that catches it is about five times the cube root of the period — 8,192 outputs for a 32-bit generator, thirteen million for a 64-bit one — and the same states, scrambled before they are read, pass.

The correlations that reverse a coefficient. rho = 0.6: wedge shares 0.2051 and 0.2051 of the ellipse; arcsin(0.6)/pi = 0.2048. Algebra

Holding one still turns the other over

A quantity can rise with an outcome and still predict it downwards once a second quantity is held fixed. Completing the square in two predictors says exactly when: the pair of correlations has to fall in a wedge whose angle is arcsin of the predictors' own correlation. Averaged over every possible correlation matrix the chance is exactly 1/4 − 1/π², about one coefficient in seven; two coefficients never reverse together, and with two dozen predictors almost two in five do.

Fewer tables have rates behind them as states are added. n=2: 0.02:1.000 0.05:1.000 0.1:1.000 0.2:1.000 0.3:1.000 0.5:1.000 0.7:0.847 1:0.489; n=3: 0.02:0.975 0.05:0.945 0.1:0.881 0.2:0.797 0.3:0.690 0.5:0.453 0.7:0.244 1:0.043; n=4: 0.02:0.941 0.05:0.865 0.1:0.735 0.2:0.520 0.3:0.329 0.5:0.108 0.7:0.019 1:0.001; n=5: 0.02:0.896 0.05:0.755 0.1:0.526 0.2:0.275 0.3:0.130 0.5:0.020 0.7:0.001 1:0.000; n=6: 0.02:0.807 0.05:0.575 0.1:0.388 0.2:0.090 0.3:0.025 0.5:0.000 0.7:0.000 1:0.000 Analysis

The route round that rates cannot avoid

A table of yearly moves between states came from steady rates only if it is the exponential of a rate matrix. With two states that is true of half of all tables, with three of one in twenty-four, with four of about one in two thousand, and of none of 400,000 tables drawn at random with five. Even a table that is nine parts staying put fails more and more often as states are added, and always for one reason: rates that carry 1 to 2 and 2 to 3 also carry 1 to 3, and a table whose direct move is rarer than that route round cannot have come from them.

Two valleys for sixteen charges. N = 16: 92.911655 (48 starts), 92.920354 (12 starts). Geometry

Valleys a search cannot count

Let equal charges on a sphere push each other apart from a random start, and they settle into an arrangement where nothing moves. Up to fifteen charges every start settles into the same one. Sixteen is the first number with two, a hundredth of a unit apart in energy; by fifty-two there are at least four, and for fifty-six charges only one start in ten finds the lowest. The other valleys sit a few parts in a million above it, and nothing in the arrangement a search returns says whether it is the bottom.

All themes