Consider two sets A and B, and a function f:A↦B that maps elements from A to the elements of B.
f is injective if each element in B has at most one element in A that maps to it
f is surjective if each element in B has at least one element in A that maps to it
f is bijective if it is both injective and surjective
f is bijective if and only if it has an inverse f−1
Chinese Remainder Theorem
Goal
Given a list of congruences x≡a1modm1, x≡a2modm2, ⋯, x≡anmodmn, find an x that satisfies all congruences.
Theorem
Let N=m1m2⋯mn. If all the mi are relatively prime(gcd(mi,mj)=1) then there is exactly one value of x in the set {0,1,⋯,N−1} that satisfies all the congruences.
Finding x
For x≡a1modm1 and x≡a2modm2, we want to find a number k1 that is a multiple of m2 and k1≡1modm1, and similarly a number k2 that is a multiple of m1 and k2≡1modm2. Then x=a1k1+a2k2 is a solution because x≡a1k1+0≡a1modm1 and x≡0+a2k2≡a2modm2.
Bijections
Chinese Remainder Theorem
Goal
Theorem
Finding x