Mathematical Reasoning and Discrete Math

Chapter 1: A Case Study in Number Theory

The Importance of Proof

This chapter is a case study in elementary number theory. As you read this case study, of course, one intent is for you to learn number theory.

But it is just one of the intended goals of this chapter. In fact it is not even the primary goal. You should pay more attention to the use of logic in proofs.

Do not underestimate the importance of proofs! Proof is fundamental to how all of mathematics gets done. Many students are deceived by their earlier education, and think that mathematics is about numbers, calculation, following steps. But those are the basic technical skills which get you up to the point where you could start doing math. Think of that like exercising so that you have enough strength to play football, or like playing scales so that you have enough knolwedge of the instrument to play real music.

The real math is in the proofs.

Proofs are the primary way that mathematicians talk about their subject. This street of communication goes in two ways: If you want your work in math to be read, understood, and valued by any other person in the mathematical community, then you're going to need to write it in proofs.

But also if you even want to read what mathematicians have discovered, you're going to need to be able to read proofs as well. Because again, the real math is in the proofs.

There's an interesting analogy to cooking and eating. As you learn to cook good food, you actually get better at noticing the food that you eat. You wouldn't have thought that tasting food is a skill you can build, but it is! And the two skills keep reinforcing each other: The more you develop the skill of cooking, the greater your skill at tasting; and the more you develop the skill of tassting, the greater your skill at cooking.

The same is true of consuming and producing proofs. You cannot adequately consume proofs, and fully, deeply understand them—without also developing the skill of producing them. For this reason I strongly urge you not to read this text passively. As the saying goes,

A mathematician reads with a pencil in her hand.

You should be reading and exercising by writing proofs. And then reading, and then exercising, and so on.

Divisibility

A fundamental interest in number theory is to understand how a natural number can be written as a product of smaller numbers. This is the same as the question of "which numbers divide a given number".

For example, 4 can be written as the product 2⋅22\cdot 2. In fact, technically, it can also be written as 1⋅41\cdot 4 or 4⋅14\cdot 1.

Equivalently this means that the divisors of 4 are 1, 2, and 4.

Definition

If n is an integer, and a,ba,b some two integers such that n=abn=ab, then we say any of the following equivalent statements:

  • a and b are factors of n.
  • a and b divide n.
  • n is a multiple of a, and is a multiple of b.

When a divides n, we write a∣na|n. Note that, if a∣na|n then it follows immediately by definition that there exists an integer b such that n=abn=ab.

For each integer n, we will say that the trivial divisors or trivial factors of n are: 1, -1, n,n, and −n-n.

For example, 5 and 7 are factors of 700. The former is true because 700=5⋅140700 = 5\cdot 140 (in the definition we use a=5a=5 and b=140b=140). The latter is true because 700=7⋅100700 = 7\cdot 100.

Equivalently, 5 and 7 divide 700. Equivalently, 700 is a multiple of 5 and 7.

Therefore 5∣7005|700 and 7∣7007|700.

The trivial divisors of 700 are 1, -1, 700, and -700.

The trivial divisors are called "trivial" because any number is divisible by its trivial divisors. In that sense, they are not "interesting".

Exercise

Find all of the divisors of -6, and identify which of them are the trivial divisors.

Also find all ways of writing -6 as a product of two integers. For example, one way to write -6 as a product of two integers is 1⋅−61\cdot -6, and another is −1⋅6-1\cdot 6.

Solution

Its divisors are 1, 2, 3, 6, -1, -2, -3, -6. The trivial divisors are 1, -1, 6, and -6.

The following lists all ways of writing -6 as a product of two integers.

1⋅−6,2⋅−3,−1⋅6,−2⋅31\cdot -6, 2\cdot -3, -1\cdot 6, -2\cdot 3

−6⋅1,−3⋅2,6⋅−1,3⋅−2-6\cdot 1, -3\cdot 2, 6\cdot -1, 3\cdot -2.

