I am taking a Cryptography class and we are working on modular arithmetic. I am still unsure on how to find pairs of additive inverse pairs and multiplicative inverse pairs. I've seen some videos and attempted to read about doing so but I find myself confused on what exactly I'm looking for. I've learned about the GCD, euclidean algorithm, but i just can't seem to piece it all together. Any help would be much appreciated. Thanks!
Example: 13 mod 17
How I got this: For the additive inverse, I take the number given (13) and then find the number that would add up to n (n=17), in this case it is 4. For the multiplicative inverse, I take the number given (13) and then add n to it(n=17), and then I find a number that multiples with 13 to be congruent to 1.
I picture a clock with n numbers around it. Im worried when it comes to a much bigger number such as 321^-1 mod 56709.
additive inverse:(13,4) multiplicative inverse: a x b = 1(mod 17) 13 x 4 = 1(mod 17)
I'm working on another example:
list all additive inverse pairs and multiplicative inverse pairs of the sets Z28 and Z28*. So far i have this:
Integers in the set:
Z28 = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27}
Z28* = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27}
Additive Inverse Pairs:
Z28 = (0,0),(1,27),(2,26),(3,25),(4,24),(5,23),(6,22),(7,21),(8,20),(9,19),(10,18),(11,17),(12,16),(13,15),(14,14)
Z28* = (1,27),(2,26),(3,25),(4,24),(5,23),(6,22),(7,21),(8,20),(9,19),(10,18),(11,17),(12,16),(13,15),(14,14)
as for the multiplicative inverse pairs, its taking me a while to check each one. Another question is, is there a faster way to find all inverse pairs of a set?