All 18 problems from "The Pigeonhole Principle I" with complete step-by-step worked solutions: recognising the type, the idea, the working steps and the conclusion. Use this page to review with your child after the animated lesson, or let them check their own working against it.
Every problem, fully solved
A drawer holds socks in 3 colours: red, blue and yellow. In the dark, you take socks out without looking. How many socks must you take to be sure of a pair of the same colour?
Key idea: Fill every colour to one below the goal, then add one.
Recognise
Drawing without looking and asking for a sure pair — the boxes are the 3 colours, the goal is 2 in one box.
The idea
Build the worst case: one sock of each colour, and only then count one more.
Steps
1
Worst case: 3 socks come out, one red, one blue, one yellow — no pair yet.
2
The next sock must match one of those colours.
3
So the sure number is 3 + 1 = 4.
So: So you must take 4 socks.
A box mixes left gloves and right gloves, all the same colour. You draw gloves out blindfolded. How many gloves must you draw to be sure that two of them fit the same hand?
Key idea: With two kinds, bad luck survives two draws — the third must repeat a kind.
Recognise
Only two boxes exist here: left and right. The goal is 2 gloves in one box.
The idea
Let bad luck win twice — one of each — then one more draw settles it.
Steps
1
Worst case: 1 left glove and 1 right glove — no two for the same hand.
2
The 3rd glove lands on one of the two sides and matches the glove there.
3
So the sure number is 2 + 1 = 3.
So: So you must draw 3 gloves.
A pencil case holds pens in 4 colours. You take pens out without looking. How many pens must you take to be sure of 2 pens of the same colour?
Key idea: One per colour is the worst case for a pair; one more forces a repeat.
Recognise
The boxes are the 4 pen colours; the goal is 2 in one box.
The idea
Bad luck spends one pen on each colour first — count those, then add one.
Steps
1
Worst case: 4 pens, one of each colour — still no pair.
2
The 5th pen must repeat a colour already out.
3
So the sure number is 4 + 1 = 5.
So: So you must take 5 pens.
A bag holds candies in 3 colours. You take candies out without looking. How many candies must you take to be sure of 3 candies of the same colour?
Key idea: Worst case = colours × (goal − 1); the sure number is that plus one.
Recognise
Same shape as the box of marbles: 3 boxes (colours), goal 3 in one box.
The idea
Let every colour climb to 2 first — that is the longest bad luck can last.
Steps
1
Round one: one candy of each colour. Round two: a second candy of each colour.
2
Worst case so far: 2 + 2 + 2 = 6 candies, no colour at 3.
3
One more candy completes its colour: 6 + 1 = 7.
So: So you must take 7 candies.
At a fair stall, a tub holds balls in 4 colours. A player draws balls out without looking. How many balls must the player draw to be sure of 3 balls of the same colour?
Key idea: More colours means bad luck has more hiding places — the worst case grows with the colours.
The next ball lands on a colour that already has 2.
3
So the sure number is 8 + 1 = 9.
So: So the player must draw 9 balls.
A bottle holds 10 red marbles, 12 green marbles and 11 yellow marbles. You draw marbles out without looking. How many marbles must you draw to be sure of 4 marbles of the same colour?
Key idea: The worst case is (goal − 1) full rounds of every colour.
Recognise
3 boxes (colours), goal 4 in one box — one round deeper than the lesson.
The idea
Each colour climbs to 3 and stops; the next marble anywhere finishes a set.
Steps
1
Three unlucky rounds: every colour reaches 3 marbles.
2
Worst case: 3 + 3 + 3 = 9 marbles, no colour at 4.
3
One more: 9 + 1 = 10.
So: So you must draw 10 marbles.
A game uses many cards numbered 1, 2, 3, 4, 5 and 6 — there are plenty of cards of each number. You draw cards without looking. How many cards must you draw to be sure of 3 cards with the same number?
Key idea: Boxes can be numbers, not just colours — one below the goal in every box, then one more.
Recognise
6 boxes (the numbers 1–6), goal 3 in one box.
The idea
Bad luck deals two of every number before any number gets a third card.
Steps
1
Worst case: 2 cards × 6 numbers = 12 cards, no number at 3.
2
The 13th card is the third card of its number.
3
So the sure number is 12 + 1 = 13.
So: So you must draw 13 cards.
A box holds marbles in 4 colours. Na thinks: "Each colour can give me 2 marbles, that is 4 × 2 = 8 marbles. So drawing 8 marbles is enough to be sure of 3 marbles of the same colour." Is Na right?
Right — 8 marbles is already a sure thing
Wrong — 8 marbles is only the worst case: every colour at exactly 2, none at 3 yet. You must draw 9 marbles to be sure
Wrong — you need all 12 marbles, 3 of every colour
Key idea: The worst case is the trap answer — the sure number is always one more.
Recognise
A finished worst case mistaken for a finished answer: the counting is right, the conclusion is one short.
The idea
Ask what the table looks like at the worst case: if no colour is complete there, one more draw is still needed.
Steps
1
Worst case: 4 colours × 2 marbles = 8 marbles.
2
At 8 marbles, every colour can sit at exactly 2 — no set of 3 exists yet.
3
The 9th marble completes its colour, so the sure number is 8 + 1 = 9.
So: So Na is wrong: you must draw 9 marbles, not 8.
A box holds marbles in 3 colours, 5 marbles of each colour. You draw marbles without looking. How many marbles must you draw to be sure of having all 3 colours?
Key idea: Wanting every colour flips the worst case: drain the colours you already have, the missing one comes last.
Recognise
The goal is one marble of EVERY colour — so a colour can now "hide" completely, which changes what bad luck does.
The idea
Bad luck empties the biggest piles first and saves the missing colour for the very end.
Steps
1
Worst case: all 5 marbles of colour one and all 5 of colour two come out — 10 marbles, one colour still missing.
2
Only marbles of the missing colour are left in the box.
3
One more draw brings it: 10 + 1 = 11.
So: So you must draw 11 marbles.
A bottle holds 10 red marbles, 7 blue marbles, 6 yellow marbles and 2 green marbles. You draw marbles without looking. How many marbles must you draw to be sure of having all 4 colours?
Key idea: For "all colours", the worst case is the whole box minus the smallest colour, then one more.
Recognise
The goal is all 4 colours, so the enemy is the one colour that never shows up — the smallest pile hides longest.
The idea
Empty the three biggest piles first; the missing colour is forced out by the very next draw.
Steps
1
Worst case: 10 red + 7 blue + 6 yellow = 23 marbles, no green yet.
2
Only green marbles remain in the bottle.
3
One more draw: 23 + 1 = 24.
So: So you must draw 24 marbles.
From a full deck of 52 playing cards (4 suits, 13 cards in each suit), you draw cards at random without looking. How many cards must you draw to be sure of having all 4 suits?
Key idea: Hiding one whole group is the worst case for "one of every kind" goals.
Recognise
The boxes are the 4 suits; the goal is at least one card in EVERY box.
The idea
Bad luck drains three full suits and keeps the fourth hidden to the end.
Steps
1
Worst case: 13 + 13 + 13 = 39 cards from three suits only.
2
Only cards of the missing suit are left in the deck.
3
One more draw: 39 + 1 = 40.
So: So you must draw 40 cards.
A bag holds balloons in 5 colours: 4 red, 7 blue, 6 green, 2 purple and 5 yellow. A child takes balloons out without looking. How many balloons must the child take to be sure of having every colour?
Key idea: Worst case for "every colour" = everything except the rarest colour, plus one.
Recognise
Goal: one balloon of each of the 5 colours — the rarest colour is the one bad luck hides.
The idea
Drain the four bigger colours completely; the hidden colour has nowhere left to hide.
A box holds 9 red marbles, 9 blue marbles and just 2 yellow marbles. You draw marbles without looking. How many marbles must you draw to be sure of getting a yellow marble?
Key idea: To force out one special item, bad luck must first spend everything that is not it.
Recognise
The goal is a single named colour — so the worst case is built from everything except that colour.
The idea
Drain both other colours completely; the next marble has to be yellow.
Steps
1
Worst case: 9 red + 9 blue = 18 marbles, no yellow.
2
Only the 2 yellow marbles are left in the box.
3
One more draw: 18 + 1 = 19.
So: So you must draw 19 marbles.
A class has 13 students. Is it certain that two students in the class were born in the same month?
Yes — there are only 12 months; even in the worst case, the first 12 students fill 12 different months, so the 13th student must share a month with someone
No — you would need 24 students before it is certain
No — birthdays are luck, so nothing can ever be certain
Key idea: When the items outnumber the boxes by one, two items must share a box — that is the principle itself.
Recognise
Nothing is drawn here — the boxes (12 months) are simply fewer than the students (13).
The idea
Give every month at most one student for as long as possible; the last student has nowhere new to go.
Steps
1
Worst case: 12 students, one in each of the 12 months — no shared month yet.
2
The 13th student must be born in one of those 12 months.
3
So two students share a birth month — certain, not luck.
So: So yes — in any class of 13, two students share a birth month.
A teacher has 50 storybooks to hand out to her class. What is the largest class size for which it is certain that at least one student gets 3 storybooks?
Key idea: Reverse problems: cap everyone one below the goal and find where the total stops fitting.
Recognise
The question is flipped: the total (50 books) and the goal (3 books) are given; the number of boxes (students) is the unknown.
The idea
Pretend the goal fails: everyone gets at most 2 books. The class is too big the moment 2 × students can hold all 50.
Steps
1
Try 24 students: 24 × 2 = 48 < 50 — the books do not fit under the cap, so a 3rd book is forced.
2
Try 25 students: 25 × 2 = 50 — the books fit exactly, so nothing is forced.
3
The largest forcing class size is 24.
So: So the largest class size is 24 students.
There are 70 apples to share out among a class. What is the largest class size for which it is certain that at least one student gets 3 apples?
Key idea: An exact fit is not a forcing fit — the capped total must be strictly smaller than the real total.
Recognise
A reverse problem again: total 70, goal 3, find the biggest number of students that still forces a 3.
The idea
Cap everyone at 2 apples and compare 2 × class size with 70.
Steps
1
34 students: 34 × 2 = 68 < 70 — does not fit, a 3rd apple is forced.
A box holds pens in 5 colours. You take pens out without looking. How many pens must you take to be sure of 4 pens of the same colour?
Key idea: Worst case = colours × (goal − 1) — it works for any colours and any goal.
Recognise
5 boxes (colours), goal 4 in one box — the lesson’s shape at its biggest.
The idea
Three unlucky rounds fill every colour to 3; one more pen ends bad luck.
Steps
1
Worst case: 3 pens × 5 colours = 15 pens, no colour at 4.
2
The 16th pen lands on a colour that already has 3.
3
So the sure number is 15 + 1 = 16.
So: So you must take 16 pens.
Learn it with the animated lesson
The problem
A closed box holds marbles in 3 colours, and nobody can see inside. You draw marbles out without looking. What is the smallest number of marbles you must draw to be sure of having 3 marbles of the same colour?
ProgressNaN%
Shortcuts: Space (play), Arrow keys (step), R (reset), F (fullscreen)
Problem overview
The closed marble box
sure of 3 of one colour = ? marbles
Look at this closed box of marbles: inside are marbles in 3 colours, and nobody can see inside. You draw marbles out without looking. What is the smallest number of marbles you must draw to be sure of having 3 marbles of the same colour?
Key idea
A closed box, no peeking — the draw has to be one hundred percent sure.
Solution steps
0 / 9 steps
Try Your Own Numbers
Sandbox
Change the numbers and watch the diagram redraw itself: