Example
Read a modular inverse from a Bezout coefficient.
highlighted = computed this step
Step 1 — Set up
Set up the exact toy cryptography values.
a, m(3, 40)
Step 2 — Coefficient
Compute the highlighted cryptography value.
coefficient of a-13
Step 3 — Reduce
Compute the highlighted cryptography value.
coefficient mod m27
cryptography
The values in this lesson are deliberately tiny so every modular arithmetic step can be checked exactly.