Numbers and Proofs
Numbers and Proofs
Chapter 4
S. T. Woldeamanuel
BITS College
An integer n is called even if, and only if, there exists an integer k
such that n = 2k. An integer n is called odd if, and only if, it is not
even.
Remark
An integer n is called odd if, and only if, there exists an integer k
such that n = 2k + 1.
The property of an integer as being either odd or even is known as its
parity.
∃k ∈ Z, n = 2k + 1 (1)
∃l ∈ Z, m = 2l (2)
By (1) and (2), we have that n + m = 2k + 1 + 2l = 2(k + l) + 1.
Set k + l = r . r ∈ Z. So, n + m = 2r + 1, showing that n + m is
odd.
Definition
Let n, d ∈ Z and d 6= 0 . Then, we say or denote any one of the
following: d divides n,
n is divided by d,
d|n,
d is a divisor (or factor) of n,
n is a multiple of d or
n ≡ 0( mod d) if, and only if, ∃k ∈ Z[n = dk].
We sometimes call k the quotient of the division of n by d.
If d does not divide n, we denote that by d - n
Proof.
a|b ⇒ ∃r ∈ Z such that b = ra
a|c ⇒ ∃s ∈ Z such that c = sa
Hence, we have that b + c = ar + as = a(r + s).
So, a|(b + c).
Example
Show that if a prime number p divides an integer a, it cannot
possibly divide a + 1.
Proof.
Suppose on the contrary p|(a + 1).
Then, this means that ∃r ∈ Z such that a + 1 = rp.
We already know that p|a which means that ∃s ∈ Z such that
a = sp.
But then, a + 1 = rp gives ps = a = rp − 1 and that gives us p|1
which is a contradiction.
Therefore, p - (a + 1).
Proof.
Suppose n is composite. Then r , s such that 1 < r < n, 1 < s < n
and n = rs.√ √
Claim s ≤ n or r ≤ n. √ √
Suppose not! Then s > n and r > n, which leads to the
contradiction n > n.√
So WLOG, let s ≤ n. Now if s is prime we are done.
Otherwise, by the previous result s has one prime
√ divisor, say p.
But, then p|s and hence p|n. Not that p ≤ n.
Proof.
Assume that the primes are finite. Then, we can list them in
ascending order: p1 , p2 , · · · , pn .
Consider the number N = p1 p2 · · · pn + 1. Clearly, N is bigger than
any pi . We have two cases:
N is prime. Contradiction, since N is bigger than any prime. N is
composite. This means that N has at least one factor q > 1.
Let’s take the smallest factor of N, and call it qmin . Then, this
number is prime (why?)
Since qmin is prime, it divides p1 p2 · · · pn . By the previous example,
this means that it cannot possibly divide N = p1 p2 · · · pn + 1.
Contradiction, since we assumed that qmin is a factor of N.
Therefore, the primes are not finite.
S. T. Woldeamanuel (BITS College) Math 161 2023 21 / 25
Proofs by contrapositive
Example
Show that for any n, if n2 is even then n is even
Proof.
Prove the contrapositive.
√
Prove that 2 is irrational
Proof.
√
Let’s assume BY WAY OF CONTRADICTION that 2 is rational.
√ a
So 2 = , a, b ∈ Z, b 6= 0 and GCD(a, b) = 1.
b
So, a 2 = 2b 2 . which gives us 2|a. Hence there exists k ∈ Z, such
that a = 2k.
But then a 2 = 4k 2 = 2b 2 which gives us 2|b 2 . From this we get 2|b.
So both a and b are both even, and have common factor of 2.
Contradiction.
√
Exercise: Proof that 5 is irrational.
Example
91 = 71 × 131
There is no other way to factor 91 into a product of primes.
18 = 21 × 32
Once again, no other way to factor 18 into a product of primes.
7 = 71
Since 7 is prime, there is trivially no other way to factor it into primes.
1000 = 23 × 53
1027: prime or not?
1049= (1049 is prime)