Modulus
m mod n is the remainder of m ÷ n
3 mod 5 = 3because 3 divided by 5 is 0 with remainder 3.m mod n = nwherem < n5 mod 3 = 2because 5 divided by 3 is 1 with remainder 2.0 <= m mod n <= nwherem > n
From 1.
0 mod 3 = 01 mod 3 = 12 mod 3 = 2
From 2.
3 mod 3 = 04 mod 3 = 15 mod 3 = 26 mod 3 = 0
-5 mod 3 = 1because -5 divided by 3 is -2 with remainder 1. Remainders are never negative-5 = 3(-2) + 1