We cannot talk about a number with no divisors, since there are always the trivial divisors. Instead we define the notion of a number without any "nontrivial divisors", which we call a prime number.

For example, 2 is greater than 1 and has only the factorizations 2⋅12\cdot 1 and 1⋅21\cdot 2. Since 1 and 2 are trivial divisors of 2, the fact that 2 has no other factorization means that 2 is prime. Likewise 3 is prime.

But 4 is composite because 4=2⋅24=2\cdot 2, and 2 is not a trivial divisor of 4.

For simplicity we will restrict our definition of prime numbers to those larger than 1. Doing otherwise would cause difficulties later on.

Definition

For each integer n>1n > 1 we say that n is prime if all of its divisors are trivial. If n is not prime, we call it composite.

The prime numbers are the “atoms” in the universe of number theory. They are the fundamental and indivisible objects, which assemble to make all the other objects. This helps to suggest why they are interesting to mathematicians.

Exercise

Find the first 10 primes.

Solution

2, 3, 5, 7, 11, 13, 17, 19, 23, 29.

Let us see a first proof of a theorem.

Theorem

Let a and n be any two natural numbers.

a∣na|n if and only if na\frac n a is a natural number.

Note that the claim is an "if and only if" statement. This means two things: "If a∣na|n then na\frac n a is a natural number" and "If na\frac n a is a natural number then a∣na|n".

Proof

Let a and n be natural numbers.

Proof

If a∣na|n then na\frac n a is a natural number.

Suppose that a divides n. Then by definition, there is a natural number b such that n=abn=ab.

Then na=b\frac n a = b, and since we already noted that b is a natural number, then therefore na\frac n a is a natural number.

Proof

If na\frac n a is a natural number, then a∣na|n.

Suppose that na\frac n a is a natural number, and let’s call that number b. So na=b\frac n a = b.

Then n=abn = ab and therefore, by definition, a∣na|n.

□\Box

Note

Why do we have to prove such obviously true statements?

Although the theorem is obvious, we will later see very advanced theorems which are not obvious.

In order to prove advanced theorems, we will need to use sophisticated techniques of logic. It is better to see those techniques of logic employed now, while things are easy. That way, when we get to the hard ones, you will already have some facility with the logic.

Theorem

Every integer is divisible by 1 and itself.

Proof

Let n be any integer.

Then n=1⋅nn = 1\cdot n.

So n∣nn|n.

It also follows from n=1⋅nn=1\cdot n that 1∣n1|n.

□\Box

The proof above is extremely simple, yet demonstrates an important point: If a proof is to be rigorous, it must refer to the exact and literal definitions of the terms involved.

To prove that n divides itself, it's not enough to just say that it's "obvious". You must use the definition that a divides b if there exists an integer k such that ak=bak = b.

We applied this principle in the proof above, by showing that 1⋅n=n1\cdot n = n. When aligning a with 1 and b with n, the definition implies that 1∣n1|n. When aligning a with n and aligning b with n, the definition implies that n∣nn|n.

Exercise

Suppose that a,b,ca,b,c are natural numbers such that a∣ba|b and b∣cb|c.

Prove that therefore a∣ca|c.

Solution

Suppose that a,b,ca,b,c are natural numbers such that a∣ba|b and b∣cb|c. Since a∣ba|b then by definition there is an integer, x, such that b=axb= ax. Since b∣cb|c there is some integer, y, such that c=byc=by.

By substitution of one equation into the other, we obtain

c=(ax)y=a(xy)\begin{aligned} c &= (ax)y\\ &= a(xy) \end{aligned}

Since x and y are natural numbers, therefore xyxy is a natural number.

We have now shown that a and xy are factors of c. In particular, this means that a∣ca|c.

□\Box

Exercise

Suppose that a,b,ca,b,c are natural numbers such that ab∣cab | c.

Prove that a∣ca | c.

Solution

Suppose that a,b,ca,b,c are natural numbers such that ab∣cab|c. Then by definition there is a natural number x such that c=(ab)xc=(ab)x.

