HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →
Live examsInternational live exams are comingTell us which exam you want first. Timed practice papers are open now.See what is coming →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Space Science and Astronomy
  • Earth and Environmental Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Pigeonhole, Recursion and Graph Theory
  2. /Mathematics
  3. /The Pigeonhole Principle
Chapter 30 · Part 1 of 3Pigeonhole, Recursion and Graph Theory
Next part: Recurrences and Counting by Recursion →
High School (11–12)Pigeonhole Principle, Recursion and Graph TheoryFree course

The Pigeonhole Principle

Thirteen people in a room, and two of them share a birth month.

  • You can be sure of it without asking anyone.
  • This course turns that idea into a tool for proofs.
  • You learn the simple and the generalised pigeonhole principle, and the real skill: choosing the boxes.
  • Then you use it on remainders, divisors, sums, sequences and points in a square.
  • It covers the pigeonhole unit of the Indian olympiad syllabus and the same topic of the international olympiads.

3 lessons, about 1 h 15 min3 simulations10 problems3 practice questionsPython in every lesson

StemPy LabCreated by StemPy Lab

Free

Every lesson is open to read. Enroll to keep your place in the course. No payment needed.

This course includes

  • 3 lessons, about 1 h 15 min
  • 3 simulations with sliders
  • 3 practice questions with new numbers each time
  • 3 Python programs to run
  • 10 problems with worked solutions
  • 2 Python labs
1 question set
  • 1 revision note
  • 1 test
  • Log in to save

    Course outline (3 lessons)

    1. 1
      Lesson 1about 25 min

      The pigeonhole principle

      If more than nnn objects go into nnn boxes, some box holds at least two objects. That is the pigeonhole principle. It tells you that something exists without telling you where. The skill lies in choosing the boxes: colours, remainders, pairs of numbers or parts of a figure.

      1 simulation1 practice question1 Python program3 problems1 Python lab
      Read the lesson
    2. 2
      Lesson 2about 25 min

      The generalised pigeonhole principle

      If NNN objects go into kkk boxes, some box holds at least ⌈N/k⌉\lceil N/k \rceil⌈N/k⌉ objects, where ⌈x⌉\lceil x \rceil⌈x⌉ means xxx rounded up to a whole number. To force rrr objects into one box you need k(r−1)+1k(r - 1) + 1k(r−1)+1 objects. The same idea, used on averages, says that some value is at least the average. It proves the theorem of Erdős and Szekeres on increasing and decreasing runs.

      1 simulation1 practice question1 Python program3 problems
      Read the lesson
    3. 3
      Lesson 3about 25 min

      Pigeonholes in numbers and geometry

      In number theory the boxes are often remainders: among m+1m + 1m+1 whole numbers, two have the same remainder on division by mmm. Prefix sums give a block of numbers with a sum divisible by mmm. Odd parts show that among n+1n + 1n+1 numbers from 111 to 2n2n2n, one divides another. In geometry the boxes are pieces of a figure, so points that share a piece are close together.

      1 simulation1 practice question1 Python program4 problems1 Python lab1 question set1 note
      Read the lesson

    Test Your Learning

    The Pigeonhole Principle: Challenge Paper
    Olympiad format10 questions · 30 min
    Not started

    Your teacher

    StemPy LabStemPy Lab

    1 follower

    Loading…

    ← All Courses
    ← PreviousRecurrences and Counting by Recursion →
    More onPigeonhole Principle, Recursion and Graph Theory

    Discussion (0)

    Log in to join the discussion.

    Loading…