FritoTaco
- 132
- 23
Homework Statement
Hi, I'm doing a problem by solving congruences but my question is simply trying to find the inverse of 2 \enspace (mod\enspace 17) from 2x \equiv 7(mod \enspace 17).
Homework Equations
It's hard to find a definition that makes sense but if you check my upload images you can see exactly what I'm trying to do.
Source:
The Attempt at a Solution
[/B]
Going forwards
1.) 2 = 17(0) + 2
2.) 17 = 2(8) + 1
3.) 2 = 1(2) + 0
Our gcd = 1 which means we can find the inverse starting with step 2.
Going backwards
4.) 1 = 17 - 2(8)
5.) 2 = 2 - 17(0) we wrote this from step 1 by setting the remainder equal to everything else.
6.) 1 = 17 - (2 - 17(0))(8) plug in the equation from step 5 into 2 from step 4.
7.) 1 = 17 - 2(8)
So our answer says the inverse is 8, but the answer is 9. Where am I messing up?