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?
The closed marble box
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?
A closed box, no peeking — the draw has to be one hundred percent sure.
Solution steps
0 / 9 stepsTry Your Own Numbers
Change the numbers and watch the diagram redraw itself:
Solving pigeonhole problems with the worst case
The key to this whole pattern is thinking like bad luck: do not ask "how many draws usually do it", ask "how many draws can still fail, at worst". Build the worst case — let every colour climb right up to just below the goal while the condition still has not happened — then add one more: the next object, whatever it is, forces the condition to happen.
The 3 beats of a pigeonhole problem
- 1
Spot the boxes and the goal: The boxes are the kinds an object can land in: marble colours, sock colours, numbers on cards, birth months... The goal is how many objects in one box make the condition come true: 2 socks of one colour, 3 marbles of one colour, 4 cards with one number.
- 2
Build the worst case: Let bad luck win for as long as possible: every box fills evenly to just below the goal while the condition still has not happened, then count the objects at that moment. In this lesson: 3 marble colours with 2 marbles each — 6 marbles and still no colour has 3.
- 3
Add one more: The next object, whichever box it lands in, brings that box up to the goal, so the answer is always the worst-case total plus one more. In this lesson: 6 + 1 = 7 marbles.
Common mistakes in pigeonhole problems
The most common mistake is stopping at the worst case itself: counting 6 marbles and answering 6 — when with 6 marbles every colour could still have only 2 and no colour is complete; the answer always needs the plus one. A second mistake: when the question asks for every colour, many students still build the worst case by filling colours evenly — but there bad luck changes how it hides: it drains the big colours first and keeps one colour hidden until the very end.
Frequently asked questions about the pigeonhole principle
How do I recognise a pigeonhole problem?
The wording usually carries phrases like "at least how many ... to be sure" or "is it certain that ...": objects are drawn, taken or chosen without looking, and something must hold in every case, even the unluckiest one.
Why is the answer always the worst case plus one more?
Because the worst case is the longest the condition can be avoided without happening. One more object after that has no box left that is still below the goal — it is forced to complete some box. Leaving out the plus one leaves out exactly the deciding object.
What grade is the pigeonhole principle, and does it appear in grade-6 entrance exams?
It is a familiar thinking-math pattern in grades 3–4 and one of the patterns often seen in olympic maths papers and selective grade-6 entrance exams. This lesson covers the first half of the pattern — building the worst case on the picture; later lessons meet situations where you must find the "boxes" yourself when the problem does not hand them to you.