Number Theory/Congruences

From testwiki
Jump to navigation Jump to search

Notation and introduction

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

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

Lemma

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

Proof:

Let ab(modm). Then there exists an integer c such that cm=ab. Let now q,q,r,r be those integers with

a=qm+r,0r<m

and

b=qm+r,0r<m.

It follows that

cm=ab=m(qq)+(rr)

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

Suppose now that r=r. Then, ab=m(qq), which shows that m|(ab).

Fundamental Properties

First, if ab(modm) and cd(modm), we get acbd(modm), and a+cb+d(modm).

As a result, if ab(modm), then apbp(modm)

Congruence Equations

Residue Systems

Chinese Remainder Theorem

Polynomial Congruences

Template:BookCat