MathematicsPreprintTheory3 min read

A NUMBER GAME WHERE THE SECOND PLAYER ALWAYS HAS THE EDGE

Toss a coin again and again. You bet that “heads, heads, tails” shows up first; your friend bets on another sequence of three. Who wins? In this game, proposed by Penney in 1969, something strange happens: whatever sequence the first player chooses, the second player can always pick one that beats it. There is no best sequence. Mathematicians call such a game non-transitive.

From coins to numbers

Elizalde and Lin recently moved the game to random numbers. Draw numbers at random one after another — any continuous distribution will do. Each player picks a pattern of length k: an order for k consecutive draws. For k = 3, the pattern 123 means “three rising numbers”; 312 means “the first is the largest, then the smallest, then the middle one”. The first pattern to appear among consecutive draws wins.

Only the relative order of the numbers matters, so the actual values do not. Elizalde and Lin found that this game, too, is non-transitive. They also suggested a universal reply for the second player: take the opponent’s pattern and move its last entry to the front. Against 123, answer 312; against 2341, answer 1234. They conjectured that this “rotation” always gives the second player the better chance.

A worked example

The paper opens with the race between 123 and 312. Each ordering of the first n draws is equally likely, with probability 1/n! — 1/6 for three draws, 1/24 for four.

  • After 3 draws, the game ends for 123 with one ordering and for 312 with one ordering: one chance in six each.
  • On the 4th draw, 123 wins only with the ordering 2134, while 312 wins with four: 1423, 2413, 3412 and 4312. (In 1423, the last three draws — 4, 2, 3 — read largest, smallest, middle: that is 312. The orderings 1234, 3124 and 4123 also end with 123, but the game was already over after three draws.)

After four draws, 312 is already ahead by 1/6 + 4/24 − 1/6 − 1/24 = 1/8. Over the whole game, Elizalde and Lin computed that 312 wins with probability about 0.658.

The proof

Himaghna Roy Choudhury, an independent researcher, now proves the conjecture: for every length k of 3 or more and every pattern, the rotation wins with probability greater than one half.

The difficulty is that occurrences of the two patterns can overlap in long chains, and the race depends on all of them. The proof counts these chains, called “clusters”, each with a sign, plus or minus one. The key observation: for any given ordering of the draws, the signs of all the clusters it contains add up to just −1, 0 or 1, however many there are. That keeps the contribution of arbitrarily long chains under control and proves the result by pure reasoning for lengths 8 and above.

For lengths 3 to 7, the general estimate is not sharp enough. The author checked every case with exact computations in fractions — 2,955 representative patterns in all, about one minute on a laptop — and cross-checked them with independent counts. The data and code are public.

How big is the edge?

For lengths 8 and above, the proof guarantees that the rotation wins with probability at least 1/2 + 0.0053/(k + 1). The guaranteed margin shrinks as patterns get longer. Whether the true minimum advantage really falls like 1/k is one of the questions the paper leaves open.

A sure reply, not the best one

The rotation always wins more than half the time, but it is not always the strongest answer. Elizalde and Lin had already found that against 2341, the pattern 2134 does better than the rotation 1234. Finding the best reply for every pattern remains open — and so does a stronger claim the author checked by brute force up to 11 draws: that at every draw after the k-th (where the two are tied), the rotation is more likely than the original pattern to end the game right then.