Saturday, 10 February 2018

discrete mathematics - Solving 3xequiv4pmod7



I'm trying to learn about linear congruences of the form ax = b(mod m). In my book, it's written that if gcd(a,m)=1 then there must exist an integer a which is an inverse of a(modm). I'm trying to solve this example:




3x4(mod7)





First I noticed gcd(3,7)=1.



Therefore, there must exist an integer which is the multiplicative inverse of 3(mod7).



According to Bezout's Theorem, if gcd(a,m)=1 then there are integers s and t such that sa+tm=1



where s is the multiplicative inverse of a(modm).



Using that theorem:





7=32+1732=123+7=1




s=2 in the above equation so 2 is the inverse of 3(mod7).



The book says that the next step to solve 3x4(mod7) is to multiply 2 on both sides.



By doing that I get:





23x24(mod7)6x8(mod7)




What should I do after that?



I am working on this problem for hours.



Thanks :)



Answer



3x4(mod7)(Original equation)3x3(mod7)(Replaced 4 with -3(by subtracting 7))x1(mod7)(Divide each side by 3)x6(mod7)(replaced -1 with 6 (by adding 7))



P.S.- The reason you can add or subtract 7 is one of the properties of (mod7). You can add or subtract multiples of 7 to the number in front of the mod without effecting the equation.


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}...