Interview prep
Quant10 min read

Pigeonhole Principle in CAT: Worst Case Counting Steps

Published November 26, 2026
Cover image with the headline Pigeonhole principle worst case plus one on a blue themed layout
Quant

Some CAT questions ask for a minimum that guarantees something: how many cards must you draw to be sure of a pair, how many numbers must you pick to be certain two add up to 21. The word that gives them away is guarantee. These questions are not about probability. They are about the worst case, and the pigeonhole principle is the tool for it.

This post gives the idea in plain words, a three-step method for worst-case counting, and worked examples with every number checked. The same three steps handle socks, cards, remainders and pair-sum questions.

Worst-case counting sits next to divisibility and remainders. The number system practice questions build the remainder side of it.

Key Takeaways
  • The pigeonhole principle says that if you put more items than boxes, some box holds at least two.
  • Step one: decide what the boxes are. Step two: build the worst case that avoids the target. Step three: add one more item.
  • To guarantee k+1 items in one box among n boxes, you need n times k plus 1 items.
  • Guarantee questions never ask about luck. The answer is always the worst case plus one.
  • Check each answer by testing the number one lower, which should fail.

The Idea in One Sentence

If you place 11 letters into 10 pigeonholes, at least one pigeonhole holds two letters. That is the whole principle. It sounds trivial, and the power comes from choosing what counts as a pigeonhole so that the conclusion you want is the one forced.

In CAT, the principle appears as a guarantee: what is the smallest number that makes the outcome certain, whatever the arrangement. Because the outcome must hold in every arrangement, you plan for the most unlucky one.

The Three Steps

StepWhat you doQuestion to ask
OneIdentify the boxesWhat are the categories an item can fall into?
TwoBuild the worst caseHow many items can I take while still avoiding the target?
ThreeAdd oneWhat single extra item forces the target?

Step two is where marks are won or lost. The worst case is the largest set that still fails the target. Count it carefully, respecting any limits on how many items each box holds. Then one more item breaks the failure.

Step one: choose the boxes

The boxes are the categories relevant to the target. If the target is a pair of the same colour, the boxes are colours. If it is two numbers with the same remainder, the boxes are remainders. If it is two numbers adding to 21, the boxes are the pairs that add to 21.

Step two: build the worst case

Fill the boxes as evenly as the target allows. To avoid two of the same colour among three colours, take one of each. To avoid three of the same colour, take two of each. Where a box has a limited stock, empty it first, because that is how the unlucky draw uses up the items that do not help you.

Step three: add one more

After the worst case, the next draw must create the target. The answer is the size of the worst case plus one. If the worst case is 6, the answer is 7.

Worked Example One: Socks of Three Colours

A drawer has 10 red, 8 blue and 6 black socks. You draw without looking.

QuestionWorst caseAnswer
A pair of the same colourOne of each colour: 34
Three of the same colourTwo of each colour: 67
At least two blackAll 10 red and all 8 blue first: 1820
One of each colourAll 10 red and all 8 blue first: 1819

The first two follow the formula: with 3 colours, guaranteeing k+1 of one colour needs 3 times k plus 1, so a pair needs 3 times 1 plus 1, which is 4, and three of a kind needs 3 times 2 plus 1, which is 7. The last two are different because stock is limited. To be sure of two black socks, the unluckiest draw takes every non-black sock first, 18 of them, and then two black ones, so 20 draws. To be sure of one of each colour, the worst case empties red and blue before any black appears, so 19.

Common Mistake

Applying the formula n times k plus 1 when a box does not have enough items. The formula assumes every box can supply k items. If a colour has only 2 socks, you cannot take 2 of it as part of a worst case for three of a kind in the same way. Check the stock of each box first.

Worked Example Two: Cards

A standard pack has 52 cards in 4 suits and 13 ranks. To be sure of four cards of the same suit, the worst case takes 3 from each suit, which is 12, so you need 13. To be sure of a pair of the same rank, the worst case takes one of each of the 13 ranks, so you need 14.

Exam Tip

When a question mentions two different attributes, such as suit and rank, work out which one is the box for the target in the question. Suits are the boxes for same suit questions, ranks are the boxes for same rank questions. Do not mix them.

Pigeonhole With Numbers

Pairs that add to a target

Pick numbers from 1 to 20. How many must you pick to be sure two of them add to 21? The pairs that add to 21 are 1 and 20, 2 and 19, up to 10 and 11, which is 10 pairs. You can pick one number from each pair without making a sum of 21, so the worst case is 10 numbers, and the 11th forces a pair.

Similarly, from 1 to 10, choose 6 numbers to be sure two sum to 11. The pairs are 1 and 10, 2 and 9, 3 and 8, 4 and 7, 5 and 6, which is 5 pairs. Six numbers must put two into one pair.

