Mathematical-Reasoning · Unit 29 · Video 2 · Interactive Practice

Adding Classes in ℤₙ: Why ⊕ and ⊙ Are Well Defined

IKey Formulas

FormulaMeaning
Zn={[0],[1],…,[n−1]}\mathbb{Z}_n = \{[0], [1], \ldots, [n-1]\}the integers modulo nn: exactly nn congruence classes, each an infinite set
[a]=[b]  ⟺  a≡b(modn)[a] = [b] \iff a \equiv b \pmod ntwo integers name the same class exactly when they are congruent
[x]⊕[z]=[x+z][x] \oplus [z] = [x + z]class addition, defined through integer addition
[x]⊙[z]=[xz][x] \odot [z] = [x z]class multiplication, defined through integer multiplication

Key Insight: If [x]=[y][x] = [y] and [z]=[w][z] = [w], then [x+z]=[y+w][x + z] = [y + w] and [xz]=[yw][xz] = [yw] — the corollary on congruence that makes ⊕\oplus and ⊙\odot well defined.

IIEvery Choice of Representatives

Whichever representatives of [a][a] and [c][c] we compute with, the sum and the product land in one class.

IIIA Rule That Is Not Well Defined

The rule [x][z]=[xz][x]^{[z]} = [x^z] on Z5\mathbb{Z}_5 gives one pair of classes several different answers.

💡 Part three of the corollary is a different statement: a class raised to a fixed natural number mm, as in [2]2=[7]2=[4][2]^2 = [7]^2 = [4] in Z5\mathbb{Z}_5, is well defined.

IVQuiz Questions

Problem 1 · Computing in ℤ₇

In Z7\mathbb{Z}_7, write each result as [r][r] with 0≤r≤60 \le r \le 6.

[4]⊕[5]= ?[4] \oplus [5] = \ ?

[4]⊙[5]= ?[4] \odot [5] = \ ?

✅ Correct! [4+5]=[9]=[2][4 + 5] = [9] = [2] and [4⋅5]=[20]=[6][4 \cdot 5] = [20] = [6], since 9=7+29 = 7 + 2 and 20=7⋅2+620 = 7 \cdot 2 + 6.
❌ Not quite. That is the result of the other operation: ⊕\oplus adds the representatives, ⊙\odot multiplies them.
❌ Not quite. 9=6+39 = 6 + 3 reduces modulo 66; here the modulus is 77.
❌ Check the sum. [4]⊕[5]=[9][4] \oplus [5] = [9]; reduce 99 modulo 77.
❌ Check the product. [4]⊙[5]=[20][4] \odot [5] = [20]; reduce 2020 modulo 77.
Show solution

By the definitions, [4]⊕[5]=[4+5]=[9][4] \oplus [5] = [4 + 5] = [9] and [4]⊙[5]=[4⋅5]=[20][4] \odot [5] = [4 \cdot 5] = [20]. Reduce modulo 77:

9=7⋅1+2⇒[9]=[2],20=7⋅2+6⇒[20]=[6].9 = 7 \cdot 1 + 2 \Rightarrow [9] = [2], \qquad 20 = 7 \cdot 2 + 6 \Rightarrow [20] = [6].

Problem 2 · Names of One Class

In Z5\mathbb{Z}_5, which of these is not equal to [13][13]?

✅ Correct! 13−(−3)=1613 - (-3) = 16 is not a multiple of 55; in fact −3≡2(mod5)-3 \equiv 2 \pmod 5, so [−3]=[2][-3] = [2].
❌ Not quite. 13−3=10=5⋅213 - 3 = 10 = 5 \cdot 2, so [13]=[3][13] = [3].
❌ Not quite. 13−8=513 - 8 = 5, so [13]=[8][13] = [8].
❌ Not quite. 13−(−2)=15=5⋅313 - (-2) = 15 = 5 \cdot 3, so [13]=[−2][13] = [-2]: negative integers belong to the classes too.
Show solution

[13]=[b][13] = [b] exactly when 5∣(13−b)5 \mid (13 - b). The differences are

13−3=10,13−8=5,13−(−3)=16,13−(−2)=15.13 - 3 = 10, \quad 13 - 8 = 5, \quad 13 - (-3) = 16, \quad 13 - (-2) = 15.

Only 1616 is not a multiple of 55, so [−3]≠[13][-3] \ne [13]. Since −3=5⋅(−1)+2-3 = 5 \cdot (-1) + 2, the class [−3][-3] is [2][2].

Problem 3 · Other Representatives in ℤ₆

In Z6\mathbb{Z}_6, [8]=[2][8] = [2] and [−5]=[1][-5] = [1]. Compute [8]⊙[−5][8] \odot [-5] and write it as [r][r] with 0≤r≤50 \le r \le 5.

✅ Correct! [−40]=[2][-40] = [2], the same as [2]⊙[1]=[2][2] \odot [1] = [2] — exactly what well-definedness promises.
❌ Close, but check the sign. −40=6⋅(−6)−4-40 = 6 \cdot (-6) - 4 has −4-4, not a remainder; −40=6⋅(−7)+2-40 = 6 \cdot (-7) + 2.
❌ Not quite. 8+(−5)=38 + (-5) = 3 is the sum; ⊙\odot multiplies the representatives.
❌ Not quite. Compute 8⋅(−5)8 \cdot (-5), then find its remainder on division by 66.
Show solution

By the definition, [8]⊙[−5]=[8⋅(−5)]=[−40][8] \odot [-5] = [8 \cdot (-5)] = [-40]. Since −40=6⋅(−7)+2-40 = 6 \cdot (-7) + 2,

[8]⊙[−5]=[−40]=[2].[8] \odot [-5] = [-40] = [2].

With the representatives 22 and 11 instead: [2]⊙[1]=[2][2] \odot [1] = [2]. The answers agree, as part two of the corollary guarantees.

Problem 4 · Is the Rule an Operation?

On Z5\mathbb{Z}_5, try to define [x][z]=[xz][x]^{[z]} = [x^z], using natural numbers as representatives in the exponent. Is this a well-defined operation?

✅ Correct! One pair of classes, ([2],[1])([2], [1]), gets two different answers, so the rule defines no operation.
❌ Not quite. The power property fixes the exponent mm and changes only the base; here the exponent's representative changes.
❌ Not quite. Changing the base is harmless; the trouble is changing the exponent from 11 to 66.
❌ Not quite. ⊕\oplus is well defined on every Zn\mathbb{Z}_n; the failure lies in this exponent rule itself.
Show solution

Since 6≡1(mod5)6 \equiv 1 \pmod 5, the classes [1][1] and [6][6] are equal. Using the representatives 22 and 11, the rule gives [21]=[2][2^1] = [2]. Using 22 and 66, it gives [26]=[64][2^6] = [64], and 64=5⋅12+464 = 5 \cdot 12 + 4, so [64]=[4][64] = [4].

[2][1]=[2]but[2][6]=[4],[1]=[6].[2]^{[1]} = [2] \quad\text{but}\quad [2]^{[6]} = [4], \qquad [1] = [6].

The same input has two outputs, so the rule is not well defined.

Solved: 0 / 4