1.5: The Division Algorithm
- Last updated
-
Jan 22, 2022
-
Save as PDF
-
The goal of this chapter is to introduce and prove the following important result.
Theorem : The Division Algorithm
If and are integers and then there exist unique integers and satisfying the two conditions:
In this situation is called the quotient and is called the remainder when is divided by . We sometimes refer to as the dividend and as the divisor.
(Some care must be taken with this last term, in light of how the divisor of an integer was defined in Section 1.4. It is correct both to say that 2 is not a divisor of 7, since , though 2 is the divisor when 7 is divided by 2, yielding . Context should make it clear which meaning is intended.)
Note that there are two parts to the Division Algorithm’s statement. One part is the existence of integers and satisfying , and the second part is the uniqueness of the integers and satisfying .
Proof
We first prove the existence of and .
If divides then for some integer , and we may write and .
Suppose instead that does not divide , and consider the collection of integers. Let be the set of all these numbers that are non-negative. In symbols,
The set is non-empty, since by the Archimedean Property there exists a natural number such that and so and hence . Now by the Well-Ordering Principle contains a smallest element; call it . By our definition of , this means that for some particular integer we have . Thus , and it only remains to show that .
All the elements of are positive, so it is clear that . If it is not true that , then and so ; thus either is an element of or . Since was defined as the smallest element of , it cannot be true that is in . However, if , then , which contradicts our assumption that does not divide . We are forced to conclude that .
We still have to prove that and are uniquely determined. To do this we suppose that and for integers . We must show that and . If without loss of generality we can assume that . Subtracting these two equations we obtain This implies that This implies that . By Theorem 1.4.1(10) this implies that . But since we have . This contradicts . So we must conclude that . Now from we have . Since this tells us that , that is, . This completes the proof of the uniqueness of and in .
In number theory we usually prefer to work with integers, but if we are willing to consider division of real numbers, it can be shown that when is divided by , the quotient and remainder satisfy (see Exercise ).
We now turn to some familiar concepts.
Definition
An integer is even if for some , and is odd if for some .
Definition
By the parity of an integer we mean whether it is even or odd.
Sometimes a problem in number theory can be solved by dividing the integers into various classes depending on their remainders when divided by some number . For example, this is helpful in solving Exercises and at the end of this chapter.
Definition
For define as the value of in the pair satisfying the expressions and .
In other words, is the remainder given by the Division Algorithm when is divided by .
For example since and since .
Note that some calculators and most programming languages have a function often denoted by or whose value is what we have just defined as . When this is the case the values and in the Division Algorithm for given and are given by If also the floor function is available we have
Exercises
Exercise
Find the values of and in the Division Algorithm for the following values of and :
- Let and .
- Let and .
Exercise
Given integers and , let and be the quotient and remainder when is divided by , so . Carefully prove that
Exercise
Using the Division Algorithm, prove that every integer is either even or odd, but never both.
Exercise
Prove and always have the same parity. That is, is even if and only if is even.
Exercise
Show that for all integers the number always has 3 as a factor.
(Hint: by the Division Algorithm, every integer falls into one of three cases: , , . Prove that is divisible by 3 for each of these cases separately.)
Exercise
Show that the product of any three consecutive integers has 6 as a factor. (How many cases should you use here?)
Exercise
Prove the following:
- If and , then .
- If and , then .
Exercise
Calculate the following:
Exercise
- Use the Division Algorithm to prove the following similar theorem: If then for any there exists unique integers and such that
- Find integers and such that and for
- .