Residue Classes |
Let \(m\) be a positive integer. For an integer \(a\), the residue class (or, congruence class) of \(a\) modulo \(m\) is the set \[\overline{a}:=\{x\in \mathbb Z\;|\;x\equiv a \:\left(\mathrm{mod}\: m\right) \}.\]
Example.
For \(m=3\), \(\overline{0}=3\mathbb Z\), \(\overline{1}=\{1,1\pm 3, 1\pm 6, 1\pm 9,\ldots \}\),
\(\overline{2}=\{2,2\pm 3, 2\pm 6, 2\pm 9,\ldots \}\).
It easy to check for any two integers \(a\) and \(b\) that \(\overline{a}=\overline{b}\) if and only if \(a\equiv b\:\left(\mathrm{mod}\: m \right)\).
Also either \(\overline{a}=\overline{b}\) or \(\overline{a}\cap \overline{b}=\varnothing\). Since the congruence is an
equivalence relation (why?), it partitions \(\mathbb Z\) into residue classes.
Proposition. For any positive integer \(m\), \(\mathbb Z\) is partitioned into \(m\) residue classes modulo \(m\), viz., \(\overline{0},\overline{1},\cdots,\overline{m-1}\).
A complete set of residues modulo \(m\) is a set of integers \(\{a_1,a_2,\ldots,a_m\}\) such that each \(a_i\) belongs to exactly one of the residue classes \(\overline{0},\overline{1},\ldots,\overline{m-1}\). We write \(\mathbb Z_m:=\{\overline{0},\overline{1},\ldots,\overline{m-1}\}\).
Example. For \(m=3\), \(\{0,1,2\}\), \(\{-1,0,1\}\), \(\{-6,7,11\}\), and \(\{n,n+1,n+2\}\) for any integer \(n\) are complete sets of residues modulo \(3\). So \(\mathbb Z_3=\{\overline{0},\overline{1},\overline{2}\}\).
We define addition and multiplication on residue classes as follows: \[\overline{a}+\overline{b}=\overline{a+b},\; \overline{a}\overline{b}=\overline{ab}\]
Example. Modulo \(5\), \(\overline{2}+\overline{3}=\overline{2+3}=\overline{0}\) and \(\overline{2}\;\overline{3}=\overline{2\cdot 3}=\overline{1}\).
A residue class \(\overline{a}\) modulo \(m\) is relatively prime to \(m\) if \(\gcd(a,m)=1\). There are exactly \(\phi(m)\) integers among \(0,1,\ldots,m-1\) that are relatively prime to \(m\) forming a reduced set of residues modulo \(m\) . So there are \(\phi(m)\) residue classes modulo \(m\) relatively prime to \(m\).
Definition. The set of residue classes relatively prime to \(m\) under multiplication modulo \(m\) forms an abelian (commutative) group called the multiplicative group modulo \(m\) denoted by \(\mathbb Z_m^*\) (or, \(\mathbb Z_m^{\times}\), \(U_m\) ). It is also called the unit group of \(\mathbb Z_m\) as it consists of invertible elements (or units) of \(\mathbb Z_m\).
Example. \(|\mathbb Z_8^*|=\phi(8)=4\). Since \(1,3,5,7\) are relatively prime to \(8\) (i.e., \(\{1,3,5,7\}\) is a reduced set of residue s modulo \(8\) ), \(\mathbb Z_8^*=\{\overline{1},\overline{3},\overline{5},\overline{7}\}\). Note that \(\overline{3}\;\overline{3}=\overline{3\cdot 3}=\overline{1}\). So \((\overline{3})^{-1}=\overline{3}\), inverse of itself.
Lemma. Let \(p\) be a prime. If \((\overline{a})^{-1}=\overline{a}\) for some \(\overline{a}\in \mathbb Z_p^*\), then \(\overline{a}=\overline{1}\) or \(\overline{p-1}\).
Using the above lemma we prove the following famous result.
Theorem.(Wilson's Theorem, 1770)
For a prime \(p\), \((p-1)!\equiv -1\:\left(\mathrm{mod}\: p \right)\).
Example. \(10!+1\) is divisible by \(11\). Use \(p=11\) in Wilson's Theorem.
Theorem.(Converse of Wilson's Theorem) If \((n-1)!\equiv -1\:\left(\mathrm{mod}\: n \right)\) for a positive integer \(n>1\), then \(n\) is prime.
Last edited