Euclid
Inverse Does Not Exist
Use the gcd to decide when no inverse exists. This is toy arithmetic only, not deployable security.
cryptography
The values in this lesson are deliberately tiny so every modular arithmetic step can be checked exactly.