MathomalyA field guide to patterns, proofs and open questions

An interactive field guide to patterns, and open questions.

Numbers do strange things.

Mathomaly is an interactive field guide to surprising mathematical behaviour, from the first visible pattern to what is proved, what is only observed, and what remains unknown. Change the numbers or the rule and follow what happens.

Watch No. 03: Why does chance fool us? 9:13
Live · Kaprekar’s routinePlate 01
3524
  1. 3524

Sorting, subtracting, repeating - step 0 of 3.

21

A Number With No Room to Be Written

A power repeats multiplication: 3 ↑ 3 means 3 × 3 × 3 = 27. A second arrow repeats powers, so 3 ↑↑ 3 means 3 raised to the power 27. Continuing this hierarchy leads to the 64-stage construction of Graham’s number, which appeared as an upper bound in a problem about colouring the connections of a high-dimensional cube. Its full decimal expansion is too large to display, but its last ten digits can be computed exactly.

Open problemup-arrow notationlarge numbers
22

Three Guesses Beat One

In the 1950s Stein showed that estimating several means at once can beat the obvious guess. Suppose three measurements have independent, zero-centred normal errors, each with variance 1. The James–Stein formula adjusts them together. For measurements 4, 3 and 0, square and add them to get 25, then multiply each measurement by 1 − 1/25 = 24/25, giving 3.84, 2.88 and 0. This lowers the average total squared error over repeated measurements, whatever the true values are, but it can make an individual trial worse. The theorem applies in three or more dimensions.

Provedstatisticsestimation
23

The Sum That Is Not a Sum

A famous claim sets 1 + 2 + 3 + 4 + ... equal to −1/12. A short argument derives that number from 1 − 1 + 1 − 1 and from 1 − 2 + 3 − 4, but the same shifting also proves 0 = 1. Ordinary addition tells another story: the running totals are 1, 3, 6, 10, the total after k terms is k(k+1)/2, and those totals are growing without bound. They do not approach −1/12. That value comes from a different procedure called regularisation, such as smoothing, or from the Riemann zeta function at −1.

Proveddivergent seriessummation methods
24

A Sentence About Its Own Number

In the 1930s Gödel showed how arithmetic can talk about its own statements by giving formulas whole-number codes that can be decoded again. In this laboratory, the formula 0 = 0 has code 5, so arithmetic with 5 can refer to that expression as data. Substituting codes into formulas builds a route to self-reference. The laboratory demonstrates numbering and substitution used in that work, not a proof system or the incompleteness theorem itself.

Exhaustively checkedlogicself-reference
26

Birthday Matches in a Small Room

A classic probability puzzle asks how crowded a room must be before two people are likely to share a birthday. Add people to a room and compare their birthdays, looking for any two with the same date. If each person independently receives one of 365 equally likely dates, 23 people give a little over a 50% chance of a matching pair. The model probability describes repeated groups, not a guarantee that a particular room contains a match.

Provedprobabilitycombinations
29

The Door You Should Not Keep

In the puzzle named for game-show host Monty Hall, three doors hide one car and two goats. You point at a door, and the host, who knows where the car is, opens one of the other two to show a goat and offers you the door still closed. Sticking wins in 1 of the 3 equally likely arrangements and switching wins in the other 2, so switching wins 2/3 of the time. That advantage is made of the host’s knowledge: a host opening a door at random who happened to miss the car would leave both choices worth one half.

Provedprobabilityconditioning
30

The Prime Race That Fixes Its Own Result

Chebyshev noticed that primes leaving remainder 3 on division by 4 seem to lead those leaving remainder 1. Divide each prime by 4 and it leaves a remainder of 1 or 3, except for 2 itself. Counting the primes as they come, the remainder-3 team is ahead at 3, at 7, at 11 and at almost every stopping point anyone would try by hand. It is not ahead forever: at the prime 26,861 the remainder-1 team is in front for the first time, by one.

Conjecturedprimesresidues
33

The Chaos Game

Barnsley’s chaos game marks three corners of a triangle and starts on one of them. Pick a corner at random, move half the way there, and leave a dot; repeat from where you landed. Starting at (0, 0) in the triangle (0, 0), (1, 0), (0, 1), a draw of (1, 0) puts the dot at (0.5, 0). The dots never fill the triangle: they land on the Sierpinski gasket, the holes Pascal’s triangle shows when each entry is reduced modulo 2. The random draws decide the order the dots appear in, not the shape they appear on.

Exhaustively checkedfractalsiterated function systems
34

Why One Comes First

Newcomb noticed, and Benford later popularised, that many lists lead with 1 far more often than 9. Take positive whole numbers, write each one in base 10, and record only its first digit. Powers of two give 1, 2, 4, 8, 1, 3, 6, 1, 2, 5; across the first thousand powers, digit 1 appears 301 times where an even split would give about 111. The predicted share of digit d is log(1 + 1/d) in the written base. It is a property of particular processes: integers from 1 to 999,999 drawn uniformly lead with each digit one ninth of the time.

