Lesson
Modular Arithmetic
Modular arithmetic works with remainders. $a \\bmod m$ is the remainder when $a$ is divided by $m$. It underpins hashing, cryptography, and cyclic structures in computer science.
Practice
The greatest common divisor (gcd) is the largest integer dividing two numbers, and modular exponentiation raises a number to a power under a modulus — the workhorse of public-key cryptography.
Quiz