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 101⋅98mod17, use the theorem that if a≡b(modn) and c≡d(modn), then ac≡bd(modn).
Since 101=5⋅17+1, 101≡16(mod17). Since 98=5⋅17+13, 98≡13(mod17). Thus,
101⋅98≡16⋅13≡208≡4(mod17)
since 208=12⋅17+4.
However, you can simplify the calculations further if you use residues with absolute value at most n/2.
Since 101=6⋅17−1, 101≡−1(mod17). Since 98=6⋅17−4, 98≡−4(mod17). Thus,
101⋅98≡−1⋅−4≡4(mod17)
which agrees with our previous result.
For 128(mod7), observe that 12≡5(mod7), so 128≡58(mod7).
If p is a prime modulus and k≠0, then kp−1≡1(modp). Hence, 56≡1(mod7), so
128≡58≡5652≡52≡4(mod7)
For 75(mod15), reduce modulo 15 after you calculate each power. For instance,
72≡49≡4(mod15)
so
73≡7⋅72≡7⋅4≡28≡−2(mod15)
Since you know the residues of 72(mod15) and 73(mod15), you can multiply their residues to find the residue of 75=72⋅73 modulo 15. If you want a positive residue, add a suitable multiple of 15.
No comments:
Post a Comment