I'm trying to find the inverse modulo of 17(mod3120)
I've tried:
3120=17⋅183+917=9⋅1+89=8⋅1+18=8⋅1
and then do it from the the bottom:
1=9−8⋅1=9−(17−9⋅1)=9⋅2−17⋅1=2(3120−17⋅183)−17⋅1=3120⋅2−17⋅367
This means that −367 is the inverse modulo. Is it the correct result? Can a reverse modulo be negative? Using this website it gives the inverse modulo to be 2753 instead, how can I get that?
Answer
You have obtained the correct answer. Note that
−367≡(3120−367)(mod3120)≡2753(mod3120)
In general, if you do not like negative modulo, you can always make it into a positive one. If you have −a(modn), where a∈{1,2,…,n}, then you can make it into a positive one as follows.
−a(modn)≡(n−a)(modn)
No comments:
Post a Comment