TOPICS
Search

Twenty-One Card Trick


The twenty-one card trick is a procedure that locates a selected card among 21 distinct cards by repeatedly dealing them into three columns and placing the column containing the selection between the others (Hoffmann, pp. 43-44).

Starting with the cards in any order, deal successive rows from left to right into three columns of seven, with earlier cards above later ones in each column. Ask which column contains the selection, then collect the columns into a single packet with that column in the middle, preserving the top-to-bottom order within each column. After three such rounds, the selection is the eleventh card from the top.

To verify this, let p_r be the position of the selection from the top after r rounds, with the initial position p_0 between 1 and 21. On the next deal, its row is [p_r/3], where [x] is the ceiling function. Collecting its column between two packets of seven therefore gives

 p_(r+1)=7+[p_r/3].

The first round gives 8<=p_1<=14, the second gives 10<=p_2<=12, and the third gives p_3=11 (Deb 2018, pp. 6-7).


See also

Cards

Explore with Wolfram|Alpha

References

Deb, D. "The 21 Card Trick and Its Generalization." 19 Oct 2018. https://arxiv.org/abs/1809.04072.Hoffmann, Professor. Modern Magic: A Practical Treatise on the Art of Conjuring. American ed. London and New York: George Routledge and Sons, pp. 43-44. https://www.gutenberg.org/cache/epub/58057/pg58057-images.html.Numberphile. "21-Card Trick." Featuring A. Chavez. Jul. 11, 2018. https://www.youtube.com/watch?v=d7dg7gVDWyg.

Cite this as:

Weisstein, Eric W. "Twenty-One Card Trick." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/Twenty-OneCardTrick.html

Subject classifications