Then c=a(bx)c = a(bx). Since b and x are natural numbers therefore bxbx is a natural number, and therefore by definition a∣ca|c.

□\Box

Exercise

Suppose that a and b are natural numbers such that a∣ba|b and b∣ab|a.

Prove that a=ba=b.

Solution

Since a∣ba\mid b, there is a natural number mm such that b=amb=am. Since b∣ab\mid a, there is a natural number nn such that a=bna=bn.

Substituting b=amb=am into a=bna=bn gives a=amna=amn. Since aa is a natural number, a>0a>0, so mn=1mn=1. The only natural numbers whose product is 1 are 1 and 1. Thus m=n=1m=n=1, and therefore a=ba=b.

□\Box

Exercise

Suppose that a,b,ca,b,c are natural numbers such that a∣ba|b and a∣ca|c.

Prove that a∣b+ca|b+c.

Solution

Since a∣ba\mid b, there is a natural number mm such that b=amb=am. Since a∣ca\mid c, there is a natural number nn such that c=anc=an.

Therefore b+c=am+an=a(m+n)b+c=am+an=a(m+n). Since m+nm+n is a natural number, it follows from the definition of divisibility that a∣b+ca\mid b+c.

□\Box

Quotient and Remainder

Definition

Let x be an integer and d a positive integer. Let q and r be the unique integers satisfying

x=qd+r,0≤r<dx = qd+r, \quad 0\le r<d

We call q the quotient of xd\frac x d and r the remainder of xd\frac x d. We also call r the modulus of xd\frac x d.

We write

q=x div dr=x mod d\begin{aligned} q &= x \text{ div } d\\ r &= x \text{ mod } d \end{aligned}

The above definition assumes, for any given integers x and d>0d > 0, that the quotient and remainder

  • exist, and
  • are unique.

For example, if x=16x=16 and d=6d=6 then there is a quotient-remainder pair. Namely, q=2q=2 and r=4r=4.

Moreover, there is no other quotient-remainder pair. That is to say, 2 and 4 are the only numbers which satisfy

16=6q+r,0≤r<616 = 6q+r, \quad 0\le r<6

But so far we just assume that existence and uniqueness are true.

We shouldn’t let such assumptions go unproven.

Theorem

Let x be an integer and d>0d >0 an integer.

Then there exist unique integers q and r satisfying

x=qd+r,0≤r<dx = qd+r, \quad 0\le r< d

Note that, to prove this theorem we must:

  • Find integers q and r satisfying
    • x=qd+rx=qd+r
    • 0≤r0\le r
    • r<dr < d
  • Show that no other integers also have these properties.

In the proof below we will proceed in the following order.

  1. Find r.
  2. Find q.
  3. Prove that r≥0r\ge 0.
  4. Prove that r<dr<d.
  5. Prove that x=qd+rx=qd+r.
  6. Prove uniqueness. That means, prove that for any integers q2,r2q_2,r_2 satisfying x=q2d+r2x=q_2d+r_2 and also 0≤r2<d0\le r_2<d, we must have that q=q2q=q_2 and r=r2r=r_2.

Proof

Finding r.

Let

S={x−qd:q∈Z,x−qd≥0}S = \{x-qd: q\in\Bbb Z, x-qd \ge 0\}

S explained.

If the definition of S is confusing, let’s see a specific example.

Suppose for instance that x=17x=17 and d=4d=4.

Then we find the choices of q such that x−qdx-qd is nonnegative. That means we consider every nonnegative 17−4q17-4q.

Let's start by trying out q=1,2,3,4q=1,2,3,4.

17−4(1)=1317−4(2)=917−4(3)=517−4(4)=1\begin{aligned} 17-4(1) &= 13\\ 17-4(2) &= 9\\ 17-4(3) &= 5\\ 17-4(4) &= 1 \end{aligned}

