Congruences

Overview

For each positive integer n, the set Z+ can be partitioned into n cells according to whether the remainder is 0,1,2,,n1. These cells are called the residue classes modulo n in Z+. n is called the modulus.

The equivalence relation on Z+ corresponding to the residue classes modulo n in Z+ is called congruence modulo n. We usually write ab(modn) to state a is congruent to b modulo n.

ab(modn) if and only if n(ab).

Chinese Remainder Theorem

Let n1,n2,,nkZ+ be pairwise coprime and a1,a2,,akZ+. Then there exists a unique solution (modulo N=n1n2nk) to the following system of congruences:

xa1(modn1)xa2(modn2)xak(modnk)

Equivalently, we note there is a rng isomorphism ϕ:Zn1n2nkZn1×Zn2××Znk given by

ϕ(x)=x(1,1,,1).
Powered by Forestry.md