Pigeonhole Principle
Pigeonhole Principle
BSEd-MATH 3-1!
Prepared by: MS. DAISERY C. GALOS
BSEd- MATHEMATICS 4
M112- NUMBER THEORY
PIGEONHOLE
PRINCIPLE
1 After going through this discussion,
you are expected to:
a. describe the concept of pigeonhole principle and
the generalized pigeonhole principle;
3
1 PIGEONHOLE PRINCIPLE
3
1 EXAMPLE 2.
3
1 Example 2. Bob’s sock drawer has many, many socks
in it, and they come in 4 colors. Unfortunately, the
light in his room has burned out, so he cannot see
anything. How many socks should he grab from the
drawer, so that he can be sure at least two of them
are of the same color?
2 Answer:
k= 4
k+1= 4+1= 5
Therefore, he must grab at least 5 socks.
3
1
COROLLARY 1
2
A function f: X→Y is said to be a A function f: X→Y is said to be
one-to-one function if the an onto function if every
images of distinct elements of X element of Y is an image of
3 under f are distinct. some element of set X under f.
1 Corollary 1: A function f from a set with k+1 elements
to a set with k elements is not one-to-one.
3
1 In mathematics and computer
programming there are two types of
functions that are commonly used. One is
the floor function, and the other is
2 the ceiling function.
EXAMPLE: 3.3
⌈3.3⌉= 4 (ceiling function)
⌊3.3⌋= 3 (floor function)
3
Given:5 pigeons
4 boxes
Let: N- pigeons
k- boxes
Since, N > k, then there exists at
least one box containing ⌈N/k ⌉
objects.
3
1 Example 4. A bowl contains 10 red and 10
yellow balls. How many balls must be selected
to ensure 3 balls of the same color?
Answer:
Let k=2 and ⌈N/k ⌉=3
2 𝑁−1
=⌈N/k ⌉-1
𝑘
𝑁−1 • Therefore, there
2
=3-1 must be 5 balls to
N-1=2(2) ensure 3 balls of
N=4+1= 5 the same color.
3
1 Example 5. How many cards must be selected from
a standard deck of 52 cards to guarantee that at least
three cards of the same suit are chosen?
Answer:
Let k=4 and ⌈N/k ⌉=3
2 𝑁−1
=⌈N/k ⌉-1
𝑘
𝑁−1 • Therefore, there must be
4
=3-1 9 cards to guarantee that
N-1=2(4) at least 3 cards of the
N=8+1= 9 same suit are chosen.
3
1 Example 6. Show that if you pick five numbers
from the integers 1 to 8, then two of them must
add up to nine.
Answer:
2 In the range of integers 1 to 8, there are four pairs of
numbers that add up to 9: (1, 8), (2, 7), (3, 6), and (4, 5).
When you pick five numbers from this range, by the
Pigeonhole Principle, you must have selected at least
one pair among these four pairs. Therefore, two of the
five numbers you pick must add up to nine.
3
1 Example 7. In a group of 10 people, some people are friends
with each other. What is the minimum number of people you
need to ask about their number of friends to ensure that at
least two people have the same number of friends?
Answer:
2 You need to ask about the number of friends of at least
9 people to ensure that at least two people have the
same number of friends. This is because the number of
friends each person has can range from 0 to 9. With 10
people and only 10 possible values for the number of
friends, by the Pigeonhole Principle, at least two people
must have the same number of friends.
3
1
FORMULA TO LOOK OF THE NUMBER OF
OBJECTS NEEDED
2 𝑵−𝟏
=⌈N/k ⌉-1
𝒌
3
1 APPLICATION
1. Ten people are swimming in the lake. Prove that at least two
of them were born on the same day of the week.
3
GENERALIZATION
Guide Questions:
• What is the Pigeonhole Principle?
• Is the pigeonhole principle a one-to-one
function or not and why?
1 FORMULAS: