Mathematical-Reasoning Β· Unit 27 Β· Video 5 Β· Interactive Practice

Congruence Modulo n Means Matching Remainders

IKey Formulas

ResultStatement
Division Algorithmfor x∈Zx \in \mathbb{Z}, n∈Nn \in \mathbb{N}: unique q,r∈Zq, r \in \mathbb{Z} with x=nq+rx = nq + r and 0≀r<n0 \le r \lt n
Congruent to the remainderif x=nq+rx = nq + r with 0≀r<n0 \le r \lt n, then x≑r(modn)x \equiv r \pmod{n}
Theoremx≑y(modn)β€…β€ŠβŸΊβ€…β€Šx \equiv y \pmod{n} \iff xx and yy have the same remainder on division by nn

Key Insight: Same remainder β‡’\Rightarrow congruent uses symmetry and transitivity (x≑rx \equiv r, r≑yr \equiv y). Congruent β‡’\Rightarrow same remainder uses transitivity and the uniqueness of rr in 0≀r<n0 \le r \lt n.

IIColumns of Equal Remainder

Both tests, n∣(xβˆ’y)n \mid (x - y) and equal remainders, always give the same verdict.

IIIWhy the Range Matters

Many pairs (q,r)(q, r) satisfy x=nq+rx = nq + r; only one has 0≀r<n0 \le r \lt n.

IVQuiz Questions

Problem 1 Β· Same Column as 17

Given: n=5n = 5. Which integer is congruent to 1717 modulo 55?

βœ… Correct! 17=5β‹…3+217 = 5 \cdot 3 + 2 and βˆ’8=5β‹…(βˆ’2)+2-8 = 5 \cdot (-2) + 2: both have remainder 22. Check: 17βˆ’(βˆ’8)=25=5β‹…517 - (-8) = 25 = 5 \cdot 5.
❌ Not quite. βˆ’2=5β‹…(βˆ’1)+3-2 = 5 \cdot (-1) + 3, so its remainder is 33, not 22; and 17βˆ’(βˆ’2)=1917 - (-2) = 19.
❌ Not quite. 8=5β‹…1+38 = 5 \cdot 1 + 3 has remainder 33; 17βˆ’8=917 - 8 = 9 is not a multiple of 55.
❌ Not quite. 13=5β‹…2+313 = 5 \cdot 2 + 3; 17βˆ’13=417 - 13 = 4.
❌ Not quite. Compare remainders on division by 55.
Show solution

17=5β‹…3+217 = 5 \cdot 3 + 2, so 1717 has remainder 22. The remainders of the options are:

  • βˆ’2=5β‹…(βˆ’1)+3-2 = 5 \cdot (-1) + 3: remainder 33.
  • 8=5β‹…1+38 = 5 \cdot 1 + 3: remainder 33.
  • βˆ’8=5β‹…(βˆ’2)+2-8 = 5 \cdot (-2) + 2: remainder 22.
  • 13=5β‹…2+313 = 5 \cdot 2 + 3: remainder 33.

Only βˆ’8-8 matches, and indeed 17βˆ’(βˆ’8)=25=5β‹…517 - (-8) = 25 = 5 \cdot 5.

Problem 2 Β· Remainder of a Negative Integer

Given: x=βˆ’13x = -13 and n=5n = 5. What is the remainder rr from the Division Algorithm?

βœ… Correct! βˆ’13=5β‹…(βˆ’3)+2-13 = 5 \cdot (-3) + 2 with 0≀2<50 \le 2 \lt 5.
❌ Not quite. βˆ’13=5β‹…(βˆ’2)+(βˆ’3)-13 = 5 \cdot (-2) + (-3) is a true equation, but the remainder must satisfy 0≀r<50 \le r \lt 5.
❌ Not quite. 33 is the remainder of 1313. For βˆ’13-13: 5β‹…(βˆ’3)+3=βˆ’125 \cdot (-3) + 3 = -12.
❌ Not quite. βˆ’13=5β‹…(βˆ’4)+7-13 = 5 \cdot (-4) + 7 is true, but 7β‰₯57 \ge 5 is outside the range.
❌ Not quite. Find qq so that βˆ’13βˆ’5q-13 - 5q lands in 0≀r<50 \le r \lt 5.
Show solution

