Best Card Trick
Best Card Trick
" -
Michael
Kleber
and
Ravi Vakil,
The Story
Editors
1Published by Seeman Printery, Durham, N.C., 1950; Wallace Lee's Magic Studio, Durham, N.C., 1960; Mickey
Hades International, Calgary, 1976.
The Workings
N o w to business. Our " p r o o f ' of impossibility ignored the other c h o i c e m y
lovely a s s i s t a n t gets to make: w h i c h o f
the five c a r d s r e m a i n s hidden. We c a n
p u t that choice to g o o d use. With five
cards in y o u r hand, there are certainly
two of the s a m e suit; we a d o p t the
strategy that the fLrst card m y a s s i s t a n t
s h o w s m e is of the s a m e suit as the
c a r d t h a t stays hidden. Once I s e e the
first card, t h e r e are only twelve c h o i c e s
for the h i d d e n card. But a bit m o r e
cleverness is required: by p e r m u t i n g
the t h r e e r e m a i n i n g c a r d s m y a s s i s t a n t
can s e n d m e one of only 3! -- 6 messages, a n d again w e are one bit short.
The r e m a i n i n g choice m y a s s i s t a n t
m a k e s is w h i c h card from the s a m e suit p a i r is d i s p l a y e d and w h i c h is hidden. C o n s i d e r the ranks of t h e s e c a r d s
to be t w o o f the n u m b e r s from 1 to 13,
a r r a n g e d in a circle. It is always possible to a d d a n u m b e r b e t w e e n 1 a n d 6
to one c a r d ( m o d u l o 13) and o b t a i n the
other; this a m o u n t s to going a r o u n d t h e
circle "the s h o r t way." In summary, m y
a s s i s t a n t c a n s h o w m e one c a r d a n d
t r a n s m i t a n u m b e r from 1 to 6; I increm e n t the r a n k o f the card by the number, a n d leave the suit unchanged, to
identify the h i d d e n card.
It r e m a i n s only for me a n d m y assistant to p i c k a convention for representing the n u m b e r s from 1 to 6. First,
totally o r d e r a d e c k of cards: s a y ini-
2This sort of "Purloined Letter" style hiding of information in plain sight is a cornerstone of magic. From that point of view, the "real" version of the five-card trick secretly communicates the missing bit of information; Persi Diaconis tells me there was a discussion of ways to do this in the late 1950s. For our purposes we'll ignore
these clever but non-mathematical ruses.
3Unpaid advertisement: for more information on this outstanding, intense, and enlightening introduction to mathematical thinking for talented high-school students, contact David Kelly, Natural Science Department, Hampshire College, Amherst, MA 01002, or [email protected].
4For some reason t personally find it easier to encode and decode by scanning for the position of a given card: place the smallest card in the left/middle/right position
to encode 12/34/56, respectively, placing medium before or after large to indicate the first or second number in each pair. The resulting order sml, slm, msl, Ism, mls,
Ims is just the lex order on the inverse of the permutation.
5If your goal is to confound instead, it is too transparent always to put the suit-indicating card first. Fitch recommended placing it (i mod 4)th for the ith performance
to the same audience.
10
THE MATHEMATICALINTELLIGENCER
b o u n d of n! + n - 1, this is a square
matrix, and has exactly n! l ' s in each
row and column. We conclude that
some subset of these l ' s forms a permutation matrix. But this is precisely a
strategy for me a n d m y lovely assist a n t - - a bijection b e t w e e n hands and
messages which can be used to represent them. Indeed, by the above paragraph, there is n o t j u s t one strategy,
but at least n!.
Perfection
Technically the above proof is constructive, in that the proof of Hall's
Marriage theorem is itself a construction. But with n = 5 the above matrix
has 225,150,024 rows a n d columns, so
there is room for improvement. Moreover, we would like a workable strategy, one that we have a chance at performing without consulting a cheat
sheet or scribbling o n scrap paper. The
perfect strategy b e l o w I learned from
Elwyn Berlekamp, a n d I've b e e n told
that Stein Kulseth and Gadiel Seroussi
came up with essentially the same one
independently; likely others have done
so too. Sadly, I have n o information o n
whether Fitch Cheney thought about
this generalization at all.
Suppose for simplicity of exposition
that n = 5. Number the cards in the deck
0 through 123. Given a hand of five cards
CO < el < C2 < C3 < C4, my assistant will
choose ci to remain hidden, where i =
Co + cl + c2 + c3 + c4 mod 5.
To see how this works, suppose the
message consists of four cards which
sum to s m o d 5. T h e n the hidden card
is congruent to - s + i m o d 5 if it is ci.
This is precisely the same as saying
that if we r e n u m b e r the cards from 0
to 119 by deleting the four cards used
in the message, the hidden card's n e w
n u m b e r is c o n g r u e n t to - s mod 5. Now
it is clear that there are exactly 24 possibilities, and the p e r m u t a t i o n of the
four displayed cards c o m m u n i c a t e s a
n u m b e r p from 0 to 23, in "base factorial:" p = d l l ! + d22! + d33!, where for
lex order, di-< i counts how m a n y
cards to the right of the ( n - ith) are
smaller t h a n it. 7 Decoding the hidden
Acknowledgments
Much credit goes to Art B e n j a m i n for
popularizing the trick; I t h a n k him,
Persi Diaconis, and Bill Cheney for
sharing what they k n e w of its history.
In helping track Fitch Cheney from his
Ph.D. through his m a t h e m a t i c a l career,
I owe thanks to Marlene Manoff, Nora
Murphy, Geogory Colati, Betsy Pittman,
a n d Ethel Bacon, collection managers
and archivists at MIT, MIT again, Tufts,
Connecticut, and Hartford, respectively. Thanks also to my lovely assistants: Jessica Polito (my wife, who
w o r k e d out the solution to the original
trick with me on a long winter's walk),
Benjamin Kleber, Tara Holm, Daniel
Biss, and Sara Billey.
11