Resolving Congruences

Linear Congruence

ax≡b(modm)ax \equiv b \pmod{m}

If we find a multiplicative inverse aˉ\bar{a} to a(modm)a \pmod{m}, i.e. aˉ⋅a≡1(modm)\bar{a}\cdot a \equiv 1 \pmod{m}, then ax≡b(modm)ax \equiv b \pmod{m} becomes x≡aˉ⋅b(modm)x \equiv \bar{a}\cdot b \pmod m

Theorem

Let a,m∈Za,m \in \Z with m≥2m\geq 2. If gcd(a,m)=1gcd(a,m) = 1, then the inverse of a(modm)a \pmod{m} exists and is unique.