We need βˆ’13=5q+r-13 = 5q + r with 0≀r<50 \le r \lt 5. Try values of qq:

  • q=βˆ’2q = -2: r=βˆ’13+10=βˆ’3r = -13 + 10 = -3 (too small).
  • q=βˆ’3q = -3: r=βˆ’13+15=2r = -13 + 15 = 2 (in range).
  • q=βˆ’4q = -4: r=βˆ’13+20=7r = -13 + 20 = 7 (too big).

So r=2r = 2. Consequently βˆ’13≑2(mod5)-13 \equiv 2 \pmod{5}, and βˆ’13-13 is congruent to 1717 modulo 55, which also has remainder 22.

Problem 3 Β· The Step That Needs Uniqueness

Given: in proving "if x≑y(modn)x \equiv y \pmod{n}, then xx and yy have the same remainder", we reach x=nq+rx = nq + r, where rr is the remainder of yy. Why does this equation alone not finish the proof?

βœ… Correct! For example 17=5β‹…2+717 = 5 \cdot 2 + 7, yet 77 is not the remainder of 1717. The range and the uniqueness in the Division Algorithm pin rr down.
❌ Not quite. qq comes from n∣(xβˆ’r)n \mid (x - r), so it is an integer by the definition of divides.
❌ Not quite. Congruence modulo nn is symmetric; that was proved earlier in the unit.
❌ Not quite. A remainder can be 00; the condition is 0≀r<n0 \le r \lt n.
❌ Not quite. Think of 17=5β‹…2+717 = 5 \cdot 2 + 7.
Show solution

From x≑r(modn)x \equiv r \pmod{n} we get xβˆ’r=nqx - r = nq for an integer qq, so x=nq+rx = nq + r. But an equation x=nqβ€²+rβ€²x = nq' + r' holds for infinitely many integer pairs, for example 17=5β‹…2+7=5β‹…3+2=5β‹…4+(βˆ’3)17 = 5 \cdot 2 + 7 = 5 \cdot 3 + 2 = 5 \cdot 4 + (-3).

What makes rr the remainder of xx is that it also satisfies 0≀r<n0 \le r \lt n (it is the remainder of yy), and the Division Algorithm says only one pair (q,r)(q, r) satisfies both the equation and the range. So xx and yy have the same remainder rr.

Problem 4 Β· Remainders 4 and 1 Modulo 6

Given: integers aa and bb have remainders 44 and 11 on division by 66. Which statement must be true?

βœ… Correct! aβˆ’b=6(q1βˆ’q2)+3=3(2q1βˆ’2q2+1)a - b = 6(q_1 - q_2) + 3 = 3(2q_1 - 2q_2 + 1), a multiple of 33.
❌ Not quite. The remainders on division by 66 differ, so by the theorem a≑̸b(mod6)a \not\equiv b \pmod{6}.
❌ Not quite. aβˆ’b=6k+3a - b = 6k + 3 is odd, so 4∀(aβˆ’b)4 \nmid (a - b).
❌ Not quite. aβˆ’b=6k+3a - b = 6k + 3 is odd: a=4a = 4, b=1b = 1 give aβˆ’b=3a - b = 3.
❌ Not quite. Write a=6q1+4a = 6q_1 + 4 and b=6q2+1b = 6q_2 + 1 and subtract.
Show solution

Write a=6q1+4a = 6q_1 + 4 and b=6q2+1b = 6q_2 + 1 with q1,q2∈Zq_1, q_2 \in \mathbb{Z}. Then

aβˆ’b=6(q1βˆ’q2)+3=3 (2q1βˆ’2q2+1),a - b = 6(q_1 - q_2) + 3 = 3\,(2q_1 - 2q_2 + 1),

so 3∣(aβˆ’b)3 \mid (a - b) and a≑b(mod3)a \equiv b \pmod{3}. Since aβˆ’ba - b is odd, it is not a multiple of 22, 44 or 66; and different remainders on division by 66 already rule out modulus 66 by the theorem.

Solved: 0 / 4