Lesson progress
0 / 10
Chapter 23Lesson 23.2
Chapter 23 · The Pigeonhole Principle

Group Numbers to Force a Relationship

The relationship you want determines the drawers you should build. Pair neighbors to force coprime numbers, pair distant values to force a fixed gap, assign factor drawers to force a common divisor, and use residue classes to control sums and differences.

Worked example 1Guided Practice 1Residue classesSharp maximum proofs
Relationship-first thinking

Do not choose drawers before you know what must be forced.

1
Name the relationship.

Coprime? Fixed difference? Shared divisor? Forbidden pair sum?

2
Build drawers that turn one overloaded drawer into that relationship.

The drawers may be pairs, factor families, or residue classes.

3
For a maximum, prove both sides.

Give a construction and an upper-bound argument.

The core questions

What are the objects?
What are the drawers?
Why do two objects in one drawer have the desired relationship?
All subset activities use distinct numbers, each at most once; all stated endpoints are included. original-care note: when factor families overlap, assign each selected number to exactly one factor drawer before applying the principle.
1

Let the desired relationship choose the drawer design

Match each target relationship to a grouping that makes it automatic.
Not complete
Coprime pair{1,2},{3,4},…

Two consecutive numbers have GCD 1.

Difference 50{1,51},{2,52},…

A completed pair has a fixed gap.

Difference divisible by 7n mod 7

Two values in one remainder drawer differ by a multiple of 7.

Shared divisor2,3,5,7

Assign each number to one divisor it has.

Drawer-design checkpoint

Force a pair differing by 50.
Force two distinct numbers whose difference is divisible by 7.
Force two coprime values.
Force many values sharing a divisor greater than 1.
Need a hint? Start here

Ask what a pair in the same drawer must share.

Show the reasoning

Use fixed-gap pairs for an exact difference, remainder classes for divisibility of a difference, consecutive pairs for coprimality, and factor families for a shared divisor.

2

Worked example 1A — pair neighbors to force coprime numbers

Select51distinct whole numbers from1through100, including both endpoints; use each value at most once.
Not complete

Fifty consecutive-pair drawers

Pair drawers50
Completed pairs forced1
GCD in a completed pair1
The display uses the most avoidance-friendly pattern: place one chosen number in every pair before completing any pair.

Interactive pair board

Why consecutive values are coprime: any common divisor of two consecutive integers would also divide their difference, which is 1.

Checkpoint

Need a hint? Start here

Pair 1 with 2, then 3 with 4, and continue.

Show the reasoning

There are 50 consecutive pairs. Choosing 51 numbers forces both from one pair. Consecutive numbers have no common divisor greater than 1.

3

Worked example 1B — pair distant values to force a fixed gap

Use the same 100 numbers, but build a different set of drawers.
Not complete

Pair n with n+50

Gap in each drawer50
Pair drawers50
Completed pairs1

Fixed-gap pair board

Checkpoint

Need a hint? Start here

Pair each small number with the number 50 above it.

Show the reasoning

The 50 drawers are {1,51}, {2,52}, …, {50,100}. A 51st choice forces a complete pair with difference 50.

4

Worked example 1C — force eight numbers with a shared divisor

Separate the exceptional values, then assign every other selected number to one factor drawer.
Not complete
Four overlapping factor families: multiples of 2, 3, 5, or 7. For pigeonhole counting, each selected number is assigned to exactly one divisor it has.

Drawer 2

Assigned numbers divisible by 2.

Drawer 3

Assigned numbers divisible by 3.

Drawer 5

Assigned numbers divisible by 5.

Drawer 7

Assigned numbers divisible by 7.

Exceptional set: 22

Worst-case count

Could be exceptional22
Must enter factor drawers29
Guaranteed together8
29 = 4 × 7 + 1

Most even four-drawer distribution

Trace actual numbers into factor drawers

Assign each eligible number to its smallest divisor among 2, 3, 5, 7. Thus 30 belongs only to drawer 2; 45 belongs only to drawer 3; 35 belongs only to drawer 5; 49 belongs to drawer 7. These are real assignments, unlike the balanced bars, which illustrate just the counting bound.

Drawer 2: 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 100

Drawer 3: 3, 9, 15, 21, 27, 33, 39, 45, 51, 57, 63, 69, 75, 81, 87, 93, 99

Drawer 5: 5, 25, 35, 55, 65, 85, 95

Drawer 7: 7, 49, 77, 91

Checkpoint

Need a hint? Start here

Separate numbers with no divisor among 2,3,5,7.

Show the reasoning

The exceptions are 1 and the 21 primes above 7. At least 51−22=29 choices enter four factor drawers, using one assignment per number. Since 4×7=28, at least 8 share a divisor.

5

Build fixed-gap pairs and same-remainder drawers

