You can put this solution on YOUR website! modulus example defining residue
:
Given
a, there is only one value b between 0 and n−1 so that
:
a ≡ b(mod n). We call b the residue of a modulo n, and write b = (a mod n).
:
Note The expression a ≡ b(mod n) means that a-b is a multiple of n
:
We are asked for the least residue of 5^8 (mod 7)
:
5^8 / 7 = 390625 / 7 = 390621 with remainder of 4
:
least residue of 5^8 (mod 7) is 4
:
Note 11 ≡ 4(mod 7) as well
: