Introduction to Modular Arithmetic, Part 3
In this part, we will confirm that modular arithmetic works well with sums and products, as claimed in Part 1. We'll also have a look at powers (where a little care is needed). [Actually, powers will be postponed until Part 3b.]
So, we start by showing that our operations of addition and multiplication are 'consistent' with congruence modulo k (for positive integers k). In the curiously named Lecture 9b of my first-year pure maths module (FPM) the result I prove is the following. For convenience (non-standard) let's call this the Modular Arithmetic Consistency Theorem, or MACT for short.
Here Z is the set of all integers (positive, negative or zero) and, for us, N is the set {1,2,3,…} of all positive integers. So in the MACT, k is a positive integer, while a1, b1, a2 and b2 are integers which need not be positive.
The MACT is fairly easy to prove directly, and that is what I do in my lecture. But just for a change let me state an even easier result, which we can use to prove the MACT in two steps. We'll call it a lemma. (A lemma is often a preliminary result that you prove along the way to proving a more important theorem.)
Lemma
Let k be a positive integer, and let a1, a2 and b be integers. Suppose that a1≡a2 (mod k). Then
a1+b≡a2+b (mod k) and a1b≡a2b (mod k).
Comment: Since addition and multiplication are commutative, under the conditions of the lemma we also have
b+a1≡b+a2 (mod k) and ba1≡ba2 (mod k).
And of course, we can change the variable names in the lemma for more general use.
Once we have this lemma, we can prove the MACT as follows.
Under the conditions of the MACT, the lemma tells us first that a1+b1≡a2+b1 (mod k) and that a1b1≡a2b1 (mod k).
Then (see the comment after the lemma), the lemma also gives us that a2+b1≡a2+b2 (mod k) and that a2b1≡a2b2 (mod k).
Combining all of this with transitivity (see Part 2), we obtain the full version of the MACT.
That is all well and good, but we shouldn't forget to prove the lemma!
Proof of the lemma
Under the conditions of the lemma, we have a1≡a2 (mod k), which means that a1−a2 is divisible by k.
For the sum, we need to show that a1+b≡a2+b (mod k), i.e., that (a1+b)−(a2+b) is divisible by k. But this is rather quick, because (a1+b)−(a2+b)=a1−a2, and we already know that this is divisible by k, so the result is immediate.
For the product, we need to show that a1b≡a2b (mod k), i.e., that a1b−a2b is divisible by k. Now, we have a1b−a2b=(a1−a2)b, and you probably already know that if you multiply a multiple of k by an integer, then you obtain another multiple of k. But let's just check this carefully using the elementary definitions and assumptions we are using (see Part 2).
Since a1−a2 is divisible by k, our elementary definition of divisibility tells us that a1−a2k is an integer. Then we have
(a1−a2)bk=a1−a2kb,
and this is a product of two integers, so it is still an integer. Thus (a1−a2)b is divisible by k, i.e., a1b−a2b is divisible by k, and that is exactly what we needed to finish the proof.
I did say that I would look at powers in this post, but ... well, it's getting late, so I'll postpone powers to what I will call Part 3b.
Comments
Post a Comment