Mathematics for Computer Science

(Frankie) #1

15.13. A Magic Trick 509


Homework Problems


Problem 15.39.
Pigeon Huntin’
(a)Show that any odd integerxin the range 109 < x < 2 109 containing all ten
digits0;1;:::;9must have consecutive even digits.Hint:What can you conclude
about the parities of the first and last digit?


(b)Show that there are 2 vertices of equal degree in any finite undirected graph
withn 2 vertices.Hint:Cases conditioned upon the existence of a degree zero
vertex.


Problem 15.40.
Show that for any set of 201 positive integers less than 300, there must be two
whose quotient is a power of three (with no remainder).


Problems for Section 15.13


Class Problems


Problem 15.41. (a)Show that the Magician could not pull off the trick with a deck
larger than 124 cards.


Hint:Compare the number of 5-card hands in ann-card deck with the number of
4-card sequences.


(b)Show that, in principle, the Magician could pull off the Card Trick with a deck
of 124 cards.


Hint:Hall’s Theorem and degree-constrained (11.5.5) graphs.


Problem 15.42.
The Magician can determine the 5th card in a poker hand when his Assisant reveals
the other 4 cards. Describe a similar method for determining 2 hidden cards in a
hand of 9 cards when your Assisant reveals the other 7 cards.


Homework Problems


Problem 15.43.
Section 15.13.3 explained why it is not possible to perform a four-card variant of the
hidden-card magic trick with one card hidden. But the Magician and her Assistant
are determined to find a way to make a trick like this work. They decide to change

Free download pdf