Congruence

Definition (Congruence)

Let a,b∈Za,b\in\mathbb{Z}, we say aa is congruent to bb modulo mm if m∣a−bm|a-b or a=b+kma=b+km for some k∈Zk\in\mathbb{Z}. We represent this relationship using the following notation a≡b (mod m)a\equiv b \ (\text{mod } m)

Theorem (Solution to Congruence)

The congruence ax≡b(modm)ax\equiv b\pmod{m} where d=gcd(a,m)d=gcd(a,m) and d∣bd|b has a solution x≡a1−1b1(modm/d)x\equiv a_{1}^{-1}b_{1}\pmod{m/d}where a1=ad,b1=bda_{1}=\frac{a}{d},b_{1}=\frac{b}{d}.

Linked from