Skip to main content
STREAK 0dLV 1 0 XP
Institute site
AMC 10AMC 12

Congruences, Cycles, and Remainders

40 minutes of active learning · Difficulty 4/10 · Lesson

A remainder is a compact description of an integer. Instead of computing a huge number, keep track of how it behaves when divided by a carefully chosen modulus.

What you will learn

  • Calculate congruences
  • Reduce powers
  • Eliminate impossible cases

Keep paper and a pencil nearby. Try each problem before opening a hint, and mark sections reviewed as you work through them.

Congruence preserves the relevant difference

Two integers are congruent modulo mm when their difference is divisible by the positive integer mm. They therefore have the same remainder upon division by mm. Replacing a number by a congruent smaller number preserves the remainder of any sum, difference, or product. This is why you can reduce intermediate calculations without waiting until the end.

For a final remainder, use the representative from zero through m−1m-1. Negative representatives are often useful during calculation, but the answer should obey the question's convention. For example, a residue described as one less than a multiple of mm has ordinary remainder m−1m-1, not a negative remainder.

Powers can repeat in a short cycle

Begin a power problem by computing a few successive residues. If the same residue returns and multiplication by the base repeats the same process, the sequence cycles. Reduce the exponent by the cycle length, taking care with an exponent that is a multiple of that length. It corresponds to the last position in the cycle when you listed powers starting at one.

Division is more delicate than addition or multiplication. You may cancel a factor modulo mm when that factor is relatively prime to mm. Otherwise cancellation can lose information. To solve a small congruence, testing the residue classes or finding a multiplicative inverse is safer than dividing as though the congruence were an ordinary equation.

Combine remainders with a structured search

A condition such as remainder two modulo five describes the integers 5k+25k+2. Substitute this form into a second remainder condition to narrow the possible values of kk. This replaces a search through all integers with a search through one residue class. If the moduli share factors, the two conditions may be incompatible.

Square residues are especially effective for ruling out integer solutions. List the possible residues of an input, square them, and observe which output residues never occur. A contradiction modulo a small number proves impossibility for all integers at once; it is much stronger than checking a few ordinary values and seeing no solution.

See the reasoning unfold

Pause after each step and predict what comes next.

Worked example 1

Find a last digit

Find the remainder of 71037^{103} when divided by 10.

  1. The powers of 7 have last digits 7,9,3,17,9,3,1, repeating every four powers.

1 of 3 steps revealed

Worked example 2

Solve a small congruence

Find the least positive xx satisfying 5x≡3(mod7)5x\equiv3\pmod7.

  1. The inverse of 5 modulo 7 is 3 because 5⋅3≡15\cdot3\equiv1.

1 of 3 steps revealed

Worked example 3

Two conditions on one integer

Find the least positive integer with remainder 1 modulo 4 and remainder 3 modulo 6.

  1. Integers satisfying the first condition begin 1,5,9,13,…1,5,9,13,\ldots.

1 of 3 steps revealed

Common mistakes to catch

  • Dividing a congruence by a factor that is not invertible.
  • Using the wrong entry when an exponent is a multiple of a cycle length.
  • Reporting a negative representative as an ordinary nonnegative remainder.

Try with support

Guided practice

Choose a strategy, take a first step, and use the hints when you need direction.

Guided problem 1

Difficulty 4/10

Find the remainder of 17⋅23+1917\cdot23+19 upon division by 5.

For example: 12, 0.75, or 3/4.

Guided problem 2

Difficulty 4/10

Find the remainder of 320263^{2026} upon division by 8.

For example: 12, 0.75, or 3/4.

Put it into practice

Independent practice

Work on your own first. If you reveal a solution, work through it and mark it reviewed.

Independent problem 1

Difficulty 5/10

How many different remainders can the square of an integer have upon division by 4?

For example: 12, 0.75, or 3/4.

Independent problem 2

Difficulty 5/10

Find the remainder of 1+2+⋯+1001+2+\cdots+100 upon division by 7.

For example: 12, 0.75, or 3/4.

Independent problem 3

Difficulty 5/10

Find the least positive integer nn with n≡2(mod5)n\equiv2\pmod5 and n≡1(mod3)n\equiv1\pmod3.

For example: 12, 0.75, or 3/4.

Independent problem 4

Difficulty 5/10

Find the least positive integer nn for which 2n≡1(mod7)2^n\equiv1\pmod7.

For example: 12, 0.75, or 3/4.

Bring it together

  • Reduce sums and products at each step.
  • Power cycles require an observed and justified repeating rule.
  • Combine residue classes to narrow an integer search.

Finish with understanding.

Review each section and example, then solve each problem or work through its solution.

  • 0 / 6 sections reviewed
  • 0 / 3 worked examples explored
  • 0 / 6 problems solved or reviewed

Loading your saved progress…

Your answers, revealed steps, and lesson progress are saved in this browser.