Of course with q=0,−1,−2,…q=0,-1,-2,\dots we would see even more nonnegative values of x−qdx-qd.

Note that, regardless of the value of x and d, it is always possible to choose q such that x−qdx-qd is nonnegative. We will use this fact below, but we will also prove it after we are done with the current proof.

S has at least one element (as explained in the note above).

Because S is a nonempty set of nonnegative numbers, then min⁡(S)\min(S) exists.

Define

r=min⁡(S)r = \min(S)

Finding q.

Since r∈Sr\in S then

  • there is a q∈Zq\in\Bbb Z such that r=x−qdr=x-qd
  • x−qd≥0x-qd \ge 0
Showing r≥0r\ge 0.

Note that this means r=x−qd≥0r=x-qd\ge 0, which shows that r≥0r\ge 0.

Showing r<dr<d.
Note

If r≥dr \ge d then r is not a lower bound of S.

Suppose that r≥dr\ge d.

Then r−d≥0r-d\ge 0

From r=x−qdr=x-qd we have

r−d=x−qd−d=x−(q+1)d\begin{aligned} r-d &= x-qd-d \\ &= x-(q+1)d \end{aligned}

Since x−(q+1)d≥0x-(q+1)d\ge 0 then therefore x−(q+1)d∈Sx-(q+1)d \in S.

But also

x−qd>x−(q+1)dx-qd > x-(q+1)d

This is because q<q+1q<q+1 so qd<(q+1)dqd < (q+1)d, and so −qd>−(q+1)d-qd > -(q+1)d, and so x−qd>x−(q+1)dx-qd > x-(q+1)d.

But this now show that there is an element in S which is smaller than r=x−qdr=x-qd. Therefore r is not a lower bound of S.

Notice that the principle above equivalently shows that, if r is a lower bound of S then r<dr < d.

But because r=min⁡Sr=\min S by definition, then r is a lower bound of S.

Therefore r<dr < d.

Showing x=qd+rx=qd+r.

From the fact that r=x−qdr=x-qd we have that x=qd+rx=qd+r.

Showing uniqueness.

Suppose that there are integers q2,r2q_2,r_2 satisfying x=q2d+r2x=q_2d+r_2 and 0≤r2<d0\le r_2<d.

Note that therefore qd+r=q2d+r2qd+r=q_2d+r_2 and so r−r2=(q2−q)dr-r_2 = (q_2-q)d.

This proves that r−r2r-r_2 is a multiple of d.

But because 0≤r<d0\le r<d and 0≤r2<d0\le r_2 < d then we must have that −d<r−r2<d-d < r-r_2 < d.

The only multiple of d which is greater than -d and less than d is just the multiple 0.

Therefore r−r2=0r-r_2=0 and so r=r2r=r_2.

Because of this, together with qd+r=q2d+r2qd+r=q_2d+r_2 we can now infer that qd=q2dqd=q_2d. And since d>0d>0 we have q=q2q=q_2.

□\Box

The proof relied on the following principle, which we should prove before moving on to the next topic.

Theorem

Let x be any integer, and d a positive integer.

Then x+∣x∣≥0x+|x| \ge 0 and therefore x+∣x∣d≥0x+|x|d \ge 0.

Moreover, therefore a choice of integer q always exists such that x−qdx-qd is positive.

Notice that the following proof employs a technique called "proof by cases". It breaks the proof up into two possibilties: If x≥0x\ge 0 then we will show the claim holds, and if x<0x < 0 then we will again show that the claim holds.

Proof

Let x be an integer.

If x≥0x\ge 0 then ∣x∣=x|x|=x and therefore x+∣x∣=2x≥0x+|x| = 2x \ge 0.

If x<0x < 0 then ∣x∣=−x|x|=-x and therefore x+∣x∣=0≥0x+|x| = 0 \ge 0.

Hence, in every possible case, we always have x+∣x∣≥0x+|x| \ge 0.

