The modulo or mod is the remainder after dividing one number by another absolute value.
Therefore, if you have an expression like a ≡ b (mod n), this means that when you divide a and b by n, they have the same remainder.
Formula to calculate modulus.
You only need to take the number you have and divide it by a positive integer and the absolute value that you get is the modulo.
Example:
Verify that 3 ≡ 5(mod 2).
You only need to take 3 and divide it by 2 and also take 5 and divide it by 5.
= 3 ÷ 2
= 1 remainder 1
= 5 ÷ 2
= 2 remainder 1
Since the remainder is the same, it is correct to say that 3 is equivalent to 5 mod 2.