Requires understanding Modulus and Multiplicative Inverse

Modular Multiplicative Inverse

In its most basic definition: In other words,

Examples

We must find the value such that A good example of this is value is so that So is the modular multiplicative inverse

Definition

and are multiplicative inverses modulo m if Only exists if GCD of and

So the remainder after mod must always be one. Thus, we can write When we are finding the mod inverse then,