If d is a positive integer, then therefore ∣x∣d≥∣x∣|x|d \ge |x| which implies x+∣x∣d≥x+∣x∣x+|x|d \ge x+|x|.

Now we can prove that there is always a choice of integer q such that x−qdx-qd is positive. Set q=−∣x∣−1q = -|x|-1. Then

x−qd=x−(−∣x∣−1)d=x+∣x∣d+d \begin{aligned} x-qd &= x-(-|x|-1)d \\ &= x+|x|d + d \end{aligned}

Since we have already show x+∣x∣d≥0x+|x|d \ge 0 it follows that x+∣x∣d+d>0x+|x|d + d > 0, using the fact that d>0d > 0.

□\Box

Exercise

Let x=10x=10 and d=3d=3.

(Part 1.)

Find the quotient and remainder of xd\frac x d.

(Part 2.)

Write down the three smallest elements of

S={x−qd:q∈Z, x−qd≥0}S = \{x-qd:q\in\Bbb Z, \ x-qd\ge 0\}

Repeat the exercise with x=1x=1 and d=2d=2.

Exercise

Find the quotient and remainder for x=−10x=-10 and d=3d=3.

Exercise

Let x∈Zx\in\Bbb Z and d∈Z>0d\in\Bbb Z^{>0}.

Show that d∣xd|x if and only if xmod  d=0x\mod d = 0.

Definition

An integer, n, is called even if nmod  2=0n\mod 2 = 0. If nmod  2=1n\mod 2 = 1 then n is called odd.

Theorem

For any integer, n, we have that n is either even or odd, but not both.

Proof

Let n=2q+rn=2q+r be the quotient-remainder decomposition of n/2n/2.

By definition, q=n div 2q=n\text{ div } 2 and r=nmod  2r = n\mod 2.

We know, from the quotient-remainder theorem above, that q and r are integers, and 0≤r<20\le r<2.

Therefore the only integers that r could be are 0 or 1.

Case 1: r=0r=0.

Suppose that r=0r=0. Then nmod  2=0n\mod 2 = 0 and therefore n is even.

Because q,rq,r are unique, we cannot also have r=1r=1, hence nmod  2≠1n\mod 2 \ne 1. Therefore n is not odd.

So n is even or odd, but not both.

Case 2: r=1r=1.

Suppose that r=1r=1. Then nmod  2=1n\mod 2=1 and therefore n is odd.

Because of uniqueness, nmod  2≠0n\mod 2\ne 0 and therefore n is not even.

So n is even or odd, but not both.

The only cases are r=0r=0 and r=1r=1. In both cases, the theorem is true.

Therefore the theorem is always true.

□\Box

Theorem

The product of an even and odd integer is even.

Proof

Let m be an even integer, and n an odd integer. Then mmod  2=0m\mod 2=0 and nmod  2=1n\mod 2=1.

By definition of the modulus, there is an integer q1q_1 such that m=2q1+0m=2q_1+0, and an integer q2q_2 such that n=2q2+1n=2q_2+1.

Then their product is

mn=(2q1)(2q2+1)=2(2q1q2+q1)\begin{aligned} mn &= (2q_1)(2q_2+1) \\ &= 2(2q_1q_2+q_1) \end{aligned}

Define k=2q1q2+q1k=2q_1q_2+q_1. Because k is a product and sum of integers, therefore k is an integer.

By definition, therefore, mn=2kmn=2k shows that mnmod  2=0mn\mod 2 = 0 and therefore mn is even.

□\Box

Exercise

Prove that the product of two even integers is even.

Prove that the product of two odd integers is odd.

Prove that the sum of two even integers is even, the sum of an even and odd is odd, and the sum of two odds is even.

Greatest Common Divisor

Suppose that you wish to simplify the fraction

1218\frac{12}{18}

One can do it by eliminating a factor of 2, so that the fraction becomes

69\frac{6}9

One could then notice a shared factor of 3 and cancel this as well, resulting in

23\frac 2 3

