The division algorithm is one of the basic structural facts about the integers. It says that any integer can be divided by a positive integer with a unique quotient and remainder.
Statement of the Algorithm
The division algorithm is one of the basic structural facts about the integers. It says that any integer can be divided by a positive integer with a unique quotient and remainder.
Let and let . Then there exist unique integers and such that
where
The integer is called the quotient, and is called the remainder.
For example, if
then
Thus the quotient is , and the remainder is .
Meaning of the Remainder
The remainder measures the part of left after subtracting the largest suitable multiple of .
For instance,
means that is the largest multiple of not exceeding , and the remaining part is .
The condition
is essential. It ensures that the remainder is chosen from exactly one of the possibilities
Without this condition, many decompositions would be possible. For example,
but also
Only the first has a remainder between and .
Divisibility as Zero Remainder
The division algorithm connects division with divisibility.
For integers and positive ,
if and only if the remainder on division of by is .
Indeed, if , then
for some integer , so
Conversely, if
then
and therefore
Thus divisibility is exact division, while the division algorithm describes the general case.
Examples
Dividing by , we obtain
Thus
Dividing by , we get
Dividing by , we get
The zero remainder shows that
Negative dividends are also allowed. For example, dividing by , we require
The correct expression is
Thus
Although
this expression does not satisfy the required condition because the remainder is negative.
Existence
We sketch why the quotient and remainder must exist.
Let and . Consider the set
This set contains all nonnegative integers obtained by subtracting multiples of from .
The set is nonempty. By taking sufficiently negative, the number becomes positive.
By the well-ordering principle, has a least element. Call it . Then
for some integer , so
It remains to show that
If , then
But
so also belongs to . This contradicts the minimality of . Therefore
Uniqueness
Suppose there are two decompositions:
and
where
Subtracting the two equations gives
Thus
But since and both lie between and , we have
The only multiple of in this range is . Hence
So
Then
which gives
Therefore the quotient and remainder are unique.
Division into Residue Classes
The possible remainders modulo are
Every integer belongs to exactly one of these remainder classes.
For example, modulo , every integer has one of the remainders
Thus the division algorithm partitions the integers into five classes:
This idea is the foundation of congruence arithmetic.
Role in Number Theory
The division algorithm is the basis of many central tools in number theory.
It underlies the Euclidean algorithm, which computes greatest common divisors. It defines remainders, which lead to congruences and modular arithmetic. It also provides the structure needed for proofs involving minimal counterexamples and descent.
Although the statement is elementary, its consequences are extensive. Much of elementary number theory begins with the simple fact that every integer can be written uniquely as