80,658,175,170,943,878,571,660,636,856,403,766,975,289,505,440,883,277,824,000,000,000,000. That is how many different orders a standard deck of 52 playing cards can be in — about . It is the reason card players love to claim that every time you give a deck a proper shuffle, you are holding an arrangement of cards that has never existed before in human history. In this paper we will derive that number for ourselves using a single counting tool — the factorial — and then, in the honest spirit of this series, put the "never the same twice" claim itself on trial.
Counting arrangements with the factorial
Imagine building an arrangement one card at a time. For the first card you have choices. Whichever card you pick, only remain for the second position, then for the third, and so on, until a single card is left for the final slot. Each choice multiplies the possibilities, so the total number of orderings is:
This product is called a factorial — written , it counts the number of ways to arrange distinct objects in a row. A quick sanity check with three cards A, B, C: we expect orderings, and indeed we can list them all — ABC, ACB, BAC, BCA, CAB, CBA.
Factorials grow explosively. After just three cards we are already at possibilities; multiplying all the way down to produces the 68-digit monster above, which we will round to .
Numbers like this defeat intuition, so let us convert it into time. The universe is about billion years old — a figure we derive in another article — which works out to roughly seconds.
-
Suppose you had dealt out one new arrangement every second since the Big Bang. You would have seen about arrangements — a fraction of the total. You would not have made a dent.
-
Now recruit all billion people alive today [2] and have every one of them deal a new arrangement each second since the Big Bang. Together you cover about of the possibilities — still effectively nothing.
-
To work through all arrangements at one per second would take about ages of the universe.
Has anyone really repeated a shuffle?
Here we must be careful. A huge number of possibilities does not, by itself, prove that no repeat has ever happened — for that we need to think about collisions, the same idea that powers the famous birthday paradox. With random shuffles ever performed, the probability that some pair of them matches is approximately:
Let us overestimate wildly: say billion people have each shuffled a deck once every three seconds, non-stop, for a century. That gives roughly shuffles; call it to be safe. Then:
The chance that any two properly shuffled decks in all of history have matched is about in . The claim survives — with one honest caveat. It assumes shuffles are genuinely random. Fresh decks all leave the factory in the same order, and Bayer and Diaconis famously showed that it takes about seven riffle shuffles to properly randomise a deck [1]. Two people each giving a new deck a single lazy riffle could quite plausibly produce the same arrangement.
So the legend holds
A deck of 52 cards has possible orderings — so many that all of humanity shuffling every second since the Big Bang would explore only a sliver of them, and the probability of any repeat in history is about . So the legend holds: shuffle a deck well, and the arrangement in your hands has almost certainly never existed before. Just make sure you actually shuffle it well.
References:
[1] Dave Bayer and Persi Diaconis, "Trailing the Dovetail Shuffle to its Lair", The Annals of Applied Probability 2(2), 294–313 (1992).
[2] Our World in Data: Population Growth
Note: The "never the same twice" claim applies to well-shuffled decks. Freshly opened decks given one or two lazy riffles genuinely can repeat, because they all start from the same factory order.