Example
Use the gcd to decide when no inverse exists.
highlighted = computed this step
Step 1 — Set up
Set up the exact toy cryptography values.
a, m(6, 21)
Step 2 — GCD
Compute the highlighted cryptography value.
gcd(a,m)3
Step 3 — Verdict
Compute the highlighted cryptography value.
verdictno inverse
cryptography
The values in this lesson are deliberately tiny so every modular arithmetic step can be checked exactly.