I'm working out some examples on multiplicative inverses. I understand how to solve for a multiplicative inverse using the Extended Euler's algorithm, but I don't understand the principles which enable this solution.
In particular, everything notes that for a multiplicative inverse to exist of a number a in multiplicative group modulo n, that a and n must be co-prime (thus, GCD(a,n) = 1).
I can work out plenty of examples where I won't be able to find a multiplicative inverse if they are not co-prime -- but I don't understand why this works.
d|a,nandd|1that thegcd(a,n) = 1. I see that ifd|1, then d must be 1. But I don't understand how you can jump to knowing the GCD of the two things must be1from this. (I'm guessing it is because there is no other combination ofk,jfor which this equation will equal 1, and for whichdwill dividea,nand also divideak + nk(1). – BSchlinker Apr 23 '14 at 18:58