XodoX said:
Homework Statement
Find some x such that x\equiv8 mod (18)
That's barely a problem at all- one such x is "8"! (Others are 8+ 18= 26 and 8- 18= -10.)
Find the inverse of 12 modulo 41
You are seeking an integer, x, such that 12x= 1 (mod 41). That is the same as saying that 12x= 1+ 41y for some integer y. And that equation is the same as 12x- 41y= 1.
The standard way of solving such a
Diophantine equation is to use the "division algorithm":
12 divides into 41 three times with remainder 5: 41- 3(12)= 5. 5 divides into 12 twice with remainder 2: 12- 2(5)= 2. 2 divides into 5 twice with remainder 1: 5- 2(2)= 1.
Replace (2) in the third equation with (12- 2(5)) from the second equation and we have 5- 2(12- 2(5))= 5(5)- 2(12)= 1. Replace (5) in that with 41- 3(12) from the first equation and we have 5(41- 3(12))- 2(12)= 5(41)- 17(12)= 1.
We can see immediately that one solution to 12x- 41y= 1 is x= -17, y= -41. It is also easy to see that x= -17+ 41k and y= -41+ 17k is a solution for any integer k. Can you find a k that gives the smallest positive x?
This is the same as saying that 2x= 7+ 13y for some integer y. That is the same as 2x- 13y= 7.
Now do the same as above. 2 divides into 13 six times with remainder 1: 13- 2(6)= 1. Multiply that by 7: 13(7)- 2(42)= 7. That is, one solution is x= -42, y= -7. Again, x= -42+ 13k, y= -7+ 2k is a solution for any k. What is the smallest positive value for x?
Or, for this simple problem, you could just note the 2(7)= 14= 1 (mod 13) so the multiplicative inverse of 7 (mod 13) is 2. Then multiply 7 by that multiplicative inverse.
Homework Equations
The Attempt at a Solution
I'm not sure how you do this. Can someone explain please? I know it's actually easy... but can't figure it out!
Haven't you been given some instruction in this? You should at least
try things even if you are not sure.