Example
Track Bezout coefficients while Euclid runs.
highlighted = computed this step
Step 1 — Set up
Set up the exact toy cryptography values.
a, b(40, 3)
Step 2 — Table row
Compute the highlighted cryptography value.
r, s, t(40, 1, 0)
Step 3 — Table row
Compute the highlighted cryptography value.
r, s, t(3, 0, 1)
Step 4 — Table row
Compute the highlighted cryptography value.
r, s, t(1, 1, -13)
Step 5 — Table row
Compute the highlighted cryptography value.
r, s, t(0, -3, 40)
Final Step — Bezout row
Compute the highlighted cryptography value.
gcd, s, t(1, 1, -13)
cryptography
The values in this lesson are deliberately tiny so every modular arithmetic step can be checked exactly.