Section 4.4 Equivalence classes
ΒΆLet's make the previous discussion a bit more rigorous by formally breaking up Z into disjoint subsets; by Proposition 4.3.2 we can pick any element of a subset for computations.Definition 4.4.1.
Assume throughout that we have fixed a modulus n.
We call any number congruent to a a residue of a.
We call the collection of all residues of a the equivalence class of a.
-
We denote this class by the notation
[a]={all numbers congruent to a modulo n}(Sometimes this is notated [a]n, but the modulus is nearly always evident from the context.)
Example 4.4.2.
For instance, the equivalence class we began with in Section 4.1 is of numbers congruent to 1 modulo 6, which is the set
perhaps better written as
Fact 4.4.3.
Any set (not just Z) that has an equivalence relation on it can be broken up into disjoint subsets called equivalence classes. It can be useful to consider these classes as elements of a set of all such classes. Such a set of subsets is called a partition.
Proof.
We consider this to be background; see any intro-to-proof text.
Example 4.4.4.
To compute 2β 2β 2β 2 modulo 3, we can note that 2β‘β1 and write
which is that 16β‘1 (mod 3).
Example 4.4.5.
Here is something which is not a legal manipulation.
Even though 1000000000β‘1 modulo 3, clearly the end result is wrong, because 21β’1 (mod 3), which we have now seen twice.
In general, we have only seen reduction modulo n in the base of a power; nothing is said about the exponent! (Later, in Section 4.2, we'll see how to do reduction in the exponent under controlled circumstances β with a different modulus.)
Definition 4.4.6.
We call a set of integers with precisely one for each equivalence class a complete residue system or complete set of residues for a given modulus.
Usually, we just use the βnormalβ remainders; this is called the set of least nonnegative residues.
Sometimes we use the set of least absolute residues, the collection of representatives of each class which are closest to zero.
Example 4.4.7.
For n=6, the set of least nonnegative residues is {0,1,2,3,4,5}, representing the set of equivalence classes {[0],[1],[2],[3],[4],[5]}. They are easy to think of and understand.
In the same case the least absolute residues are {β2,β1,0,1,2,3}, standing in respectively for {[4],[5],[0],[1],[2],[3]}. We used these residues (for n=3) in Example 4.4.4.