7 Equivalence Relations
7.4 Modular Arithmetic
7.4.1 Beginning Activity 1 (Congruence Modulo 6)
For this activity, we will only use the relation of congruence modulo 6 on the set of integers.
-
1.
Find five different integers such that and find five different integers such that . That is, find five different integers in [3], the congruence class of 3 modulo 6 and five different integers in [4], the congruence class of 4 modulo 6 .
-
2.
Calculate using several values of in [3] and several values of in [4] from Part (1). For each sum that is calculated, find so that and . What do you observe?
-
3.
Calculate using several values of in [3] and several values of in [4] from Part (1). For each product that is calculated, find so that and . What do you observe?
-
4.
Calculate using several values of in [3] from Part (1). For each product that is calculated, find so that and . What do you observe?
7.4.2 Beginning Activity 2 (The Remainder When Dividing by 9)
If and are integers with , then from the Division Algorithm, we know that there exist unique integers and such that
In this activity, we are interested in the remainder . Notice that . So, given and , if we can calculate , then we can calculate .
We can use the "int" function on a calculator to calculate . [The "int" function is the "greatest integer function." If is a real number, then is the greatest integer that is less than or equal to .]
So, in the context of the Division Algorithm, . Consequently,
If is a positive integer, we will let denote the sum of the digits of . For example, if , then
For each of the following values of , calculate
-
•
The remainder when is divided by 9, and
-
•
The value of and the remainder when is divided by 9.
-
1.
-
2.
-
3.
-
4.
-
5.
-
6.
What do you observe?
7.4.3 The Integers Modulo
Let . Since the relation of congruence modulo is an equivalence relation on , we can discuss its equivalence classes. Recall that in this situation, we refer to the equivalence classes as congruence classes.
Definition. Let . The set of congruence classes for the relation of congruence modulo on is the set of integers modulo , or the set of integers . We will denote this set of congruence classes by .
Corollary 7.17 tells us that
In addition, we know that each integer is congruent to precisely one of the integers . This tells us that one way to represent is
Consequently, even though each integer has a congruence class, the set has only distinct congruence classes.
The set of integers is more than a set. We can add and multiply integers. That is, there are the arithmetic operations of addition and multiplication on the set , and we know that is closed with respect to these two operations.
One of the basic problems dealt with in modern algebra is to determine if the arithmetic operations on one set "transfer" to a related set. In this case, the related set is . For example, in the integers modulo , is it possible to add the congruence classes [4] and [2] as follows?
We have used the symbol to denote addition in so that we do not confuse it with addition in . This looks simple enough, but there is a problem. The congruence classes [4] and [2] are not numbers, they are infinite sets. We have to make sure that we get the same answer no matter what element of [4] we use and no matter what element of [2] we use. For example,
Do we get the same result if we add [9] and [7] in the way we did when we added [4] and [2]? The following computation confirms that we do:
This is one of the ideas that was explored in Beginning Activity 1. The main difference is that in this activity, we used the relation of congruence, and here we are using congruence classes. All of the examples in Beginning Activity 1 should have illustrated the properties of congruence modulo 6 in the following table. The left side shows the properties in terms of the congruence relation and the right side shows the properties in terms of the congruence classes.
|
|
These are illustrations of general properties that we have already proved in Theorem 3.28. We repeat the statement of the theorem here because it is so important for defining the operations of addition and multiplication in .
Theorem 3.28. Let be a natural number and let , and be integers. Then
-
1.
If and , then .
-
2.
If and , then .
-
3.
If and , then .
Since if and only if , we can restate the result of this Theorem 3.28 in terms of congruence classes in .
Corollary 7.19. Let be a natural number and let , and be integers. Then, in ,
-
1.
If and , then .
-
2.
If and , then .
-
3.
If and , then .
Because of Corollary 7.19, we know that the following formal definition of addition and multiplication of congruence classes in is independent of the choice of the elements we choose from each class. We say that these definitions of addition and multiplication are well defined.
Definition. Let . Addition and multiplication in are defined as follows: For ,
The term modular arithmetic is used to refer to the operations of addition and multiplication of congruence classes in the integers modulo .
So if , then we have an addition and multiplication defined on , the integers modulo .
Always remember that for each of the equations in the definitions, the operations on the left, and , are the new operations that are being defined. The operations on the right side of the equations ( and ) are the known operations of addition and multiplication in .
Since is a finite set, it is possible to construct addition and multiplication tables for . In constructing these tables, we follow the convention that all sums and products should be in the form , where . For example, in , we see that by the definition, , but since , we see that and so we write
Similarly, by definition, [2] , and in . So we write
The complete addition and multiplication tables for are
7.4.4 Progress Check 7.20 (Modular Arithmetic in , and )
-
1.
Construct addition and multiplication tables for , the integers modulo 2 .
-
2.
Verify that the following addition and multiplication tables for are correct.
-
3.
Construct complete addition and multiplication tables for .
-
4.
In the integers, the following statement is true. We sometimes call this the zero product property for the integers.
For all , if , then or .
Write the contrapositive of the conditional statement in this property. -
5.
Are the following statements true or false? Justify your conclusions.
-
(a)
For all , if , then or .
-
(b)
For all , if , then or .
-
(a)
7.4.5 Divisibility Tests
Congruence arithmetic can be used to prove certain divisibility tests. For example, you may have learned that a natural number is divisible by 9 if the sum of its digits is divisible by 9. As an easy example, note that the sum of the digits of 5823 is equal to , and we know that 18 is divisible by 9. It can also be verified that 5823 is divisible by 9. (The quotient is 647 .) We can actually generalize this property by dealing with remainders when a natural number is divided by 9 .
Let and let denote the sum of the digits of . For example, if , then . In Beginning Activity 2, we saw that
In fact, for every example in Beginning Activity 2, we saw that and were congruent modulo 9 since they both had the same remainder when divided by 9. The concepts of congruence and congruence classes can help prove that this is always true.
We will use the case of to illustrate the general process. We must use our standard place value system. By this, we mean that we will write 7319 as follows:
| (1) |
The idea is to now use the definition of addition and multiplication in to convert equation (1) to an equation in . We do this as follows:
| (2) |
Since and , we can conclude that and . Hence, we can use these facts and equation (2) to obtain
| (3) |
Equation (3) tells us that 7319 has the same remainder when divided by 9 as the sum of its digits. It is easy to check that the sum of the digits is 20 and hence has a remainder of 2. This means that when 7319 is divided by 9, the remainder is 2 .
To prove that any natural number has the same remainder when divided by 9 as the sum of its digits, it is helpful to introduce notation for the decimal representation of a natural number. The notation we will use is similar to the notation for the number 7319 in equation (1).
In general, if , and is the decimal representation of , then
This can also be written using summation notation as follows:
Using congruence classes for congruence modulo 9, we have
| (4) |
One last detail is needed. It is given in Proposition 7.21. The proof by mathematical induction is Exercise (6).
Proposition 7.21. If is a nonnegative integer, then , and hence for the equivalence relation of congruence modulo .
If we let denote the sum of the digits of , then
Now using equation (4) and Proposition 7.21, we obtain
This completes the proof of Theorem 7.22.
Theorem 7.22. Let and let denote the sum of the digits of . Then
-
1.
, using congruence classes modulo 9 .
-
2.
.
-
3.
if and only if .
Part (3) of Theorem 7.22 is called a divisibility test. If gives a necessary and sufficient condition for a natural number to be divisible by 9. Other divisibility tests will be explored in the exercises. Most of these divisibility tests can be proved in a manner similar to the proof of the divisibility test for 9 .
7.4.6 Exercises 7.4
-
1.
-
(a)
Complete the addition and multiplication tables for .
-
(b)
Complete the addition and multiplication tables for .
-
(c)
Complete the addition and multiplication tables for .
-
(a)
-
2.
The set contains elements. One way to solve an equation in is to substitute each of these elements in the equation to check which ones are solutions. In , when parentheses are not used, we follow the usual order of operations, which means that multiplications are done first and then additions. Solve each of the following equations:
-
(a)
in
-
(b)
in
-
(c)
in
-
(d)
in
-
(e)
in
-
(f)
in
-
(g)
in
-
(h)
in
-
(a)
-
3.
In each case, determine if the statement is true or false.
-
(a)
For all , if , then there exists a such that .
-
(b)
For all , if , then there exists a such that .
-
(a)
-
4.
In each case, determine if the statement is true or false.
-
(a)
For all , if and , then .
-
(b)
For all , if and , then .
-
(a)
-
5.
-
(a)
Prove the following proposition:
For each , if , then or .
-
(b)
Does there exist an integer such that ? Use your work in Part (a) to justify your conclusion. Compare to Exercise (11) in Section 3.5.
-
(a)
-
6.
Use mathematical induction to prove Proposition 7.21.
If is a nonnegative integer, then , and hence for the equivalence relation of congruence modulo 9, .
-
7.
Use mathematical induction to prove that if is a nonnegative integer, then . Hence, for congruence classes modulo 3, if is a nonnegative integer, then .
-
8.
Let and let denote the sum of the digits of . So if we write
then . Use the result in Exercise (7) to help prove each of the following:
-
(a)
, using congruence classes modulo 3.
-
(b)
.
-
(c)
if and only if .
-
(a)
-
9.
Use mathematical induction to prove that if is an integer and , then . Hence, for congruence classes modulo 5, if is an integer and , then .
-
10.
Let and assume
Use the result in Exercise (9) to help prove each of the following:
-
(a)
, using congruence classes modulo 5.
-
(b)
.
-
(c)
if and only if .
-
(a)
-
11.
Use mathematical induction to prove that if is an integer and , then . Hence, for congruence classes modulo 4, if is an integer and , then .
-
12.
Let and assume
Use the result in Exercise (11) to help prove each of the following:
-
(a)
, using congruence classes modulo 4.
-
(b)
.
-
(c)
if and only if .
-
(a)
-
13.
Use mathematical induction to prove that if is an integer and , then . Hence, for congruence classes modulo 8, if is an integer and , then .
-
14.
Let and assume
Use the result in Exercise (13) to help develop a divisibility test for 8. Prove that your divisibility test is correct.
-
15.
Use mathematical induction to prove that if is a nonnegative integer then . Hence, for congruence classes modulo 11, if is a nonnegative integer, then .
-
16.
Let and assume
Use the result in Exercise (15) to help prove each of the following:
-
(a)
.
-
(b)
, using congruence classes modulo 11.
-
(c)
11 divides if and only if 11 divides .
-
(a)
-
17.
-
(a)
Prove the following proposition:
For all , if , then and .
-
(b)
Use Exercise (17a) to prove the following proposition:
Let . If , then and .
-
(c)
Use Exercise (17b) to prove the following proposition:
For all , if 3 divides , then 3 divides and 3 divides .
-
(a)
-
18.
Prove the following proposition:
For each , if there exist integers and such that , then the units digit of must be , or 7.
-
19.
Is the following proposition true or false? Justify your conclusion.
Let . If is odd, then . Hint: What are the possible values of ?
-
20.
Prove the following proposition:
Let . If , then is not the sum of three squares. That is, there do not exist natural numbers , and such that .
7.4.7 Explorations and Activities
-
21.
Using Congruence Modulo 4. The set is a finite set, and hence one way to prove things about is to simply use the elements in as the cases for a proof using cases. For example, if , then in , , , or .
-
(a)
Prove that if , then in or . Use this to conclude that in or .
-
(b)
Translate the equations and in into congruences modulo 4.
-
(c)
Use a result in Exercise (12) to determine the value of so that , , and
That is, [104 257833 259] in .
-
(d)
Is the natural number 104257833259 a perfect square? Justify your conclusion.
-
(a)
7.5 Chapter 7 Summary
7.5.1 Important Definitions
-
•
Relation from to , Section 7.1
-
•
Relation on , Section 7.1
-
•
Domain of a relation, Section 7.1
-
•
Range of a relation, Section 7.1
-
•
Inverse of a relation, Section 7.1
-
•
Reflexive relation, Section 7.2
-
•
Symmetric relation, Section 7.2
-
•
Transitive relation, Section 7.2
-
•
Equivalence relation, Section 7.2
-
•
Equivalence class, Section 7.3
-
•
Congruence class, Section 7.3
-
•
Partition of a set, Section 7.3
-
•
Integers modulo , Section 7.4
-
•
Addition in , Section 7.4
-
•
Multiplication in , Section 7.4
7.5.2 Important Theorems and Results about Relations, Equivalence Relations, and Equivalence Classes
-
•
Theorem 7.6. Let be a relation from the set to the set . Then
-
1.
The domain of is the range of . That is, dom .
-
2.
The range of is the domain of . That is, .
-
3.
The inverse of is . That is, .
-
•
Theorem 7.10. Let and let . Then if and only if and have the same remainder when divided by .
-
•
Theorem 7.14. Let be a nonempty set and let be an equivalence relation on .
-
1.
For each .
-
2.
For each if and only if .
-
3.
For each or .
-
•
Corollary 7.16. Let . For each , let [ ] represent the congruence class of a modulo .
-
1.
For each .
-
2.
For each if and only if .
-
3.
For each or .
-
•
Corollary 7.17. Let . For each , let [a] represent the congruence class of a modulo .
-
1.
-
2.
For , if , then .
-
•
Theorem 7.18. Let be an equivalence relation on the nonempty set . Then the collection of all equivalence classes determined by is a partition of the set .