- #1
scouter
- 6
- 0
Hi all,
i would like to tell me, how to find the modular multiplicative inverse (MMI), of a mod n...
Untill now, my thought was that we can find the MMI, with the extended euclidean algorithm, by calculating
gcd (a,n)...
As an output, we will take 3 numbers (d,x,y)... and i have been told that x is the MMI that i am looking for...
For example, if i am looking the MMI of 36mod5, with the extended euclidean algorithm, we will take at the output (1,1,-7) and 1 is the answer..
But as i am trying to do, some examples, my results are not the same, as the book ones...
So what is the solution?
i would like to tell me, how to find the modular multiplicative inverse (MMI), of a mod n...
Untill now, my thought was that we can find the MMI, with the extended euclidean algorithm, by calculating
gcd (a,n)...
As an output, we will take 3 numbers (d,x,y)... and i have been told that x is the MMI that i am looking for...
For example, if i am looking the MMI of 36mod5, with the extended euclidean algorithm, we will take at the output (1,1,-7) and 1 is the answer..
But as i am trying to do, some examples, my results are not the same, as the book ones...
So what is the solution?