TOPICS
Search

Penney's Game


Penney's game, also called Penney-Ante, is a game of coin tossing in which two players select different three-symbol strings of heads H and tails T. The coin is tossed until one chosen string first appears as three consecutive outcomes, and its player wins. The outcomes are independent random variables, with H and T each having probability 1/2 (Gardner 1974, p. 122).

If the first player chooses A=a_1a_2a_3, the second can choose B=a^__2a_1a_2, where the bar interchanges H and T. This response wins with probability at least 2/3 and at most 7/8. Thus there is no unbeatable three-symbol string, and the relation "more likely to appear first" is not transitive (Gardner 1974, pp. 122-123).

More generally, consider two distinct strings A and B of the same positive integer length m, using the same fair model of coin tossing. For two such strings U and V, let c_j(U,V) be 1 when the last j symbols of U equal the first j symbols of V, and 0 otherwise, and define

 C(U,V)=sum_(j=1)^m2^jc_j(U,V).

Writing B≺A for the event that B appears before A, the probability is

 P(B≺A)=(C(A,A)-C(A,B))/(C(A,A)-C(A,B)+C(B,B)-C(B,A)).

The formula is due to Conway (Gardner 1974, pp. 123-124; Miller 2026).


See also

Coin Tossing, String

Explore with Wolfram|Alpha

References

Gardner, M. "Mathematical Games: On the Paradoxical Situations That Arise from Nontransitive Relations." Sci. Amer. 231, 120-125, 1974. https://doi.org/10.1038/scientificamerican1074-120.Miller, J. B. "Penney's Game Odds from No-Arbitrage." Theory Decis. 101, 103-117, 2026. https://doi.org/10.1007/s11238-026-10123-w.Numberphile. "Penney's Game." Jul. 20, 2016. https://www.youtube.com/watch?v=Sa9jLWKrX0c.Penney, W. "Problem 95. Penney-Ante." J. Recr. Math. 2, 241, 1969.

Cite this as:

Weisstein, Eric W. "Penney's Game." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/PenneysGame.html

Subject classifications