Lesson progress0 / 10 missions
Chapter 24 · Classification

Classify by Remainders and Construct Every Case

Replace large numbers with small remainder labels, make one case for every possible remainder, and turn each case into an explicit construction. You will audit stamp purchases, subset sums, package sizes, adjacent sums, and parity pairs.

Remainder wheelsComplete residue casesSubset sumsConstructive proofs
Saved only in this browser.
Remainder-class toolkit

Use small labels instead of large numbers

When a positive integer N is divided by m, it belongs to exactly one of the complete cases:

N=mq+r,   0≤r<m

For sums, replace each number by its remainder:

(a+b) mod m = ((a mod m)+(b mod m)) mod m
Construction rule: a proof is complete only after every possible remainder case has a valid construction.
1
Foundation

Build a complete remainder wheel

Not complete

Translate the symbols

“43 mod 5 = 3” means 43 leaves remainder 3 when divided by 5: 43 = 5 × 8 + 3. “a ≡ b (mod 5)” means a and b have the same remainder. Only 0, 1, 2, 3, 4 are possible remainders, so these classes cover every integer exactly once.

Remainder explorer

43
mod 5
= 3

Division statement

43=5×8+3
Every integer has exactly one remainder from 0 through m−1. These cases are complete and cannot overlap.

Add remainders

2+4≡1 (mod 5)

Same-remainder consequence

If two numbers leave the same remainder upon division by m, their difference is divisible by m.

a≡b (mod m) ⇒ m∣(a−b)
Checkpoint
Need a hint?

The possible remainders modulo m are 0 through m−1, never m.

2
Worked example 3

Classify stamp purchases by the final digit

Not complete

Package counts are whole numbers, including zero. A purchase using only one size is allowed. For each count of the larger package, subtract its contribution and test whether the remainder is a nonnegative multiple of the smaller size.

Forty-three students carry all the different whole-jiao amounts from 8 through 50. Each spends everything on 3-jiao and 5-jiao stamps while buying as many 5-jiao stamps as possible.

Inspect one student

13-jiao stamps
85-jiao stamps
3remainder mod 5
3units digit

Why the pattern repeats every 5 jiao

If x is the number of 3-jiao stamps, then:

3x≡N (mod 5)

So the amount’s remainder modulo 5 determines the least number of 3-jiao stamps compatible with maximizing the 5-jiao stamps.

Final digitsRemainder mod 53-jiao stamps per studentStudentsContribution
43students
9students need no 3-jiao stamp
5remainder cases
843-jiao stamps total
8×2+8×4+9×1+9×3=84
Checkpoint
Need a hint?

Fix the larger package count; the remaining amount must be a nonnegative multiple of the smaller size.

3
Added laboratory

Maximize one item across an entire amount range

Not complete
43representable amounts
0impossible amounts
84smaller items total
199preferred items total

Amount ledger

AmountRemainderSmaller itemsPreferred itemsCheck

Classification summary

Challenge checkpoint — amounts 12 through 40, item sizes 4 and 7
Need a hint?

Try each remainder class, then use a repeatable construction to cover all larger values in that class.

4
Guided Practice 2

Replace each chosen number by its remainder

Not complete

From 1995, 2000, 2001, 2003, 2007, choose a nonempty subset whose sum leaves remainder 7 upon division by 9. Each value is used at most once, and order does not matter.

Build one subset

0chosen
0sum
0remainder mod 9
Noqualifies

Remainder replacement

1995,2000,2001,2003,2007
≡ 6,2,3,5,0 (mod 9)

Only the small remainder labels matter when checking the final remainder.

The number 2007 has remainder 0. Adding it never changes a subset’s remainder, so qualifying subsets may occur in matching pairs: without 2007 and with 2007.

Worked subset list (available in review after an attempt)

31nonempty subsets checked
4valid subsets
2smallest valid size
9modulus
Checkpoint
Need a hint?

Add the remainders of the selected cards, then take the remainder again.

5
General subset laboratory and Test 24 transfer

Count subsets by residue pattern

Not complete
84subsets checked
30valid subsets
3largest residue class
9available values

Residue classes

Valid subsets

Test 24 structure: for digits 1 through 9, the three residue classes modulo 3 each contain three values. Valid triples are either all from one class or one from each class.
3 same-class triples + 3×3×3 mixed triples = 3+27=30
Test 24 checkpoint
Need a hint?

Group by remainder before counting subsets. A subset has one exact selection, even if several selections have the same sum.

6
Worked example 6

Construct every total from its remainder case

Not complete
A shop has unlimited 3-kg and 5-kg packages. Prove that every natural number N≥8 kilograms can be purchased without opening a package.

Case 0: use only 3-kg packages

N=3q

Construct a selected total

14=3×3+5×1

Remainder 0

Use only 3-kg packages.

N=3q

Remainder 1

Use two 5-kg packages, then fill the rest with 3-kg packages.

N=10+3q

Remainder 2

