Jump to content

Number Theory/Congruences

From Wikibooks, open books for an open world

Notation and introduction

[edit | edit source]

We will call two integers a and b congruent modulo a positive integer m, if a and b have the same (smallest nonnegative) remainder when dividing by m. The formal definition is as follows.

Definition

[edit | edit source]

Let a, b and m be integers where m>0. The numbers a and b are congruent modulo m, in symbols a≡b(modm), if m divides the difference a−b.

Lemma

[edit | edit source]

We have a≡b(modm) if and only if a and b have the same smallest nonnegative remainder when dividing by m.

Proof:

Let a≡b(modm). Then there exists an integer c such that cm=a−b. Let now q,q′,r,r′ be those integers with

a=qm+r,0≤r<m

and

b=q′m+r′,0≤r′<m.

It follows that

cm=a−b=m(q−q′)+(r−r′)

which yields m|(r−r′) or m divides (r−r′) and hence r=r′.

Suppose now that r=r′. Then, a−b=m(q−q′), which shows that m|(a−b).

Fundamental Properties

[edit | edit source]

First, if a≡b(modm) and c≡d(modm), we get ac≡bd(modm), and a+c≡b+d(modm).

As a result, if a≡b(modm), then ap≡bp(modm)

Congruence Equations

[edit | edit source]

Residue Systems

[edit | edit source]

Chinese Remainder Theorem

[edit | edit source]

Polynomial Congruences

[edit | edit source]