Professional Documents
Culture Documents
A Factorial Card Trick Math Horizons - Volume XXVII, Edição 1, Setembro de 2019
A Factorial Card Trick Math Horizons - Volume XXVII, Edição 1, Setembro de 2019
A magician lets an audience member count out 24 playing cards from a well-shuffled deck. The volunteer
chooses one of the cards (let’s say it’s the ace of spades), shows it to the audience but not the magician,
reinserts it into the stack, and shuffles this 24-card deck. Another audience member then tells everyone
her favorite number between 1 and 24 (let’s assume she chooses 18).
Figure 1. Two piles of 12 cards each; the ace of spades is in the second pile.
»
After consolidating the stacks into a single deck, the magician deals the cards into three stacks, each with
eight cards, as in figure 2, again asking for the volunteer to point to the stack containing the card.
https://digitaleditions.sheridan.com/publication/?i=619048&article_id=3477020&view=articleBrowser 1/6
02/01/2023 08:23 A Factorial Card Trick Math Horizons: Volume XXVII, edição 1, setembro de 2019
Figure 2. Three piles of eight cards each; the ace of spades is in the first pile.
»
Figure 3. Four piles of six cards each; the ace of spades is in the third pile. »
https://digitaleditions.sheridan.com/publication/?i=619048&article_id=3477020&view=articleBrowser 2/6
02/01/2023 08:23 A Factorial Card Trick Math Horizons: Volume XXVII, edição 1, setembro de 2019
Finally, the magician deals the cards out, counting them one at a time, as in figure 4, until card 18—the
number chosen by the second volunteer—and voila! It is the ace of spades!
This trick, the 24-card trick, is a variation on the more famous 27-card trick, which in turn provides an
interesting twist on the classic 21-card trick. These tricks have various generalizations; for instance, Ethan
Bolker describes how to generate similar tricks that vary the number and size of the stacks ([2010]
“Gergonne’s Card Trick, Positional Notation, and Radix Sort.” Math. Mag. 83: 46–49). We especially like this
24-card variant because the key to performing it relies on representing integers using the factorial base
number system, sometimes referred to as the factoradic number system.
https://digitaleditions.sheridan.com/publication/?i=619048&article_id=3477020&view=articleBrowser 3/6
02/01/2023 08:23 A Factorial Card Trick Math Horizons: Volume XXVII, edição 1, setembro de 2019
In our example, the audience member chose 18, and 17 = (1,2,2)!. This coding tells the magician to pick up
the pile containing the ace of spades second in the first deal (figure 1), third in the second deal (figure 2),
and third in the third deal (figure 3).
https://digitaleditions.sheridan.com/publication/?i=619048&article_id=3477020&view=articleBrowser 4/6
02/01/2023 08:23 A Factorial Card Trick Math Horizons: Volume XXVII, edição 1, setembro de 2019
To give an intuition for why the trick works, we note that the first 1000 = 103 numbers 0 to 999 fit into a
10☓10☓10 cube; the three digits tell us in which row, column, and level to find the number (if we lay out
the first 10 numbers in the first row of the bottom level and continually add 10 to create the rest of the
rows to fill in 100, and then add 100 to each successive level). With this analogy in mind, the numbers 0–
23 fit in a 2☓3☓4 rectangular prism. The first row in the bottom consists of 0 and 1, and each successive
row in that level is obtained by adding 2 to the previous row. Then, each successive level is obtained by
adding 6 to each entry in the previous level. See figure 5 for a schematic diagram of this prism. As we
deal the piles and ask for locations, we are using the factorial base representation to give instructions for
the row, column, and level where we eventually want the card to appear.
Figure 5. A 2☓3☓4 rectangular prism. Each number from 0 to 23 would fit in its own cell. From bottom to top, the levels contain the numb
»
https://digitaleditions.sheridan.com/publication/?i=619048&article_id=3477020&view=articleBrowser 5/6
02/01/2023 08:23 A Factorial Card Trick Math Horizons: Volume XXVII, edição 1, setembro de 2019
https://digitaleditions.sheridan.com/publication/?i=619048&article_id=3477020&view=articleBrowser 6/6