Thursday, 29 March 2018

modular arithmetic - Find the inverse modulo of a number - got a negative result



I'm trying to find the inverse modulo of 17(mod3120)



I've tried:



3120=17183+917=91+89=81+18=81



and then do it from the the bottom:



1=981=9(1791)=92171=2(312017183)171=3120217367
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(3120367)(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)(na)(modn)


No comments:

Post a Comment

real analysis - How to find limhrightarrow0fracsin(ha)h

How to find lim without lhopital rule? I know when I use lhopital I easy get $$ \lim_{h\rightarrow 0}...