Make learning comfortable
Introduction to Number Theory / LEVEL 3 · DIFFICULTY 3/5
Congruences
Solve problems using remainders.
Choose an island to read its lesson.
STAGE NT 3.1 · 8 PRACTICE PROBLEMS · 2 NEW-CONTEXT APPLICATIONS
Cycles of Units Digits
Useful preparation: Computing with Remainders
Goal: Understand and apply cycles of units digits.
Before you begin: Computing with Remainders
Understand the idea
Repeated powers often revisit the same remainder. For a fixed last digit, multiplying once more determines the next last digit, so a repeated state creates a cycle.
Choose and carry out a method
List successive powers modulo ten until the cycle closes. Reduce the exponent by the cycle length and match the correct position.
Check the reasoning
A remainder of zero refers to the last position of a cycle that begins at exponent one. Check a small exponent to avoid an index shift.
What is the units digit of ?
- Powers of 3 have units digits cycling through 3, 9, 7, 1.
- ; a zero remainder selects the fourth entry, otherwise use the remainder as the entry number.
- The units digit is 9; full groups of four powers repeat.
9
What is the units digit of ?
- Powers of 3 have units digits cycling through 3, 9, 7, 1.
- ; a zero remainder selects the fourth entry, otherwise use the remainder as the entry number.
- The units digit is 3; full groups of four powers repeat.
3
Common pitfalls
Possible mix-up: Exponent remainder zero means units digit zero.
It means use the last entry of the power cycle.
Possible mix-up: A correct numerical answer alone explains the method.
State the governing relationship and check the conditions described above.
Explain it to yourself
Why can a units-digit calculation ignore all higher decimal digits?
Preview the eight practice prompts
What is the units digit of ?
What is the units digit of ?
What is the units digit of ?
What is the units digit of ?
What is the units digit of ?
What is the units digit of ?
A branching design triples its count in each of 37 steps, starting with one piece. What is the units digit of the final count?
A branching design triples its count in each of 40 steps, starting with one piece. What is the units digit of the final count?
STAGE NT 3.2 · 8 PRACTICE PROBLEMS · 2 NEW-CONTEXT APPLICATIONS
Linear Congruences
Useful preparation: Cycles of Units Digits
Goal: Understand and apply linear congruences.
Before you begin: Cycles of Units Digits
Understand the idea
Solving modulo m asks which residue classes give the desired remainder. A unique class exists when a and m are coprime, because multiplication by a permutes all residues.
Choose and carry out a method
Find an inverse of a modulo m or test the finite residue list. Multiply the target by the inverse and reduce the result to 0 through .
Check the reasoning
Substitute into the original congruence. Ordinary fraction division cannot replace a modular inverse.
Find the least nonnegative integer x satisfying (mod 9).
- Solve the congruence using an inverse, or test numbers differing by the modulus.
- Since 9 is odd, 2 is invertible modulo 9. Here has remainder 6.
- The unique solution between 0 and 8 is 3.
3
Find the least nonnegative integer x satisfying (mod 11).
- Solve the congruence using an inverse, or test numbers differing by the modulus.
- Since 11 is odd, 2 is invertible modulo 11. Here has remainder 8.
- The unique solution between 0 and 10 is 4.
4
Common pitfalls
Possible mix-up: Divide both sides as ordinary fractions.
Use an integer inverse modulo m, when one exists.
Possible mix-up: A correct numerical answer alone explains the method.
State the governing relationship and check the conditions described above.
Explain it to yourself
What changes when the coefficient and modulus share a common factor?
Preview the eight practice prompts
Find the least nonnegative integer x satisfying (mod 15).
Find the least nonnegative integer x satisfying (mod 17).
Find the least nonnegative integer x satisfying (mod 19).
Find the least nonnegative integer x satisfying (mod 21).
Find the least nonnegative integer x satisfying (mod 23).
Find the least nonnegative integer x satisfying (mod 25).
A machine moves two positions per step on a 27-position dial. Starting at zero, how many steps first land it at position 24?
A machine moves two positions per step on a 29-position dial. Starting at zero, how many steps first land it at position 26?
STAGE NT 3.3 · 8 PRACTICE PROBLEMS · 2 NEW-CONTEXT APPLICATIONS
Combining Remainder Conditions
Useful preparation: Linear Congruences
Goal: Understand and apply combining remainder conditions.
Before you begin: Linear Congruences
Understand the idea
Two congruences describe overlapping arithmetic progressions. For coprime moduli, exactly one residue class modulo their product meets both conditions.
Choose and carry out a method
List numbers satisfying one condition, or write +km and use the other to determine k. Reduce to the least nonnegative solution.
Check the reasoning
Check both remainders. Adding the product of the moduli produces more solutions but not the least one.
Find the smallest nonnegative x with (mod 4) and (mod 5).
- Numbers satisfying the first condition form an arithmetic progression.
- Test 2, 6, 10, … in the second condition. The first match is 6.
- The moduli are consecutive and coprime, so the pattern repeats every 20 indices.
6
Find the smallest nonnegative x with (mod 5) and (mod 6).
- Numbers satisfying the first condition form an arithmetic progression.
- Test 2, 7, 12, … in the second condition. The first match is 7.
- The moduli are consecutive and coprime, so the pattern repeats every 30 indices.
7
Common pitfalls
Possible mix-up: Add the two remainders to obtain x.
Both conditions must hold simultaneously; addition alone does not enforce them.
Possible mix-up: A correct numerical answer alone explains the method.
State the governing relationship and check the conditions described above.
Explain it to yourself
Why does adding mn preserve both remainder conditions?
Preview the eight practice prompts
Find the smallest nonnegative x with (mod 7) and (mod 8).
Find the smallest nonnegative x with (mod 8) and (mod 9).
Find the smallest nonnegative x with (mod 9) and (mod 10).
Find the smallest nonnegative x with (mod 10) and (mod 11).
Find the smallest nonnegative x with (mod 11) and (mod 12).
Find the smallest nonnegative x with (mod 12) and (mod 13).
A repeating marker leaves remainder 2 when its index is divided by 13, and remainder 1 when divided by 14. What is the first nonnegative index satisfying both rules?
A repeating marker leaves remainder 2 when its index is divided by 14, and remainder 1 when divided by 15. What is the first nonnegative index satisfying both rules?

