I've just learned modular arithmetic today, and am really struggling to understand a certain theorem.
The theorem given to us states the following:
Let m ∈N. For any integers a, b, c, and d, if a≡b(modm) and c≡d(modm) then,
- a+c≡b+d(modm)
- a−c≡b−d(modm)
- ac≡bd(modm)
In the next section, the notes state the following: "We can use properties of congruence to prove the (familiar) rule that an
integer is divisible by 3 if and only if the sum of its decimal digits is divisible
by 3. The key is to observe that 10≡1(mod3) and so by Theorem 5.10.3 [theorem stated above]
you can change 10 to 1 wherever it occurs. Remember that 3|n if and only
if n≡0(mod3)."
Next, it goes through the proof it was talking about at the beginning of the first quote:
Suppose n=dk⋅bk+dk−1⋅bk−1+⋯+d1⋅b+d0 where dk,dk−1,…,d0 are the digits of n. Also assume that 3|n. We now have the following:
n≡0(mod3)⟺dk⋅10k+dk−1⋅10k−1+⋯+d1⋅10+d0≡0(mod3)⟺dk⋅1k+dk−1⋅1k−1+⋯+d1⋅1+d0≡0(mod3)
since 10≡1(mod3).
I don't quite understand how any parts of the theorem stated above allows for substitution.
Thanks for any help.
Answer
We are not substituting anything. In an intuitive manner (though not completely rigorous), you can think of numbers congruent in a certain modulo as being equal. Hence since 10≡1 modulo 3, we have
dk10k+dk−110k−1+⋯+d0100=dk1k+⋯+d010=dk+⋯+d0(mod3).
Note that the only difference that occurred is that we changed all the 10s which occurred in the expression to 1s [to emphasize the thinking that 10 and 1 are really the same element, I've used = in place of ≡]. The reason we do this is because they are congruent mod 3.
If you want a more formal explanation, note that regardless of x and n, if x=a, then x2=x⋅x=a⋅a=a2 modulo n (this is part 3 of your theorem). By induction it is also true that xk=ak. Hence we can take linear combinations (this is parts 1 and 2 of your theorem) of (1,x,x2,…,xk) and get that the result is congruent to the same linear combination of as. In other words, if p is a polynomial and x≡a modulo n, then p(x)≡p(a) modulo n as well. Now, apply this to your problem with x=10, a=1 and n=3. Do you see how everything works out?
No comments:
Post a Comment