Two reusable drawer designs for difference problems.
Not complete

Fixed gap in a doubled range

In 1,2,…,2d, pair i with i+d.

Range1–80
Pair drawers40
Selections to force a pair41

Difference divisible by a modulus

Put distinct integers into drawers by their remainder modulo m.

Remainder drawers7
Values that may avoid a match7
Values that force a match8

Checkpoint

Need a hint? Start here

Make the intended relationship automatic inside each drawer.

Show the reasoning

For gap 40 in 1–80, the 40 pairs {i,i+40} force a pair at 41 choices. For difference divisible by 7, there are seven remainders, so eight integers force a match.

6

Guided Practice 1 — build the largest set with no pair sum divisible by 7

Complementary remainder classes cannot both be used.
Not complete

Remainder counts in 1 through 50

Forbidden partners: 0+0, 1+6, 2+5, and 3+4 are divisible by 7.

Construct a safe set

At most one residue-0 value is safe.

Selected count23
Largest class used8
Pair-sum conflicts0

Checkpoint

What is the greatest possible size of a subset of 1,2,…,50 in which no two distinct selected numbers have a sum divisible by 7?

Need a hint? Start here

Pair remainder classes that add to 7.

Show the reasoning

Choose one class from each pair (1,6), (2,5), (3,4), taking the larger available class. Allow at most one remainder-0 value. The counts give 8+7+7+1=23, and this construction reaches the upper bound.

7

Use a general complementary-residue laboratory

Choose the larger class from each forbidden complementary pair.
Not complete

Maximum safe subset search

Maximum safe size16
Residue drawers9
Construction size16

Residue counts and chosen classes

Self-inverse classes: residue 0, and residue m/2 when m is even, contribute at most one selected number because two values in that same class would have a forbidden sum.

Checkpoint

Need a hint? Start here

Self-complementary remainders need special care.

Show the reasoning

For modulus m, pair r with m−r. Take the larger class, never both; a self-complementary class allows at most one value. This gives 23 for 1–50 modulo 7 and 16 for 1–30 modulo 9.

8

Force a same-remainder pair or a three-number sum

Two original exercises show how residue drawers create different relationships.
Not complete

Difference divisible by 7

Enter2–100distinct integers to explore. With at least eight, a match is guaranteed. Two must have the same remainder modulo 7.

Run the search.
Clarification: this activity asks for distinct values. The guarantee also holds when repetitions are allowed: equal entries have difference 0, divisible by 7. Eight entries still suffice; 1–7 show that seven need not.

Three numbers whose sum is divisible by 3

Enter exactly five integer entries; equal values in different positions are allowed. Choose three different entries, not necessarily three different values. Either one residue class contains three values, or all three residue classes occur.

Run the search.
3 in one residueorone each from 0,1,2sum divisible by 3

Checkpoint

Need a hint? Start here

For triples use the three remainder classes modulo 3.

Show the reasoning

Five integers either give three of one remainder, whose sum is divisible by 3, or all three remainders appear and you can select 0,1,2. For differences, eight integers force two of the same remainder modulo 7.

Try a fresh problem

What is the least number of integers that guarantees two have a difference divisible by 11?

This fresh problem has its own checkpoint. Your written explanation is saved for comparison and is not automatically graded.

Worked explanation for the fresh problem

There are eleven remainders modulo 11. Twelve integers force two of the same remainder. Eleven can fail: choose 0 through 10.

9

Relationship-drawer workshop

Correct all eight to complete the workshop.
Not complete
Not graded yet
Answer all eight, then grade your work.
Need a hint? Start here

Revisit the mission connected to each question.

Show the reasoning

Answers:50,50,22,8,23,16,8,5. In the factor question,8is the bound from rounding29÷4upward. For pair-sum avoidance, compare complementary remainder classes and permit only one from each self-complementary class.

10

Exit ticket and certificate

Correct all five answers and complete all ten missions to earn the certificate.
Not complete
Chapter 23 Achievement

Relationship Drawer Architect

This certificate recognizes

A determined learner

for grouping numbers into pairs, factor families, and residue classes to force precise mathematical relationships.

Lesson 23.2 completed

Need a hint? Start here

Solve each item without using the answer shown in an earlier example.

Show the reasoning

Answers:31,8,14,12,5. For1–36 modulo6, the two complementary pairs contribute6each, and residues0and3permit1each:14. Four entries1,1,2,2have no triple divisible by3, proving five are needed.

original and lesson scope

This lesson develops Chapter 23 Example 1 and Guided Practice 1 from this lesson, together with the chapter exercises about sums divisible by 3 and differences divisible by 7. The modulo-9 maximum-selection problem is transferred from Test 23. The interactive exhaustive searches and general laboratories are added learning supports.