Eight hours after 7 o’clock, a clock reads 3 o’clock. Clock arithmetic adds hours and forgets multiples of . Forgetting multiples of any positive integer in the same way gives two new families of groups.
Congruence
Two facts from earlier courses are used throughout. An equivalence relation on a set cuts it into disjoint equivalence classes, and two elements lie in the same class exactly when they are related. Division with remainder writes each integer as with , for exactly one pair of integers and ; here is the remainder of on division by .
Let be a positive integer. Integers and are congruent modulo , written , if divides . The residue class of modulo is the set of integers congruent to :
Both numbers leave the remainder on division by .
Negative numbers have residue classes too: on a clock with seven hours, is .
, and does not divide
leaves the remainder on division by , and leaves .
1
Which set is the residue class modulo ?
-
The number .
A residue class is a set of integers: all those congruent to , of which is only one.
-
.
Those are the multiples of . The class holds the integers whose difference from is a multiple of .
-
.
Right: the integers , each differing from by a multiple of .
-
.
That set holds one integer from each class modulo , so it meets five different classes; is one of them.
Congruence modulo is an equivalence relation. It is reflexive, since divides ; symmetric, since gives ; and transitive, since and give . The residue classes are its equivalence classes, so they cut into disjoint pieces, and exactly when .
There are exactly residue classes, . Every class is one of these: dividing by gives with , so and . And no two of them are equal: if , then , so does not divide and . So is the class of the remainder of , and two integers are congruent modulo exactly when they leave the same remainder.
When the modulus is not clear from the context, the class is written .
Adding and multiplying classes
On a clock, : the class of plus the class of should be the class of , which is . The natural rule adds or multiplies classes through representatives: and . But a class has many representatives. Modulo , and , so the same rule also gives . For the rule to make sense, every choice of representatives must give the same class.
It does. Suppose and , so that and for some integers and . Then
so and . Changing the representatives changes the sum and the product by a multiple of , which does not change their classes. A rule on classes that gives the same class for every choice of representatives is called well defined. Checking it is the first step whenever classes are combined through representatives.
Let be a positive integer. The integers mod , written , are the residue classes modulo , with the addition and multiplication
is arithmetic in which counts as , as on a clock. It calculates with remainders alone: in , the last digit of a product comes from the last digits of its factors.
The point on the clock is the class , with at the top and the classes counting clockwise. Each arrow is one more addition, or multiplication, by the same class.
Adding in
Each arrow adds , turning the hand five notches. From the hand passes and lands on : . After twelve steps the hand is back at , having visited every class.
Adding in
Adding comes back to after three steps: , and . So adding undoes adding .
Multiplying by in
Each arrow multiplies by : , then , , and . The products visit every class except before coming back to .
Undoing multiplication in
A chord joins and , because : multiplying by undoes multiplying by . The ringed classes and undo themselves, as . The hollow classes, such as and , have no partner: multiplying by them cannot be undone.
1
In , which of these classes equals ?
-
Right: , a multiple of .
-
is a multiple of , but classes compare differences with : is not a multiple of . In fact .
-
is not a multiple of ; , the class that undoes under addition.
-
is not a multiple of . Different classes among are never equal.
2
Try to define powers on by , for representatives . What goes wrong?
-
Nothing: changing by a multiple of changes by a multiple of .
That is true for the base, but the exponent is a class too, and changing its representative changes the answer.
-
The answer depends on the representative of the exponent: , but and .
Right. The rule is not well defined, so it does not define an operation on classes.
-
It only fails for negative exponents, which the rule excludes.
Even with , the representatives and of the same class give different answers.
3
Leave out . Do the four classes of form a group under multiplication?
-
No: has no inverse, since has no solution in the integers.
That holds in , but here only the class matters: , so undoes .
-
No: leaving out leaves out the identity.
is the identity for addition. For multiplication the identity is , which is still there.
-
No: Closure fails, since a product of two non-zero classes can be .
That happens for some , but not here: no product of two of is a multiple of . For instance and .
-
Yes.
Right. Each product of two of the classes, such as , is again one of them; multiplication of classes is associative; is the identity; and , and give every class an inverse.
4
A student argues: in , and , but and , and , so multiplication of classes is not well defined. Find the mistake.
Each equation is right, and so is . The mistake is to conclude from that : that compares the representatives instead of the classes. Two classes are equal when their representatives differ by a multiple of , not only when the representatives are equal. Here , so , and both are . Changing to and to changed the product from to , by a multiple of , so the class did not change.
Builds on
- Definition 1.3.1: when divides ; an equivalence relation whose classes, the residue classes, are
Leads to
- Example 1.3.3: on the residue clock: adding is turning the hand, so ; it is an abelian group under addition
- Example 1.3.4: : the residue classes with a multiplicative inverse form a group under multiplication; for example
- Example 4.1.4: the determinant , the sign , , reduction , and from to any group
- Example in Definition 4.2.1: the rotations of a square and ; and ; and ;
- Theorem 4.3.2: every cyclic group is isomorphic to (if infinite) or to (if of order ); we write for the cyclic group of order
History
- 1801. Carl Friedrich Gauss’s Disquisitiones Arithmeticae introduces the notation and treats calculation with remainders as a subject of its own.
Under addition, is an abelian group. Each condition comes from the same fact about the integers, applied to representatives:
- (i) Closure: is again a residue class.
- (ii) Associativity: .
- (iii) Identity: .
- (iv) Inverses: , and among the class is for , and for .
It is abelian, since . As the group is written additively, its identity is and the inverse of is .
For this is the arithmetic of a clock. Adding turns the hand notches, so , and : turning seven notches is undone by turning five more.
Units
Under multiplication, is not a group when : is an identity, but has no inverse, since . Removing is not enough in general. In the classes and have no inverse either (the last example of Definition 1.3.2), and the non-zero classes are not even closed, since . What works is to keep exactly the classes that can be undone.
A class in is a unit if some class satisfies . The units form a group under multiplication, written .
Multiplication of classes is commutative, since , so each condition needs checking on one side only:
- (i) Closure: if and , then , so is a unit.
- (ii) Associativity: .
- (iii) Identity: is a unit, since , and .
- (iv) Inverses: if , then is a unit too, undone by , so the inverse of lies in the set.
The group is abelian. By Theorem 1.2.4, each unit has exactly one inverse, written .
For example, , and each of these is its own inverse: , and are all more than a multiple of . The classes are not units: for even the number is odd, so does not divide it, and .
Which classes are units follows a pattern. Modulo they are , and modulo they are .