Finding the modulus

Finding the modulus

The modulus is the remainder when one number is divided by another.

It’s using represented using the modulus operator, often written as \% or mod.

Evaluate 7 \mod 4

To find 7 \mod 4, we divide 7 by 4:

Expressing modular binary operators

Modular addition

To find the modular addition of two numbers:

  1. Add the two numbers together.
  2. Find the modulus of the sum with respect to a given modulus.

Evaluate (5 + 9) \mod 6

Evaluate (12 + 8) \mod 7

Evaluate 15 +_4 10