how can I calculate $ d = 17^{-1} (\text{mod} ~ 60) $ ? I was reading this article and then I wrote down this steps:
60 = 3 * 17 + 9
17 = 1 * 9 + 8
9 = 1 * 8 + 1
In the end (using EEA) I get x = -1 and y = 4. But if I insert x, y like this way: $60 * -1 + 17^{-1} * 4 $ I dont get 0.588..
What do I wrong?
Best :D
$60 = 17\cdot 3 + 9$
$17 = 9\cdot 1 + 8$
$9 = 8\cdot1 + 1$
$1 = (9 - 8) = (9 - (17 - 9)) = (2\cdot 9 - 17) = (2\cdot (60-17\cdot 3) -17) = 2\cdot 60 - 7\cdot 17$
So $17\cdot -7 \mod_{60} = 1$
Thus $53$ is the inverse.