Please excuse me if the answer is obvious because I'm a beginner.
Why can we exchange numbers when working with modulo expressions?
For example:
42≡(−1)2(mod5)
You may say the replacement between 4 and −1 is justified because:
4≡−1(mod5)
I understand that equality, when you divide 4 by 5 you get a remainder 4 and if we subtract 5 from that we get −1. But I still don't understand why we can replace 4 with −1.
Furthermore if a≡c(modb) are we justified in replacing a with c in every occasion?
Answer
You need the function you are dealing with to preserve multiplication. In fancier language, that means it is a homomorphism from (Z,⋅) to (Z/nZ,⋅). In simpler language, that means that if x,y are integers then f(x⋅y)=[x]⋅[y], where the first ⋅ is integer multiplication, [z] denotes the equivalence class of z mod n, and the second ⋅ represents multiplication mod n. (Note that we often represent [z] by the remainder of z after division by n.)
For example f:Z→Z/nZ,f(x)=[x2] is such a homomorphism, so a2≡b2modn whenever a≡bmodn. (Here [y] denotes the equivalence class of y mod n.) On the other hand, although 4≡9mod5, 24 and 29 are not equivalent mod 5.
No comments:
Post a Comment