When an integer is divided by a second integer, the quotient may or may not be an integer.
Def: If and are integers, divides if there exists an integer such that . This makes a factor of .
If divides , we write . Otherwise, .
Proposition 1: If are integers with and , then .
Proof: Since and , there exist integers with and . Hence, , and .
Proposition 2: If are integers, and if and , then .
Proof: Since and , there are integers such that and . Hence, . Consequently, .
Ex: Since and , Proposition 2 asserts that:
The division theorem
If are integers such that , then there are unique integers such that , with .
To prove this, let’s define a new function.
Def: Let be a real number. The greatest integer in , denoted by , is the largest integer less than or equal to .
Ex:
Proposition 3: If is a real number, then .
We can now prove the division algorithm. We give explicit formulae for the quotient and remainder in terms of the greatest integer function.
Proof: Let and . Clearly, . To show that the remainder satisfies the appropriate inequality, note Proposition 3:
Multiply all sides by .
Multiply all sides by .
Add .
To show that and are relatively unique, assume that we have two equations: and , with . By subtracting the second of these from the first, we find:
Hence:
This tells us that divides . Since , . This shows that can divide only if , so if . . This shows that and are unique.
Ex: Let . Then with , where and .