We could have noticed right at the beginning that each number shared a factor of 6, and that this was the greatest common factor for the two numbers. If we had seen that in the beginning we could have done everything in one step, by dividing by 6.


The above demonstrates just one use of the idea of the following definition.

Definition

Let a,b∈Za,b\in\Bbb Z. For any integer d∈Zd\in\Bbb Z we say that d is a common divisor of a and b, if both d∣ad|a and d∣bd|b.

If a and b are not both zero, then we say that an integer d∈Nd\in\Bbb N is the greatest common divisor of a and b, if

d=max⁡{e∈N:e is a common divisor of a and b}d = \max\{e\in\Bbb N:e\text{ is a common divisor of $a$ and $b$}\}

When d is the greatest common divisor of a and b, we write d=gcd⁡(a,b)d=\gcd(a,b).

If gcd(a,b)=1\text{gcd}(a,b) = 1 then we say that a and b are coprime.

Exercise

Explain why, if a and b are not both zero, then the set of their common divisors is bounded above, and therefore must have a maximum.

Exercise

Find gcd(6,6) and gcd(6,7) and gcd(6,8) and gcd(6,9) and gcd(6,12).

Exercise

Let a,b∈Za,b\in\Bbb Z and assume that not both are zero. Let d=gcd⁡(a,b)d=\gcd(a,b).

Prove that 2d2d is a common divisor of 2a2a and 2b2b.

Try to prove that 2d2d is the greatest common divisor of 2a2a and 2b2b, but do not break your back trying to do this. You will probably get stuck, since this proof is surprisingly hard.

In order to prove that 2d=gcd⁡(2a,2b)2d=\gcd(2a,2b), you would have to show that, if e is any common divisor of 2a2a and 2b2b, then 2d≥e2d\ge e.

