Division Algorithm

Theorem: Division with Remainder

For any two integers with , there exist integers such that

with

Definition: Quotient

We call the quotient of the division of by .

Definition: Remainder

We call the remainder of the division of by .

NOTATION

We often write in the following way:

Theorem: Finding the Remainder

The remainder is always given by the following formula:

Modular Congruence

Definition: Modular Congruence

Let and let .

We say that and are congruent modulo if is a divisor of :

NOTATION

Modular Arithmetic

Definition: Modular Addition

Let and let .

The addition of and modulo is defined as the remainder upon dividing by :

NOTATION

Definition: Modular Addition

Let and let .

The multiplication of and modulo is defined as the remainder upon dividing by :

NOTATION