Remainders

Among any 5 integers, two have the same remainder when divided by 4, because there are only 4 possible remainders, 0, 1, 2 and 3. Those two numbers have a difference divisible by 4. More generally, among any n plus 1 integers, two have a difference divisible by n.

This is a favourite CAT move. When a question asks you to show that some pair of numbers has a difference divisible by n, the boxes are the n remainders.

Birthdays

There are 366 possible birthdays including 29 February. Among 367 people, at least two must share a birthday. No probability is involved, because the worst case uses all 366 dates once and the 367th person repeats one.

Harder Variants You May See

CAT rarely asks the bare socks question. It dresses the same idea in a story, and the dressing is where candidates lose the boxes.

  • Groups of people and months: among 25 people, at least 3 share a birth month, since 12 months times 2 is 24, and the 25th person forces three.
  • Exam scores: if 22 students score whole-number marks from 0 to 20, at least 2 share a score, since there are only 21 possible scores.
  • Sums and remainders: among any 7 numbers, two have a sum or a difference divisible by 10, by grouping remainders in complementary pairs.
  • Handshakes: in a group of 6 people where each shakes hands with some of the others, at least two people have shaken the same number of hands, which is a classic boxes argument.

In each case, the question gives you items and hides the categories. Your first job is to name the categories, and the rest is counting. If you cannot name the boxes, you do not yet understand what the question guarantees.

When there are two targets at once

Some questions ask for a guarantee of two different things together, such as at least two of one colour and at least three of another. Build the worst case for the combined target by taking the largest set that fails both, then add one. The usual trap is to add the two separate answers, which overcounts, because one draw can serve both targets. Draw the boxes on your rough sheet and count the worst case once.

A good habit is to restate the question in boxes-and-items language before you calculate. For instance: the items are the numbers I pick, the boxes are the pairs that add to 21, the target is two items in one box. Once you say it that way, the counting is mechanical. Many candidates skip the restatement and start counting examples, which is slow and error prone. Spend ten seconds on the restatement and save a minute on the counting.

Finally, watch for questions that quietly change the target midway, such as asking for the minimum number of draws to be sure of a pair, and then adding a condition on colour or size. Re-read the target after you find the worst case, and confirm that the extra draw really does force it.

Checking Your Answer

A guarantee answer can always be checked by testing the number below it. If your answer is 20 for two black socks, confirm that 19 draws can fail: 10 red, 8 blue and 1 black is 19 draws with only one black sock. So 19 does not guarantee two black, and 20 does. If the number below can also succeed in every case, your answer is too high.

Mentor Insight

If you are stuck on a minimum guarantee question, ask what the unluckiest possible person would draw. Write that set down, count it, and add one. The answer is rarely harder than that, and writing the worst case down makes the trap visible.

A Practice Routine

  • Write ten guarantee questions of your own, with different boxes and limits, and solve them with the three steps.
  • For each, name the boxes before you count anything.
  • Include at least three with limited stock, where the formula does not apply directly.
  • Check every answer by testing one lower.
  • Keep a short log of which step you got wrong.

Place the routine in your weekly plan with the CAT preparation planner. A strategy review can show whether Quant gets enough time overall, and the CAT percentile predictor shows what a few extra solved questions are worth.

A last point on time. These questions look long because of their stories, but the working is usually five lines: boxes, worst case, plus one, and a one-line check. If you find yourself writing more than that, you have probably chosen the wrong boxes. Stop, restate the target, and pick the categories again. Two minutes spent confused on a guarantee question is usually a sign to flag it and return, since the idea clicks quickly once the boxes are right.

Summary

Pigeonhole questions ask for a guarantee. Name the boxes, build the worst case that avoids the target, and add one. For k plus 1 in one box among n boxes, the count is n times k plus 1, but check box limits first.

Test the answer by trying one lower. The method is short, and the skill is in choosing the boxes.

Drill Worst-Case Counting

Practise guarantee questions until the three steps are automatic.

Practise Number System

Frequently Asked Questions About the Pigeonhole Principle in CAT

What is the pigeonhole principle?

If you place more items than boxes, some box holds at least two items. In CAT it is used to find the minimum that guarantees an outcome.

How do I find the minimum number that guarantees a result?

Name the boxes, build the worst case that avoids the target, and add one more item.

Does the formula n times k plus 1 always work?

Only if every box can supply k items. When a box has limited stock, empty it first in the worst case.

Is this about probability?

No. A guarantee must hold in every arrangement, so you plan for the worst case, not the likely one.

From the Optima Learn product

Practice these Quant concepts, chapter by chapter

Thousands of CAT Quant practice questions by chapter and difficulty, each with a worked solution.

More from Quant