You are on page 1of 3

i~L',l~-T;I.i:-l|,l~-t,l[,..l.-:ii::f';'i(:-]-,,e-:li,a,~[:-],|,l~.li.

" - Michael Kleber and Ravi Vakil, Editors

This column is a place for those bits of a little information t h e o r y a n d applica-


contagions mathematics that travel
from person to person in the
The Best Card tions of the B i r k h o f f - v o n N e u m a n n
t h e o r e m as well as Hall's Marriage
t h e o r e m . One caveat, though: hilly ap-
community, because they are so
elegant, suprising, or appealing that
one has an urge to pass them on.
Trick p r e c i a t i n g this article involves taking
its title as a bit of s h o w m a n s h i p , per-
h a p s a p e r s o n a l opinion, b u t certainly
Michael Kleber not a p r o n o u n c e m e n t of fact!
Contributions are most welcome.
The trick a p p e a r e d in print in Wal-
ou, m y friend, are about to wit- lace Lee's b o o k Math Miracles, ] in
ess the best card trick there is. which he credits its invention to William
Here, take this ordinary deck of cards, Fitch Cheney, Jr., a.k.a. "Fitch." Fitch
and draw a hand of f i v e cards f r o m was born in San Francisco in 1894, son
it. Choose them deliberately or ran- of a p r o f e s s o r of medicine at Cooper
domly, whichever you prefer--but do Medical College, which later b e c a m e
not show them to me! Show them in- the Stanford Medical School. After re-
stead to m y lovely assistant, who will ceiving his B.A. and M.A. from the Uni-
now give me f o u r of them: the 7 ~ , versity of California in 1916 and 1917,
then the Q ~P, the 8,$,, the 3 0 . There Fitch spent eight years working for the
is one card left in your hand, known First National Bank of San Francisco
only to you and m y assistant. And the and then as statistician for the Bank of
hidden card, m y friend, is the K&. Italy. In 1927 he earned the first math
Surely this is impossible. My lovely Ph.D. ever a w a r d e d b y MIT; it was su-
assistant p a s s e d m e four cards, which pervised by C.L.E. Moore and titled "In-
m e a n s there are 48 c a r d s left that could finitesimal deformation o f surfaces in
be the h i d d e n one. I received the four Riemannian space." Fitch w a s an in-
cards in s o m e specific order, and b y structor and assistant p r o f e s s o r then at
varying that o r d e r m y assistant could the University of Hartford (Hillyer Col-
p a s s m e s o m e information: one o f 4! = lege before 1957) until his retirement in
24 messages. It s e e m s the b a n d w i d t h is 1971; he remained an adjunct until his
off b y a factor of two. Maybe w e are death in 1974.
passing one e x t r a bit o f information il- F o r a l o o k at his e x t r a - m a t h e m a t i -
licitly? No, I a s s u r e you: the only in- cal activities, I a m i n d e b t e d to his son
formation I have is a sequence of four Bill Cheney, w h o writes:
of the c a r d s you chose, and I can n a m e
the fifth one. My father, William F i t c h Cheney, Jr.,
stage-name "Fitch the Magician,"
The Story first b e c a m e i n t e r e s t e d in the art of
f f y o u h a v e n ' t s e e n this t r i c k before, the magic w h e n attending vaudeville
effect really is r e m a r k a b l e ; reading it in s h o w s with his p a r e n t s in San Fran-
print d o e s n o t do it justice. (I a m for- cisco in the early 1900s. He d e v o t e d
ever i n d e b t e d to a g r a d u a t e student in c o u n t l e s s hours to learning sleight-
one a u d i e n c e w h o b l u r t e d out "No of-hand skills and o t h e r "pocket
way!" j u s t before I n a m e d the hidden magic" effects with w h i c h to enter-
card.) Please t a k e a m o m e n t to p o n d e r tain friends a n d family. F r o m the
h o w the trick could work, while I re- time of his initial t e a c h i n g assign-
Please send all submissions to late s o m e history a n d delay giving m e n t s at Tufts College in the 1920s,
Mathematical Entertainments Editor, a w a y the a n s w e r for a page o r two. he enjoyed introducing magic ef-
Ravi Vakil, Stanford University, Fkilly appreciating the trick will involve fects into the classroom, b o t h to il-
Department of Mathematics, Bldg. 380,
Stanford, CA 94305-2125, USA 1Published by Seeman Printery, Durham, N.C., 1950; Wallace Lee's Magic Studio, Durham, N.C., 1960; Mickey
e-mail: vakil@math.stanford.edu Hades International, Calgary, 1976.

