I know how to get them (extended Euclidean algorithm using the mod and the number you want the inverse of if their gcd is 1, the inverse is the number you get * the one you have in the linear combination), but I don't understand what this means.
I know inverses are important for decryption for example. I just don't quite understand how it works. And why exactly is it that you can only have an inverse when gcd(a,m)=1 ? (a being any number, m being the mod your are using)