Tuesday, July 2, 2019

discrete mathematics - Modulo: Calculating without calculator??



Calculate the modulo operations given below (without the usage of a calculator):




101×98mod17=



75mod15=



128mod7=



3524mod63=



3524mod63=




Ok with calculator I have no problem with it. However, I need to learn how can I compute them without calculator.


Answer



By definition of modular arithmetic, 3524(mod63) is the remainder when 3524 is divided by 63.



To find 3524(mod63), multiply your answer for 3524(mod63) by 1. If you want a positive residue, add 63 to this result.



For the product 10198mod17, use the theorem that if ab(modn) and cd(modn), then acbd(modn).



Since 101=517+1, 10116(mod17). Since 98=517+13, 9813(mod17). Thus,




1019816132084(mod17)



since 208=1217+4.



However, you can simplify the calculations further if you use residues with absolute value at most n/2.



Since 101=6171, 1011(mod17). Since 98=6174, 984(mod17). Thus,



10198144(mod17)




which agrees with our previous result.



For 128(mod7), observe that 125(mod7), so 12858(mod7).



If p is a prime modulus and k0, then kp11(modp). Hence, 561(mod7), so



128585652524(mod7)



For 75(mod15), reduce modulo 15 after you calculate each power. For instance,




72494(mod15)



so



7377274282(mod15)



Since you know the residues of 72(mod15) and 73(mod15), you can multiply their residues to find the residue of 75=7273 modulo 15. If you want a positive residue, add a suitable multiple of 15.


No comments:

Post a Comment

analysis - Injection, making bijection

I have injection f:AB and I want to get bijection. Can I just resting codomain to f(A)? I know that every function i...