Example
Find the remainder after division by a modulus.
highlighted = computed this step
Step 1 — Set up
Set up the exact toy cryptography values.
a, m(17, 5)
Step 2 — Quotient
Compute the highlighted cryptography value.
a // m3
Step 3 — Remainder
Compute the highlighted cryptography value.
a mod m2
Step 4 — Result
Compute the highlighted cryptography value.
residue2
cryptography
The values in this lesson are deliberately tiny so every modular arithmetic step can be checked exactly.