Chapter 2 built as an ordered
commutative ring, and a Quick check in Section 2.3
showed that it is not a field: has no solution in
. So “” is not available
among the integers. What remains is a relation, “ is a multiple of ”, and the next best
thing to division: dividing with a quotient and a
remainder. Sets, Relations, and Cardinality,
Section 2.2 defined the relation and proved division
with remainder for the school integers. This section
does both again for the integers of Chapter 2, where
every step must come from the ordered-ring axioms and
from the least-element property of .
Throughout,
is the ordered ring of Theorem 2.3.4,
with and (Theorem 2.3.4
(b)), and . Numerals , , and so on, are the natural
numbers of those names, as in Section 2.6; a sum or
product of numerals may be computed in , because the
embedding of Proposition 2.2.3
preserves and
, and a sign
is moved by Proposition 2.3.2
(c), as in .
Divisibility on the constructed integers
The definition of divisibility needs nothing that the
ring lacks. We
restate it, and the definition of a prime, from
Sets, Relations, and Cardinality, Section 2.2,
with now the
ring of Chapter 2.
Divisibility (Sets, Relations, and Cardinality, Definition 2.2.1).
Let .
Then
divides , written , if
there exists with . Then is a
divisor of , and is a
multiple of . We write when does not divide .
Prime (Sets, Relations, and Cardinality, Definition 2.2.2).
An integer is
prime if and the only positive
divisors of are
and . A prime
factor of an integer is a prime with .
Both definitions use only the multiplication of , its order , and the set , and Chapter
2 provides all three. They are the same definitions as
before; what changes is that every fact about them must
now be proved from Chapter 2.
Divisibility is a question about existence: is
some integer
times ?
Some instances. , since . , since . Even holds, since : the
definition asks for some , and here every works. On the other
hand .
That is a statement that no has , and to prove it
we need the theorem on division with remainder
below.
The relation “” is not a fraction. It is a statement, true
or false, about two integers. The expression , for , is a rational
number, and this chapter does not use it to decide
divisibility.
Here are the rules for divisibility that the rest of
the chapter uses. Each is a short consequence of the
ring laws or of the order.
Proposition
3.1.1 (Rules for Divisibility in )
Let .
- (a) , and . If , then .
- (b) If and , then .
- (c) If and , then .
- (d) If , then and .
- (e) If , and , then .
- (f) If , and , then .
- (g) If , then or .
- (h) If , then
exactly one of , lies in .
Idea. Parts (a)–(d) are identities
in the commutative ring : write each
hypothesis as an equation and rearrange. Part (e) is the one that
needs the order. If with , the factor cannot be zero or
negative, so by discreteness it is at least , and multiplying by something at least
cannot make it
smaller. Parts (f) and (g) then follow from (e), and (h)
is (P2) for the positives of .
Proof. We use the ring laws
(F1)–(F7) and (F9) of (Theorem 2.3.1)
without further mention.
(a)
by Proposition 2.3.2
(b) and (F6), so with . Also by (F7), so with ; and , so with . If , then for some , by Proposition 2.3.2
(b).
(b) Let and with . Then by
(F5), so .
(c) Let and . Then by (F5), (F6) and (F9), and . So .
(d) Let . By Proposition 2.3.2
(c), , so ; and , so .
(e) Let . By the converse
part of Proposition 2.3.3,
applied to the ordered ring , the set satisfies (P2), so exactly one of , holds. That set
is by
Theorem 2.3.4
(b).
(f) Let with , and . We show first
that . If
, then by Proposition 2.3.2
(b), against . If , then by Proposition 2.3.5
(c) (multiplying by ), again against . So , and by discreteness (Theorem 2.3.4
(c), with )
. If , then . If , then by Proposition 2.3.5
(a), so by Proposition 2.3.5
(c), that is, (Proposition 2.3.2
(c), (F7) and (F9)), and by Proposition 2.3.5
(a). In both cases .
(g) Let with and . If , then , so by (a). If
, then in the same way.
Otherwise are non-zero, hence positive (Theorem 2.3.4
(b)), and (e) gives and . Since is a total order (Proposition 2.3.5
(i)), it is antisymmetric, and .
(h) Let , say . Then : otherwise ,
against in
(Theorem 2.3.1).
By (h), one of ,
is positive;
call it . Then
, by (d) if
. Since (Proposition 2.3.5
(e)), part (e) gives ; and gives by discreteness. So . If , then ; if , then by Proposition 2.3.2
(a). This proves the proposition.
Part (f) is the antisymmetry of divisibility on , Sets, Relations, and Cardinality, Proposition 2.4.1
of Sets, Relations, and Cardinality, Section
2.4, now proved on for the constructed integers. On
all of it
fails:
and , by
(d), yet .
That is why (f) is stated for , and why (e)
needs :
, but
. (The
hypothesis
is a convenience for the proof: cannot divide , by (a), and if
,
then holds
anyway.)
Quick check. Which hypothesis of
(e) fails for , ,
and is the conclusion true there?
Solution. by (a), and
, but
is not
positive. The conclusion is false. Every integer divides , so no bound of the
form can
hold for ;
that is the reason for the hypothesis .
Division
with remainder
Now the substitute for division. Given and , we
want to write as
a multiple of
plus something small, and we want “small” to make the
answer unique. The obvious attempt subtracts from until what is left lies
in , adding instead when is negative. That is a
process; the theorem replaces it by a least element.
Theorem
3.1.2 (Division with Remainder in )
Let
and .
- (a) There are
unique with
- (b) Moreover , the
integer part of the rational number (Proposition 2.5.5),
so .
The integers
and are the
quotient and the
remainder of on division by .
Idea. Among the integers , , look at the
non-negative ones. If there is at least one, Proposition 2.3.6
hands us the least, . It must be below : otherwise would be a smaller
non-negative one of the same form. Finding a
non-negative
is easy for
(take ) and
needs one inequality for (take ). For uniqueness, two remainders differ by a
multiple of and
yet by less than ,
and (e) of the rules above forbids a positive multiple
of below . Part (b) moves the
inequalities into and divides by .
Proof.
- (a)
Existence. Let We show . If , take : , by (F6), Proposition 2.3.2
(b) and
( and Proposition 2.3.2
(a)). If ,
take : then
by Proposition 2.3.2
(c), (F7) and (F9). Since , discreteness (Theorem 2.3.4
(c)) gives .
If , then
by Proposition 2.3.2
(b). If ,
then by
Proposition 2.3.5
(a), so by (O3); multiplying by reverses the
inequality (Proposition 2.3.5
(d)), so . In every case has an element.
The set is non-empty and has the lower bound , so by Proposition 2.3.6
it has a least element . Write with . Then and .
Suppose .
Then :
if , then
by (F4);
if , then
by Proposition 2.3.5
(a). Also , since for every
(Proposition 2.3.2
(c) and (F7)) and by (F9), so . But (Proposition 2.3.5
(a), since ), so by (O3). This contradicts the choice of as least. Hence .
Uniqueness. Let with , and .
Suppose . Exchanging and changes
neither the hypotheses nor the goal, so we may suppose
. Then
so . Here by Proposition 2.3.5
(a), and ,
so Proposition 3.1.1
(e) gives . But adding to gives (Proposition 2.3.5
(b)), and ;
so , a contradiction. Hence . Then , so , and
since , Proposition 2.3.5
(f) gives , that is, .
- (b) From (a), ; adding
(Proposition 2.3.5
(b)) gives These are inequalities between integers, and
by Theorem 2.5.1
(b) and Proposition 2.4.4
they hold in as
well, with the same sums and products. In , , so (Proposition 2.5.2
(a)). Multiplying by preserves strict
inequalities (Proposition 2.3.5
(c)) and equalities, so That is, , with . By the uniqueness in Proposition 2.5.5,
,
and then . This proves the theorem.
The hypothesis is used four times in (a): to find an element
of when (through ), to see that
, and
in the uniqueness both to apply Proposition 3.1.1
(e) and, as , to cancel from . For
the statement
fails outright: no satisfies . Exercise
B1 handles .
Uniqueness is what turns the theorem into a test for
divisibility: if and only if the remainder of on division by is . Indeed, if
, then is a division
with remainder, and by uniqueness it is the only one;
conversely says . For instance with , so the
remainder is , and .
Part (b) pays a debt of Section 2.5. There, after Proposition 2.5.5,
the integer part was announced
as a quotient; (b) says exactly that, and it gives a
second way to compute and . Exercise C1 turns (b)
around and proves the existence half of (a) from the
integer part.
Quick check. Find the quotient and
the remainder of on division by , and check them
against (b).
Solution. and : , and . For (b), , since and (Theorem 2.5.1
(a)); so .
Warning. “The remainder” means the
with . The
equation is true, but is
not the remainder of on division by ; the remainder is . If negative
“remainders” were allowed, uniqueness would fail at
once: . For negative , the quotient is not
“ with the
fraction dropped”: that would give here, while .
Even and
odd
Recall that an integer is
even if for some , that is, , and odd if for some . These are the
words Logic and Proof, Chapter 1 used, now read
on the constructed . Section 2.6 had
parity for natural numbers from Proposition 1.6.4
(d). With ,
the theorem gives it for every integer, negative ones
included, with one citation.
Corollary
3.1.3 (Even and Odd Integers)
- (a) Every is even or odd,
and not both. More precisely, either
for exactly
one and
is not of the
form , or
for
exactly one and
is not of the form .
- (b) If and is even, then is even.
Idea. Divide by . The remainder lies in
, by
discreteness, and it is unique, so each integer has
exactly one of the two forms. For (b), square the odd
form and read off the remainder.
Proof.
(a) Since , the
theorem with
gives unique with and . Then : if , then , so by discreteness (Theorem 2.3.4
(c)); and if moreover , then by discreteness again, against . If and for some
,
then and
would
be two pairs as in the theorem, and contradicts its
uniqueness. The same uniqueness shows that is the only integer
with .
(b) Suppose is not even. By (a),
with
. Then
by Proposition 2.3.2
(d) and (F5), (F6), (F9), so is odd, and by (a) it
is not even. This proves (b) by contraposition.
Part (b) is Logic and Proof, Theorem 2.1.3
of Logic and Proof, Section 2.1, proved there
from the school facts (E1)–(E3) about the integers. Part
(a) proves (E1) and (E2) for the constructed , and the computation
in (b) is (E3). We compare with that proof and do not
use it. Sets, Relations, and Cardinality,
Section 2.2 proved (E1) and (E2) for the school integers
right after Sets, Relations, and Cardinality, Theorem 2.2.3.
Section 2.6 proved that no rational squares to by a descent on
denominators (Theorem 2.6.1),
a route that needs only the order and the least-element
property of and
adapts to other non-squares. With (b), and with lowest
terms from Section 3.3, the classical parity proof of
Logic and Proof, Chapter 2 can also be run on
the constructed , every step citable;
one of the review exercises at the end of this chapter
does so.
Small
primes
Later sections need to know that a few small integers
are prime in the constructed . Sets, Relations,
and Cardinality, Section 2.2 checked some of these
after Sets, Relations, and Cardinality, Definition 2.2.2,
for the school integers; that check is not a proof about
the ring of Chapter 2, so we redo it here.
The later sections of this chapter cite this
paragraph as “the small-primes remark”. The same
procedure decides, for any given , whether is prime; Section 3.3
shortens it.
Exercises
A. Check your
understanding
Exercise
(A1)
- (a) Find the
quotient and the remainder on division by of , of and of .
- (b) Where is used in the
existence half of Theorem 3.1.2
(a)?
- (c) True or false,
with a reason: .
- (d) True or false,
with a reason: for all , if and , then .
Solution.
(a) , so
.
, since , so . , so . In each case , so by
uniqueness these are the quotient and remainder. Note
, not .
(b) Twice. For
, the
element of is
non-negative because , which comes from , that is, from
and
discreteness. And the contradiction “” needs , that is, .
(c) True: , so witnesses (Proposition 3.1.1
(a)).
(d) False: and (Proposition 3.1.1
(d)), but .
The statement is true for (Proposition 3.1.1
(f)).
B. Practice
Exercise
(B1: Negative divisors)
Let
with .
Prove that there are unique with and .
Solution. Since , by Proposition 2.3.5
(a), so .
Existence. By Theorem 3.1.2
(a) applied to
and , there are
with
and
.
Let . Then by Proposition 2.3.2
(c), so .
Uniqueness. Let with . By Proposition 2.3.2
(c),
and , so are two
divisions of by
. The uniqueness
in Theorem 3.1.2
(a) gives and , hence by Proposition 2.3.2
(a).
Exercise
(B2: Three in a row)
Let .
Prove that exactly one of , , is divisible by
.
Solution. At least one. By
Theorem 3.1.2
(a),
with , and by discreteness, as in the proof of Corollary 3.1.3.
If , then
. If , then . If , then .
At most one. Suppose and with . By
Proposition 3.1.1
(c) (with ,
), , and is positive. By Proposition 3.1.1
(e), , which is false. So no two of the three are
divisible by .
(Equivalently: the remainders of , , on division by
are , and then the other two
of , and
uniqueness of remainders allows only one of them to be
.)
C. Going deeper
Exercise
(C1: Division from the integer part)
Let
and . Prove the existence half of Theorem 3.1.2
(a) directly from Proposition 2.5.5,
without the set :
put and , and show that . Say where
is
used.
Solution. By Proposition 2.5.5,
satisfies in ,
where and in .
Since ,
multiplying by
preserves the strict inequality (Proposition 2.3.5
(c)) and the equality case, so Subtracting (that is, adding , (O3)) gives . Here
is an integer, and by Theorem 2.5.1
(b) the inequalities , proved in , hold in . So with .
The hypothesis is used when multiplying by : for , multiplication
reverses inequalities (Proposition 2.3.5
(d)), and the same would give , so
instead. (This exercise is practice with a result
already proved; nothing later rests on it.)