Heuristicleading digitsequidistribution
35

π/2, π/2, π/2 … and Then Not

The integral of sin(x)/x from 0 to infinity is exactly π/2. Multiply in sin(x/3)/(x/3) and it is π/2 again. Keep multiplying in the next odd denominator, sin(x/5)/(x/5), sin(x/7)/(x/7) and so on, and the exact answer stays π/2 for a long run of factors, then at one factor it falls short by an amount no plot can show. These are the Borwein integrals; the page computes each one exactly as a fraction of π.

Exhaustively checkedimproper integralsFourier transforms
37

Two Losing Games That Win Together

Game A wins with probability 0.495. Game B wins with probability 0.095 when your capital is a multiple of 3, and 0.745 otherwise. Each loses on average, by 0.0100 and 0.0087 per round, because a 0.005 edge is taken off every winning chance. Yet choosing between them with a fair coin each round gains on average. The paradox is only apparent, since mixing in A changes how often B meets its bad odds. A larger edge, or a B that ignores your capital, removes the gain.

Exhaustively checkedprobabilitymarkov chains
38

Primes Dislike Repeating Themselves

Apart from 2 and 5, every prime ends in 1, 3, 7 or 9, and each ending turns up about a quarter of the time. Take a prime and look at the last digit of the next prime: 7 is followed by 11, which ends in 1, and 11 is followed by 13, which ends in 3. If the next ending were chosen independently, a prime ending in 1 would be followed by another ending in 1 one time in four. Counting every prime below ten million, a repeated ending turns up far less often than that.

Conjecturedprimeslast digits
39

The Gambler’s Ruin

You start with 10 units and the casino with 10. Each round you stake one unit on a coin that wins with probability 1/2 or loses, and you play until one of you holds all 20. The chance you end ruined is exactly 50%. Keep the bet fair but give the casino 90 units instead, and the chance you are ruined rises to 90%, about as high as for a bet that wins only 45% of rounds against an equal bankroll, which is 88%. On average a fair bet loses nothing, yet who ends with everything depends on how the bankrolls compare. The average hides how the ending splits.

Exhaustively checkedprobabilityrandom walks
41

The Coin Bet You Can Always Beat

Two players each bet on a pattern of three coin flips, such as HHT. The first player chooses, then the second. One fair coin is then flipped over and over, both players watching the same flips, and whoever’s pattern turns up first in the run wins. Whatever the first player bets, the second can reply so as to win at least 2 games in 3: the opposite of the first player’s middle call, then the first two calls. Against HHT the reply is THH, which wins 3 games in 4, although both take 8 flips to appear on average. There is no best pattern.

Exhaustively checkedprobabilitycoin flips

Browse by what you do

Different paths into the same field.

  • Apply a rule again and again.
  • VisualiseSee the whole space at once.
  • ComparePut two cases side by side.
  • PredictCommit to an answer before the reveal.
  • BreakChange an assumption until it fails.
  • ReverseAsk what leads here, not what follows.

Collections

Curated paths

  • Number MachinesSmall rules applied to over and over until something settles.10 ready
  • LandscapesVisual and structural views of where the primes actually fall.7 ready
  • That Build ThemselvesRecursive, substitutive and self-describing sequences.5 ready
  • Patterns That BreakConvincing finite patterns that eventually fail.15 ready
  • Change the BasePhenomena that exist only because of how the number is written.9 ready
  • One Rule, Strange BehaviourSimple maps with unexpectedly rich dynamics.12 ready
  • Easy to State, Hard to ProveElementary statements with difficult or unresolved mathematics behind them.16 ready
  • Bounds and EvidenceWhere a computation gives a certified bound, and where it only gives a number.10 ready
  • Randomness and EvidenceSeeded experiments, and what a simulation can and cannot settle.9 ready
  • and Rules that replace a shape with smaller copies of itself.2 ready
  • Logic and ComputationWhat a formal system can say about itself.2 ready

What makes this different

You can change the rule

The interesting part of a mathematical pattern is often the control that breaks it. So you can change the input, alter the rule, sweep a whole range, and look for the case where it stops working. On some explorations you are asked to commit to a guess before the figure answers, and on every exploration you can keep a trail of what you tried and share it as a link.

The explanation goes all the way down

Every exploration runs from a plain description through the intuition and the key to a formal statement, then says exactly where the argument stops being complete.

Evidence is never called proof

Every claim carries its status, its exact scope and the date it was checked. A million successful runs are not a proof of an infinite statement, and nothing here will imply otherwise. How we handle claims →