Congruence Modulo 'n' Flashcards
What is meant by a ≡ b modulus n?
‘a’ is said to be congruent to ‘b’ (a ≡ b) modulus n if:
1. n|(a - b)
2. a and b have the same remainder when divided by n
3. a = b + kn, where k is some multiple of n.
n ∈ N > 1, and a, b ∈ Z ( N = natural numbers, Z = integers)
Prove that congruency is reflexive.
For a relation R to be reflexive, (a, a) ∈ R. Thus this must be true a ≡n a.
Recall a ≡n b <=> a = b + kn.
Thus, a ≡n a <=> a = a + kn.
k, being a multiple of n, can be written as:
a = a + 0•n
Thus a ≡n a is reflexive.
Prove ≡n is symmetric.
For a relation R to be symmetric:
(a, b) ∈ R => (b, a) ∈ R.
Suppose a ≡n b, then
a = b + kn
a - b = kn
-a + b = (-k)n
b - a = (-k)n
Since ‘-k’ is still a multiple of n, it can be written as:
b - a = mn
Thus as n|(b -a), a ≡n b => b ≡n a, it is symmetric.
Prove that congruency is transitive.
For a relation R to be transitive,
(a, b) ∈ R, (b, c) ∈ R => (a, c) ∈ R.
Thus a ≡n b, b ≡n c => a ≡n c.
Notice a ≡n b <=> a - b = k1n, b ≡n c <=> b - c = k2n, a ≡n c <=> a - c = k3n.
Notice also that a - c = (a - b) + (b - c);
a - c = k1n + k2n,
=> a - c = (k1 + k2)n
As (k1 + k2) is still considered a multiple of n, their addition can be written as k3:
a - c = k3n.
It is seen that n|a - c. Thus, this is transitive.