9 2002 SPRINGER-VERLAGNEWYORK,VOLUME24, NUMBER1, 2002 9


lustrate points and to a s s u r e his rums; on the r e c . p u z z l e s newsgroup, I tially by rank, A 2 3 . . . J Q K , and b r e a k
s t u d e n t s ' attentiveness. He also once heard that it was p o s e d to a can- ties by ordering the suits as in bridge
t r a i n e d himself to be a m b i d e x t r o u s didate at a j o b interview. It m a d e a re- (i.e., alphabetical) order, & 0 s &.
(although naturally left-handed), cent a p p e a r a n c e in print in the "Problem Then the three c a r d s can be thought o f
a n d a m a z e d his classes with his abil- Comer" section of the January 2001 as smallest, middle, a n d largest, and
ity to write equations simultane- E m i s s a r y , t h e newsletter of the Mathe- the six p e r m u t a t i o n s can be ordered,
ously with b o t h hands, m e e t i n g in matical Sciences Research Institute. As e.g., lexicographically. 4
the c e n t e r at the "equals" sign. a result of writing this column, I a m N o w go out a n d a m a z e (and illumi-
learning about a slew of papers in prepa- nate 5) y o u r friends. But, please: j u s t
E a c h m o n t h the magazine M-U-M, ration that discuss it as well. It is a card m a k e sure that you a n d y o u r assistant
official publication o f the Society o f trick whose time has come. agree on c o n v e n t i o n s a n d can name the
A m e r i c a n Magicians, i n c l u d e s a sec- hidden card flawlessly, s a y 20 times in
tion of n e w effects c r e a t e d b y society The Workings a row, before you try this in public. As
m e m b e r s , and "Fitch Cheney" w a s a N o w to business. Our " p r o o f ' of im- w e saw above, it's n o t h a r d to n a m e the
r e g u l a r by-line. A n u m b e r o f his con- possibility ignored the other c h o i c e m y hidden c a r d half the t i m e - - a n d it's
tributions have a m a t h e m a t i c a l feel. lovely a s s i s t a n t gets to make: w h i c h o f tough to win b a c k y o u r a u d i e n c e if you
His series of seven "Mental Dice Ef- the five c a r d s r e m a i n s hidden. We c a n h a p p e n to get the first one wrong. (I
fects" (beginning Dec. 1963) will ap- p u t that choice to g o o d use. With five speak, sadly, from experience.)
p e a l to a n y o n e w h o thinks it i m p o r t a n t cards in y o u r hand, there are certainly
to r e m e m b e r w h e t h e r the n u m b e r s 1, two of the s a m e suit; we a d o p t the The Big Time
2, 3 a r e oriented c l o c k w i s e o r counter- strategy that the fLrst card m y a s s i s t a n t Our s c h e m e w o r k s beautifully with a
c l o c k w i s e a b o u t their c o m m o n v e r t e x s h o w s m e is of the s a m e suit as the s t a n d a r d deck, a l m o s t as if four suits
on a s t a n d a r d die. "Card Sense" (Oct. c a r d t h a t stays hidden. Once I s e e the o f thirteen c a r d s e a c h w e r e c h o s e n j u s t
1961) e n c o d e s the r a n k o f a c a r d (pos- first card, t h e r e are only twelve c h o i c e s for this reason. Wh~le this satisfied
sibly a j o k e r ) using the f o u r t e e n equiv- for the h i d d e n card. But a bit m o r e Wallace Lee, w e w o u l d like to k n o w
a l e n c e classes of p e r m u t a t i o n s of a b c d cleverness is required: by p e r m u t i n g more. Can w e do this with a l a r g e r d e c k
w h i c h r e m a i n distinct if y o u d e c l a r e 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 of cards? And if w e r e p l a c e the h a n d
a c = c a a n d bd = d b as substrings: the can s e n d m e one of only 3! -- 6 mes- size of five with n, w h a t h a p p e n s ?
c a r d is p l a c e d on a p i e c e o f p a p e r sages, a n d again w e are one bit short. First w e n e e d a b e t t e r analysis o f t h e
w h o s e four edges are f o l d e d o v e r (by The r e m a i n i n g choice m y a s s i s t a n t information-passing. My assistant is
the magician) to c o v e r it, a n d examin- m a k e s is w h i c h card from the s a m e - sending me a m e s s a g e consisting of an
ing the c r e a s e s gives p r e c i s e l y that suit p a i r is d i s p l a y e d and w h i c h is hid- o r d e r e d set of four cards; there are
m u c h information a b o u t the o r d e r in den. C o n s i d e r the ranks of t h e s e c a r d s 52 x 5 1 x 50 x 49 such messages.
w h i c h t h e y w e r e folded. 2 to be t w o o f the n u m b e r s from 1 to 13, Since I see four o f y o u r c a r d s and n a m e
While Fitch was a mathematician, the a r r a n g e d in a circle. It is always possi- the fifth, the information I ultimately
five-card trick was p a s s e d d o w n via Wal- ble to a d d a n u m b e r b e t w e e n 1 a n d 6 e x t r a c t is an u n o r d e r e d set of five
lace Lee's b o o k and the magic commu- to one c a r d ( m o d u l o 13) and o b t a i n the cards, o f which t h e r e are (552), which
nity (I don't know whether it a p p e a r e d other; this a m o u n t s to going a r o u n d t h e for c o m p a r i s o n w e should write as
earlier in M-U-M or not.) The trick s e e m s circle "the s h o r t way." In summary, m y 52 x 51 x 50 x 49 x 48/5!. So there is
to be making the rounds of the current 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 plenty of e x t r a space: the set of mes-
m a t h community and beyond, thanks to t r a n s m i t a n u m b e r from 1 to 6; I incre- sages is ~ s~ = 2.5 t i m e s as large as the
mathematician and magician Art Ben- m e n t the r a n k o f the card by the num- set of situations. Indeed, we can see
jamm, who ran across a copy of Lee's ber, a n d leave the suit unchanged, to some of that slop space in our algorithm:
b o o k at a magic show, then taught the identify the h i d d e n card. some hands are e n c o d e d by more than
trick at the Hampshire College Summer It r e m a i n s only for me a n d m y as- one message (any h a n d with more than
Studies in Mathematics p r o g r a m s in sistant to p i c k a convention for repre- two cards of the s a m e suit), and s o m e
1986. Since then it has turned up regu- senting the n u m b e r s from 1 to 6. First, messages never get used (any message
larly in "brain teaser" puzzle-friendly fo- totally o r d e r a d e c k of cards: s a y ini- which contains the c a r d it encodes).

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 se-
cretly 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, con-
tact David Kelly, Natural Science Department, Hampshire College, Amherst, MA 01002, or dkelly@hampshire.edu.
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
Generalize n o w to a deck with d b o u n d of n! + n - 1, this is a square card is straightforward: take 5p + ( - s
cards, from which you draw a hand of matrix, and has exactly n! l ' s in each m o d 5) and add 0, 1, 2, 3, or 4 to ac-
n. Calculating as above, there are row and column. We conclude that c o u n t for skipping the cards that ap-
d(d - 1) 9 9 9 (d - n + 2 ) p o s s i b l e mes- some subset of these l ' s forms a per- pear in the message, s
sages, and (gn) possible hands. The mutation matrix. But this is precisely a Having performed the 124-card ver-
trick really is impossible (without sub- strategy for me a n d m y lovely assis- sion, I can report that with only a little
terfuge) if there are more hands t h a n t a n t - - a bijection b e t w e e n hands and practice it flows quite nicely. Berlekamp
messages, i.e., unless d -< n! + n - 1. messages which can be used to repre- mentions that he has also performed the
The r e m a r k a b l e t h e o r e m is that this sent them. Indeed, by the above para- trick with a deck of only 64 cards, where
u p p e r b o u n d o n d is always attainable. graph, there is n o t j u s t one strategy, the audience also flips a coin: after see-
While we calculated that there are but at least n!. ing four cards the performer both names
enough messages to encode all the the fifth and states whether the coin
hands, it is far from obvious that we Perfection came up heads or tails. Encoding and de-
can match t h e m up so each hand is en- Technically the above proof is con- coding work just as before, only now
coded by a message using only the n structive, in that the proof of Hall's w h e n we delete the four cards used to
cards available! But we can; the n = 5 Marriage theorem is itself a construc- transmit the message, the deck has 60
trick, which we can do with 52 cards, tion. But with n = 5 the above matrix cards left, not 120, and the extra bit en-
can be done with a deck of 124. I will has 225,150,024 rows a n d columns, so codes the flip of the coin. If the 52-card
give a n algorithm in a moment, b u t first there is room for improvement. More- version becomes too well known, I may
an interesting n o n c o n s t r u c t i v e proof. over, we would like a workable strat- need to resort to this variant to stay
The Birkhoff-von N e u m a n n theorem egy, one that we have a chance at per- ahead of the crowd.
states that the convex hull of the per- forming without consulting a cheat And finally a combinatorial question
mutation matrices is precisely the set of sheet or scribbling o n scrap paper. The to which I have no answer: h o w many
doubly stochastic matrices: matrices perfect strategy b e l o w I learned from strategies exist? We p r o b a b l y ought to
with entries in [0,1] with each row and Elwyn Berlekamp, a n d I've b e e n told c o u n t equivalence classes modulo
column s u m m i n g to 1. We will use the that Stein Kulseth and Gadiel Seroussi r e n u m b e r i n g the underlying deck of
equivalent discrete statement that any came up with essentially the same one cards. Perhaps we should also ignore
matrix of nonnegative integers with independently; likely others have done composing a strategy with arbitrary
constant row and column sums can be so too. Sadly, I have n o information o n p e r m u t a t i o n s of the m e s s a g e - - s o two
written as a s u m of permutation matri- whether Fitch Cheney thought about strategies are equivalent if, o n every
ces. 6 To prove this by induction (on the this generalization at all. hand, they always choose the same
constant sum) one need only show that Suppose for simplicity of exposition card to r e m a i n hidden. Calculating the
any such matrix is entrywise greater that n = 5. Number the cards in the deck p e r m a n e n t of the a f o r e m e n t i o n e d
than some permutation matrix. This is 0 through 123. Given a hand of five cards 225,150,024-row matrix seems like a
an application of Hall's Marriage theo- CO < el < C2 < C3 < C4, my assistant will bad way to begin. Is there a good one?
rem, which states that it is possible to choose ci to remain hidden, where i =
arrange suitable marriages b e t w e e n n Co + cl + c2 + c3 + c4 mod 5. Acknowledgments
m e n and n w o m e n as long as any col- To see how this works, suppose the Much credit goes to Art B e n j a m i n for
lection of k w o m e n can concoct a list of message consists of four cards which popularizing the trick; I t h a n k him,
at least k m e n that s o m e o n e among sum to s m o d 5. T h e n the hidden card Persi Diaconis, and Bill Cheney for
them considers an eligible bachelor. Ap- is congruent to - s + i m o d 5 if it is ci. sharing what they k n e w of its history.
plying this to our nonnegative integer This is precisely the same as saying In helping track Fitch Cheney from his
matrix, we can marry a row to a c o l u m n that if we r e n u m b e r the cards from 0 Ph.D. through his m a t h e m a t i c a l career,
only if their c o m m o n entry is nonzero. to 119 by deleting the four cards used I owe thanks to Marlene Manoff, Nora
The constant row and column sums en- in the message, the hidden card's n e w Murphy, Geogory Colati, Betsy Pittman,
sure that any k rows have at least k n u m b e r is c o n g r u e n t to - s mod 5. Now a n d Ethel Bacon, collection managers
colunms they consider eligible. it is clear that there are exactly 24 pos- and archivists at MIT, MIT again, Tufts,
Now c o n s i d e r the (very large) 0 - 1 sibilities, and the p e r m u t a t i o n of the Connecticut, and Hartford, respec-
matrix with rows indexed by the four displayed cards c o m m u n i c a t e s a tively. Thanks also to my lovely assis-
( d ) hands, c o l u m n s indexed by the n u m b e r p from 0 to 23, in "base facto- tants: Jessica Polito (my wife, who
d ! / ( d - n + 1)! messages, and entries rial:" p = d l l ! + d22! + d33!, where for w o r k e d out the solution to the original
equal to 1 indicating that the cards lex order, di-< i counts how m a n y trick with me on a long winter's walk),
used in the message all appear in the cards to the right of the ( n - ith) are Benjamin Kleber, Tara Holm, Daniel
hand. When we take d to be our u p p e r smaller t h a n it. 7 Decoding the hidden Biss, and Sara Billey.

6Exercise: Do so for your favorite magic square.


7Or, my preference, d, counts how many cards larger than the/th smallest appear to the left of it. Either way, the conversion feels perfectly natural after practicing a few times.
8Exercise: Verify that if your lovely assistant shows you the sequence of cards 37, 7, 94, 61, then the hidden card is the page number in this issue where the first six
colorful algorithms converge:)

VOLUME24, NUMBER 1, 2002 11

You might also like