Use one 5-kg package, then fill the rest with 3-kg packages.

N=5+3q
The three cases 0,1,2 cover every integer. Their first valid totals at or above 8 are 9, 10, and 8, so every N≥8 is constructed.
Checkpoint
Need a hint?

Find the first reachable amount in each remainder class. Adding a whole package preserves reachability.

7
Added construction laboratory

Find the first point after which every total is possible

Not complete
1GCD
7largest impossible
8all totals possible from here
3consecutive base totals

Representability map

Selected total

Challenge checkpoint — package sizes 4 and 7
Need a hint?

Find four consecutive reachable totals for sizes 4 and 7. Adding another 4-kg package then reaches every later total.

8
Exercises 5 and 9

Use prefix remainders and parity classes

Not complete

Count unordered pairs in plain language

C(41,2), also written “41 choose 2,” counts pairs of different items. There are 41 choices for the first and 40 for the second. Each pair is listed in two orders, so divide 41 × 40 by 2. In the parity problem, count odd–odd and even–even pairs separately, then add.

Card redistribution: use a total that stays fixed

Three cards have positive whole-number values at most 10. Each round, three people each receive one card. After the same number of rounds their totals are 13, 15, and 23. Find the card values and number of rounds.

Hint: add everyone's totals

Every round uses all three cards. Add the three final totals, then consider which whole-number round counts could divide that total. Test the bounds on card values.

Build and check the cases

Write the cards as a ≤ b ≤ c ≤ 10. List a from 1 to 5; for each a, list b from a to floor((17−a)/2), keeping c=17−a−b ≤ 10. Test three-card sums for each person's total. Only 3, 5, 9 works.

RoundPerson APerson BPerson C
1395
2539
3539
Total131523

Each row uses each card once, so the construction really is possible.

Adjacent sums divisible by 11

Sequence:

1, 4, 8, 10, 16, 19, 21, 25, 30, 43

A prefix sum adds terms from the start: P₀=0, P₁=1, P₂=1+4, and so on. A nonempty consecutive group from term i+1 through term j sums to Pⱼ−Pᵢ. It is divisible by 11 exactly when those two prefix sums have the same remainder modulo 11.

7valid groups
11prefix sums
3repeated remainder classes
11modulus

Unordered pairs of distinct numbers from 19 through 99 (endpoints included) with an even sum

An even sum uses two numbers of the same parity:

Odd values
41

19, 21, …, 99

Even values
40

20, 22, …, 98

C(41,2)+C(40,2)=820+780=1600
41odds
40evens
1600even-sum pairs
81values
Checkpoint
Need a hint?

An even sum comes from two odd numbers or two even numbers. Divide ordered pair counts by two.

9
Independent practice

Remainder-class workshop

Not complete

Correct all eight questions to complete the workshop.

1. How many remainder classes are there modulo 7?

2. One student has each whole-jiao amount from 8 through 50. Each spends it all on 3- and 5-jiao stamps, maximizing the 5-jiao stamps. How many 3-jiao stamps do they buy altogether?

3. At 47 jiao, how many 3-jiao stamps are needed when 5-jiao stamps are maximized?

4. How many nonempty subsets of {1995,2000,2001,2003,2007} have sum with remainder 7 modulo 9?

5. Three-element subsets of {1,…,9} whose sum is divisible by 3? Use each digit at most once; order does not matter.

6. Least total T such that every whole-number total ≥ T can be made with 4-kg and 7-kg packages?

7. In the sequence 1,4,8,10,16,19,21,25,30,43, how many nonempty consecutive groups have sum divisible by 11?

8. How many unordered pairs of distinct integers from 19 through 99 inclusive have an even sum?

Need a hint?

Answers: 7; 84; 4; 4; 30; 18; 7; 1600. For 47 jiao use four 3-jiao stamps and seven 5-jiao stamps. Package totals 18–21 are all possible. For pairs, add 41×40÷2 and 40×39÷2.

10
Objective assessment

Exit ticket and certificate

Not complete

Earn 5 out of 5. The certificate also requires Missions 1–9 to be complete.

1. Remainder of 68 divided by 9?

2. For 33 jiao, how many 3-jiao stamps are used when 5-jiao stamps are maximized?

3. Choose three different digits from 1–9, ignoring order, with sum divisible by 3: how many choices?

4. Least total from which every 3-kg and 5-kg package amount is possible?

5. From 1 through 20, how many unordered pairs of distinct numbers have an even sum?

Need a hint?

Answers: 5; 1; 30; 8; 90. Use 68=9×7+5 and 33=3+6×5. Triples: 3 same-class plus 27 mixed-class choices. Package totals 8,9,10 begin the three remainder classes. For 1–20, ten odds and ten evens give 2×(10×9÷2)=90 unordered pairs.

Chapter 24 · Classification

Remainder Classification & Construction Architect

This certifies that the learner can build complete remainder cases, count residue patterns, and construct a valid result in every case.

Lesson 24.3