Let a and x be integers. We say that x is a modular inverse of a when an algebraic operation performed on x and a yields the identity element.
Depending on whether the operation in question is addition or multiplication, we distinguish two types of modular inverses: additive and multiplicative. Read more