Applications of Pigeonhole Principle
Applications of Pigeonhole Principle
Applications of Pigeonhole Principle
Applications of the
Pigeonhole Principle
Team members:
Edwin Kwek Swee Hee
Huang Meiizhuo
Koh Chan Swee
Heng Wee Kuan
0
Contents
Page
§1. Introduction 1
a. Dartboard applications 6
b. Encompassing problems 8
§8. Conclusion 18
Reference 19
1
Applications of the Pigeonhole Principle
§1. Introduction
Suppose that in one’s dresser drawer, he has socks of three different colours (all
placed in messy order). Having to get up early in the morning while it is still dark,
how does he ensure that he gets a matching pair of same coloured socks in the
most convenient way without disturbing his partner? While, the answer is simple!
He just has to take 4 socks from the drawer! The answer behind this is of course,
illustrate this principle. For instance, there are 3 pigeonholes around. A pigeon is
delivering 4 mails and has to place all its mails into the available pigeonholes. With
Thus, the general rule states when there are k pigeonholes and there are
k+1 mails, then they will be 1 pigeonhole with at least 2 mails. A more
The Pigeonhole Principle sounds trivial but its uses are deceiving
astonishing! Thus, in our project, we aim to learn and explore more about the
2
§2. Pigeonhole Principle and the Birthday problem
not difficult to find two persons with their birthday on the same month. For instance,
all know, there are 12 months in a year, thus, even if the first 12 people have their
birthday from the month of January to the month of December, the 13 th person has
to have his birthday in any of the month of January to December as well. Thus, we
are right to say that there are at least 2 people who have their birthday falling in the
same month.
the year) with 13 pigeons (the 13 persons). Of course, by the Pigeonhole Principle,
relationship:
Suppose that there are 50 people in the room. Some of them are
acquainted with each other, while some not. Then we can show that there are two
3
Let’s assume that there is one person in the room that has no
acquaintance at all, then the others in the room will have either 1, 2, 3, 4, …, 48
them 50 “pigeons”. So, there are at least two persons that have the same number
Next, if everyone in the room has at least one acquaintance, we will still
Also, we can apply the Pigeonhole Principle in the proving of numerical properties.
Consider the following random list of 12 numbers say, 2, 4, 6, 8, 11, 15, 23,
34, 55, 67, 78 and 83. Is it possible to choose two of them such that their
0, 1, 2, 3, …………….., 9, 10.
But we have 12 numbers. If we take the remainders for “pigeonholes” and the
numbers for “pigeons”, then by the Pigeon-Hole Principle, there are at least two
4
pigeons sharing the same hole, ie two numbers with the same remainder. The
In fact, in our example, there are several answers as the two numbers
x-y 1
select two of them say x and y, which satisfy the inequality that 0 < 1 + xy <
3
answer the above problem, one will be surprised to know that we just need a
Before proceeding to answer the problem, we first note that given any real
π π
number x, we can always find a real number where < < such that
2 2
π π
tan = x. For example, 3 = tan , 1=tan( ). So, with given 7 distinct
3 4
numbers n1, n2, ……..and n7, we can find 7 distinct numbers 1, 2, …….7 in the
5
n1 = tan 1, n2 = tan 2, …………….., n7 = tan 7
Now, if we were to divide the interval (, ) into 6 equal intervals, we obtain the
following sub-intervals:
1 1 1 1 1 1 1 1 1
( , ), [ , ), [ , 0 ) , [ 0, ), [ , ) and [ ,
2 3 3 6 6 6 6 3 3
1
).
2
For the 7 distinct numbers 1, 2, …….7, by the Pigeonhole Principle, there
should be two values say, i and j such that I > j and i & j are in the same
1
interval! For these two values i and j, we should have 0 < I j < .
6
tan A - tan B
tan ( A B ) = .
1 + tan A tan B
ni - n j tan α i - tan α j
Thus, if ni = i and nj = j , then 1 + n n = 1 + tan α tan α
i j i j
= tan ( i j )
1 1
As 0 < I j < , tan 0 < tan ( i j ) < tan
6 6
1
0 < tan ( i j ) <
3
ni - n j 1
and so, 0 < < ,
1 + n in j 3
6
which is the result we are seeking!
We may also apply the Pigeonhole Principle in the proving of useful daily
a. Dartboard applications
are those which involve the dartboard. In such questions, a given number of darts
are thrown onto a dartboard, the general shape and size of which are known.
As with most questions involving the pigeonhole principle, the hardest part is to
Example 1:
Seven darts are thrown onto a circular dartboard of radius 10 units. Can we
show that there will always be two darts which are at most 10 units apart?
To prove that the final statement is always true, we first divide the circle into
7
Allowing each sector to be a pigeonhole and each dart to be a pigeon, we
least one sector containing a minimum of two darts. Since the greatest distance
between two points lying in a sector is 10 units, the statement is proven to be true
in any case.
In fact, it is also possible to prove the scenario with only six darts. In such a
case, the circle is this time divided into five sectors and all else follows. However,
take note that this is not always true anymore with only five darts or less.
Example 2:
hexagon with side length of 1 unit. Can we prove that there are two darts within
3
units of each other ?
3
With the six triangles as our pigeonholes and the 19 darts as pigeons, we
find that there must be at least one triangle with a minimum of 4 darts in it.
8
Now, considering the best case scenario, we will have to try an equilateral
If we try to put the points as far apart from each other as possible, we will
end up assigning each of the first three points to the vertices of the triangle. The
last point will then be at the exact centre of the triangle. As we know that the
distance from the centre of the triangle to each vertex is two-third of the altitude of
2 3 3
this triangle, that is, × = units, we can see that it is definitely possible
3 2 3
3
to find two darts which are units apart within the equilateral triangle!
3
b. Encompassing problems
51 points are placed, in a random way, into a square of side 1 unit. Can we prove
1
that 3 of these points can be covered by a circle of radius units ?
7
9
To prove the result, we may divide the square into 25 equal smaller squares of
1
side units each. Then by the Pigeonhole Principle, at least one of these small
5
squares (so call “pigeonholes”) should contain at least 3 points (ie the “pigeons”).
Otherwise, each of the small squares will contain 2 or less points which will then
mean that the total number of points will be less than 50 , which is a contradiction
Now the circle circumvented around the particular square with the three points
radius
1
inside should have 10
1
10
1 2 1 2 1 1 1
radius = ( ) + ( )2 = = < = units !
10 10 100 50 49 7
10
Next, we will like to proceed to a more creative aspect of the application of
tricks:
standard deck of playing cards. The participant does not show these cards to the
magician, but does show them to the magician’s accomplice. The accomplice
looks at the five cards, chooses four of them, and shows these four to the
magician in a certain ordered manner. The magician immediately identifies the fifth
hidden card.
(1) First of all, notice that in any hand of five cards there must be two cards of
the same suit (an application of Pigeonhole Principle). The first card that the
accomplice shows to the magician is one of these two cards. The other card
of the same suit is never shown – it is the mystery card, the card which the
magician must discover. Thus, the accomplice can easily communicate the suit of
11
the hidden card: the hidden card has same suit as the first card shown to the
magician. Specifying the rank of the mystery card (ie its value) is a little trickier
but can be accomplished with a little “circular counting” manner which we will
explained below
Number the cards in a suit circularly from 1(ace) to 11 (jack), 12 (queen) and 13
Now, given any two cards A and B, define distance (A,B) as the clockwise
distance from A to B. It is easy to see that for any two cards A and B either
Example
12
Cards: 3 and Jack (11)
From those two cards of the same suit, A and B, the accomplice shows the
For example, given the choice between the three of clubs and the Jack of clubs,
the accomplice reveals the Jack (since distance (Jack ,3) = 5 and distance(3,
If the two same-suit cards are the five of hearts and the six of hearts, the
accomplice chooses the five (since distance (5,6) = 1 but distance (6,5) = 12)
(3) Finally, the accomplice arranges the last three cards to encode a number
from 1 to 6 – the distance from the value of first card to that of the hidden
card. A quick calculation allows the magician to discover the value of the mystery
card. Notice that although the magician must decode only one of 6 possibilities, it
To facilitate the explanation for the last step involved, we may assign each card a
13
the ace of spade can be numbered 1 (the highest ranking card),
……………………………..,
……………………………….,
……………………………….,
……………………………. ,
……………………………. ,
We will now proceed to explain the last step using the following example:
Example:
14
(v) 2 of Diamonds (numbered 52)
The accomplice notices that the 3 and the 7 have the same suit-- hearts. Since the
first card to show the magician, leaving the 7 of hearts as the hidden card. The
magician now knows that the suit of the mystery card is hearts. The accomplice's
next task is thus to let the magician know that he must add the value 4 to the
How can he achieve this? Basically, he can arrange the other three cards in 3! = 6
ways. Based on the numbering method explained earlier, the 3 remaining cards
can be ranked 1st, 2nd and 3rd . In our example, the 6 of Clubs will be ranked 1, the 5
of Spades will be ranked 2 and the 2 of Diamonds will be ranked 3. The accomplice may
agree with the magician earlier that the arrangement of these 3 cards represent specific
manner: firstly, the 5 of Spades, then the 2 of Diamonds and lastly, the 6 of
Clubs !
15
b. Permutation Card Trick:
are labelled 1 to 10 in a hidden "face down" manner. The participant does not
show the arrangement of these cards to the magician, but does show them to the
magician’s accomplice. The accomplice looks at the ten cards and flips over six of
the cards in a certain ordered manner to reveal their values to the magician. The
magician immediately identifies the values of the four remaining unknown cards.
We first note that by applying the Pigeonhole Principle, we can show that in any
(refer next section of our discussion). These are the numbers that remain hidden in
our trick. The magician will know that the sequence is increasing if the accomplice
flips over the other six cards from the left to right and it is decreasing if the other six
16
Assume that the result is false. For each number x in the sequence, we have the
ordered pair (i, j), where i is the length of the longest increasing subsequence
beginning with x, and j is the length of the longest decreasing subsequence ending
with x. Then, since the result is false, 1 i m and 1 j n. Thus we have mn+1
Principle, two members of the sequence, say a and b, are associated with the
same ordered pair (s, t). Without loss of generality, we may assume that a
If a<b, then a, together with the longest increasing subsequence beginning with b,
Example
17
Suppose the participant arranges the 10 cards in the following manner (value
If he decides to use the increasing subsequence, he should leave the first four
cards untouched and flips the other six cards over in a leftward manner as shown:
1 7 4 2 6 9
Direction of flip
The magician on realising that the four missing numbers are 3, 5, 8 and 10 and the
leftward direction of flip, will thus proclaim the 4 hidden numbers to be 3, 5, 8, and
10 respectively!
If the accomplice decides to use the decreasing subsequence, he should leave the
cards bearing the numbers 10, 7, 4, 2 untouched and flips the other six cards over
3 5 8 1 6 9
Direction of flip
18
The magician on realising that the four missing numbers are 2, 4, 7 and 10 and the
rightward direction of flip, will thus proclaim the 4 hidden numbers (from left to
§8. Conclusion
Although the Pigeonhole Principle seems simple and trivial, it is extremely useful
in helping one to formulate and facilitate calculation and proving steps for
we will like to show that a simple Mathematical concept like the Pigeonhole
Principle does have numerous interesting and beneficial application in our daily
life!
~ ~ ~ ~ ~ End of Report ~ ~ ~ ~ ~
19
Reference
2. Article on "A Combinatorial Card Trick" by Professor Ralph Bravaco and Shai
Bessonova.
Association of America
20