Thursday, 13 July 2017

modular arithmetic - Why can we exchange numbers when working with modulo expressions?




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:




41(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 ac(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(xy)=[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:ZZ/nZ,f(x)=[x2] is such a homomorphism, so a2b2modn whenever abmodn. (Here [y] denotes the equivalence class of y mod n.) On the other hand, although 49mod5, 24 and 29 are not equivalent mod 5.


No comments:

Post a Comment

real analysis - How to find limhrightarrow0fracsin(ha)h

How to find limh0sin(ha)h without lhopital rule? I know when I use lhopital I easy get $$ \lim_{h\rightarrow 0}...