Think about proving this, and realize how hard it is to come up with a rigorous proof, using only the theorems that we’ve developed so far in the course. (You can't use other common-knowledge facts about divisors.)

But after some of the other theorems in this chapter, we will actually be able to prove that 2d=gcd⁡(2a,2b)2d = \gcd(2a,2b) quite easily.

Exercise

Identify which of the following pairs are coprime.

  • a=2,b=3a=2, b=3
  • a=−1,b=1a=-1, b=1
  • a=36,b=15a=36, b=15
  • a=36,b=0a=36, b=0

Integer Combinations

Definition

For any x,y∈Zx,y\in\Bbb Z, an expression ax+byax+by, where a,b∈Za,b\in\Bbb Z, is called an integer combination of x and y.

The set of all integer combinations of x and y is

{ax+by:a,b∈Z}\{ax+by:a,b\in\Bbb Z\}

For example, set x=2,y=4x=2, y=4. Then

(3)2+(−2)4=−2(3)2+(-2)4 = -2

is an integer combination of x and y.

Another integer combination of them is

(−2)2+(−1)4=−8(-2)2 + (-1)4 = -8

Therefore −2-2 and −8-8 are in the set of all integer combinations of 2 and 4.

Theorem

Let x,y∈Zx,y\in\Bbb Z and not both of them equal to zero.

Then there exists an integer combination of x and y, which is equal to gcd⁡(x,y)\gcd(x,y).

Proof

Let x,y∈Zx,y\in\Bbb Z, not both equal to zero.

Define the set

L={ax+by:a,b∈Z,ax+by>0}L=\{ax+by:a,b\in\Bbb Z, ax+by>0\}

Note

LL is a nonempty set of integers bounded below.

Exercise

Prove that L≠∅L\ne \emptyset, that it is bounded below, and is a set of integers.

Find a and b.

Define

d=min⁡L=ax+by\begin{aligned} d&=\min L\\ &= ax+by\\ \end{aligned}

Show that d is a common divisor.

Let the quotient-remainder decomposition of xd\frac xd be

x=qd+r,0≤r<dx=qd+r, \quad 0\le r<d

Then

x=q(ax+by)+r\begin{aligned} x &= q(ax+by)+r \end{aligned}

which implies

r=(1−aq)x+(−bq)yr = (1-aq)x + (-bq)y

Now r is a nonnegative linear combination of x and y.

Recall that d is the minimum positive linear combination of x and y, and therefore r=0r=0 or d≤rd\le r.

But since we already have r<dr < d then we must have r=0r=0.

Therefore d∣xd|x.

Exercise

Show that d∣yd|y. The proof is a rehearsal of the proof that d∣xd|x, but mutatis mutandis.

Note

Note: I am fond of using the phrase “mutatis mutandis” in proofs. It means “With the necessary changes having been made”.

I use this phrase to indicate that a part of the proof is very similar to the previous part, but with minor rearrangements or substitutions.

Note

Show that d is the greatest common divisor.

Suppose that e∈Ze\in\Bbb Z is a common divisor of x and y.

Then e∣ax+by=de | ax+by = d and therefore e≤de\le d.

Hence d is a common divisor, and an upper bound on the set of common divisors. Hence it is the maximum element, in the set of common divisors.

Therefore d=gcd⁡(x,y)d = \gcd(x,y).

□\Box

Exercise

Find gcd⁡(2,3)\gcd(2,3).

Then find a and b such that a(2)+b(3)=1a(2)+b(3)=1.

Now find another pair of a and b such that a(2)+b(3)=1a(2)+b(3)=1.

Now find a and b such that a(6)+b(100)=2a(6)+b(100) = 2.

The lesson.

Given x and y you have a theorem guaranteeing the existence of a and b such that

ax+by=gcd⁡(x,y)ax+by=\gcd(x,y)

But just because you have a theorem doesn’t mean you have an algorithm to efficiently find a and b. We will see an algorithm later.

Exercise

Explain why it is impossible to find integers a and b such that

6a+9b=16a + 9b = 1

Exercise

Let x,y∈Zx,y\in\Bbb Z and not both zero. Let d=gcd⁡(x,y)d=\gcd(x,y).

Show that 2d=(2x,2y)2d = (2x,2y). Hint: Apply the integer combination theorem to d=(x,y)d=(x,y), and multiply by 2. Then argue that any common divisor of 2x2x and 2y2y must divide 2d2d.

The lesson.

We couldn’t do this before we had the integer combination theorem, but we can do it now. Hence the integer combination theorem is valuable.

Prime Numbers

Exercise

Find integers a,b,c≥2a,b,c\ge 2 such that a∣bca | bc but also a∤  ba\not | \ \ b and a∤  ca\not| \ \ c.

Hint: If you read the statement of the next theorem, it suggests that you should not choose a to be a prime number.

The following is a fundamental fact about prime numbers, which deeply characterizes how they behave.

Theorem

Let p be a prime and a,b∈Za,b\in\Bbb Z such that p∣abp | ab.

Then either p∣ap | a or p∣bp|b.

The following proof uses a particular way of proving an “or” statement: In order to prove p∣ap|a or p∣bp|b, we prove that if p∤  ap \not| \ \ a then p∣bp|b.

We will study logical patterns like this one in the next chapter.

Proof

Suppose that p is prime and a,b∈Za,b\in\Bbb Z such that p∣abp|ab.

Suppose that p∤  ap\not| \ \ a.

Since p is prime, its only positive divisors are 1 and p. Therefore gcd⁡(p,a)\gcd(p,a) is 1 or p.

But since p∤  ap\not| \ \ a then gcd⁡(p,a)=1\gcd(p,a) = 1.

By the integer combination theorem, there are x,y∈Zx,y\in\Bbb Z such that

xp+ya=1xp+ya = 1

Multiplying throughout by b,

xpb+yab=bxpb + yab = b

Now p∣xpbp|xpb because p∣pp|p.

Also p∣yabp|yab because p∣abp|ab.

Therefore p divides the left-hand side, xpb+yabxpb+yab. But since this equals the right-hand side, b, we must have that that p∣bp|b.

□\Box