Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Uccm1353 L4

Download as pdf or txt
Download as pdf or txt
You are on page 1of 25

UCCM1353 Basic Algebra Topic 4

Chapter 4 Elementary Number Theory

4.1 Real Numbers

Real numbers ( denoted as R ) consists of integers (Z), rational numbers (Q) and
irrational numbers.

Definition

Let n be an integer.

n is even ⇔ there exist an integer k such that n = 2k.


n is odd ⇔ ∃ an integer k such that n = 2k + 1.

Example 4.11

Use the definition to justify your answers to the following questions.

(a) Is 0 even ?
(b) Is -301 odd?
(c) If a and b are integers, is 6a2b even ?
(d) If a and b are integers, is 10a + 8b + 1 odd?

Solution :

(a) Yes, 0 = 2 ⋅ 0 .

(b) Yes, -301 = 2 (-151) + 1

(c) Yes, 6a2b = 2 ( 3a2 b ), since a and b are integers, so is 3a2b.

(d) Yes, 10a + 8b + 1 = 2 ( 5a + 4b) + 1 , since a and b are integers, so is 5a + 4b.

Theorem 4.11

(1) The sum of two even numbers is even


(2) The sum of two odd numbers is even
(3) The sum of an even number and an odd number is odd.

1/25
UCCM1353 Basic Algebra Topic 4

Proof :

(1) Suppose m and n are even integers.

By definition of even, m = 2r , n = 2s for some integers r and s .

Then m + n = 2r + 2s
=2(r+s)
=2k ( let k = r + s , k is an integer)

∴ By definition of even, m + n is even.

Definition

Let n be an integer and n > 1 . Suppose n = r ⋅ s for any positive integers r and s.
n is prime if and only if r = 1 or s = 1.
If n is not prime, n is composite.

Example 4.1.2

(a) Is 1 prime?
(b) Write the first 6 prime numbers.
(c) Write the first 6 composite numbers.

Solution :

(a) No, a prime number is required to be greater than 1.


(b) 2, 3, 5, 7, 11, 13
(c) 4, 6, 8, 9, 10, 12

Definition

A real number r is rational if and only if it can be expressed as a quotient of two integers
with a nonzero denominator. A real number that is not rational is irrational number.

a
Let r ∈ R. r is rational ⇔ ∃ integers a and b such that r = and b ≠ 0 .
b

2/25
UCCM1353 Basic Algebra Topic 4

Example 4.1.3
10
(a) Is a rational number ?
3
5
(b) Is − a rational number ?
39
(c) Is 7 a rational number?
(d) Is 0 a rational number ?
2
(e) Is a rational number ? no rational
0
2
(f) Is an irrational number ? no irrational
0

Solution :
10
(a) Yes, is a quotient of the integers 10 and 3.
3
5
(b) Yes, − is a quotient of the integers -5 and 39.
39
7
(c) Yes, 7 =   .
1
0
(d) Yes, 0 =  .
1
2
(e) No, is not a number ( division by 0 is not allowed).
0
2
(f) No, because every irrational number is a number, and is not a number.
0

Theorem 4.1.2
(1) Every integer is a rational number.
(2) Sum of two rational number is rational.

Proof : (2)
a c
Suppose r and s are rational number. Then, by definition of rational, r = , s = for
b d
some integer a, b , c and d with b ≠ 0 , d ≠ 0 .

a c
r+s= +
b d
ad + bc
= , let p = ad + bc , q = bd
bd

3/25
UCCM1353 Basic Algebra Topic 4

p
= , where p and q are integer, q ≠ 0 .
q
∴ r + s is rational by definition of a rational number.

4.2 Divisibility

Definition

If n and d are integers, then n is divisible by d if and only if n = dk for some integer k .

The notation d n is read “ d divides n” . d|n = n / d

n
Remark : d n ⇔ ∉Ζ.
d

Theorem 4.2.1 For all integers a, b and c , if a b and b c , then a c .


b = ar
c = bs
c = ak
Proof :

Suppose a, b and c are integers such that a divides b and b divides c.

By definition of divisibility ,

b = ar and c = bs for some integers r and s.

By substitution c = bs
= ( ar ) s
= a ( rs )
=ak ( let k = rs )

∴ a divides c by definition of divisibility.

Example 4.2.1: Does 4 15 ?

Solution :

15
No, = 3.75, which is not an integer.
4

4/25
UCCM1353 Basic Algebra Topic 4

Theorem 4.2.2 ( Unique Factorization Theorem for the Integers )

Given any integer n > 1 , there exist a positive integer k , distinct prime numbers p1 , p2 ,
….. , pk , and positive integers e1 , e2 , ……., ek such that

n = p1e1 p 2e2 ...... p kek (standard factor form)

and any other expression of n as a product of prime numbers is identical to this except,
perhaps, for the order in which the factors are written.

Example 4.2.2

Write 3300 in standard factored form.

Solution :
3300 = 100 × 33 = 4 × 25 × 3 × 11
= 2 × 2 × 5 × 5 × 3 × 11
= 2 2 ⋅ 31 ⋅ 5 2 ⋅ 111

4.3 Quotient – Remainder Theorem

Example 4.3.1: Divide 11 by 4

Solution :

2
4 11
8
∴ 11 = 2 ⋅ 4 + 3
3

Theorem 4.3.1 ( Quotient- Remainder Theorem )

Given any integer n and positive integer d there exist unique integers q and r such that

n = qd + r and 0 ≤ r < d .

Example 4.3.2

For each values of n and d , find integers q and r such that n = qd + r and 0 ≤ r < d .

(a) n = 54 , d = 4
(b) n = -54 , d = 4
(c) n = 54, d = 70

5/25
UCCM1353 Basic Algebra Topic 4

Solution :

(a) 54 = 4 ⋅ 13 + 2 ; q = 13 , r = 2

(b) − 54 = 4 ⋅ (−14) + 2 ; q = −14, r = 2

(c) 54 = 70 ⋅ 0 + 54; q = 0, r = 54

Definition

If n and d positive integers , then n(mod d ) = r ⇔ n = qd + r where q and r integers


and 0 ≤ r < d.

Example 4.3.3

(a) Compute 32 (mod 9 ) ?


(b) What day of the week it be 1 year from today ?

Solution :
3
(a) 9 32
27
----
5
q = 3, d = 9, r = 5
32 ( mod 9 ) = 32 mod 9 = 5 mod = remaining
32 ( div 9 ) = 3
32 = 3*9 + 5
(b)
Suppose today is Tuesday and there are 365 days in a year that is not a leap year, and
each week has 7 days.

365 = 7 ⋅ 52 + 1 365 div 7 = 52


365 mod 7 = 1

Thus 52 week ( 364 days ), from today will be a Tuesday, so 365 days from today
will be 1 day later, namely Wednesday.

365 ( mod 7 ) = 1

** If there are 366 days in a leap year, then 366 = 7 x 52 + 2 (2 days later from today)

6/25
UCCM1353 Basic Algebra Topic 4

Definition
Let x ∈ R and n ∈ Ζ .

(1) The floor of x , denoted as x , is defined as x  = n where n ≤ x < n + 1. round down


(2) The ceiling of x , denoted as x , is defined as x  = n where n − 1 < x ≤ n . round up

Example 4.3.4

Compute x  and x  for each of the following values of x .

25
(a) (b) 0.999 (c ) - 2.01
4

Solution :
25  25 
(a) = 6.25 ⇒  4  = 6
4

 25 
⇒  4  = 7
(b) 0.999 = 0
0.999 = 1

(c ) − 2.01 = −3
− 2.01 = −2

Example 4.3.5
The 1370 soldiers at a military base are given the opportunity to take buses into town for
an evening out. Each bus holds a maximum of 40 passengers.

(a) For reasons of economy, the base commander will send only full buses. What
is the maximum number of buses the base commander will send ?
(b) If the base commander is willing to send a partially filled bus, how many
buses will the commander need to allow all the soldiers to take the trip ?

Solution :
1370 
(a)  40  = 34.25 = 34

1370 
(b)  40  = 34.25 = 35

7/25
UCCM1353 Basic Algebra Topic 4

Example 4.3.6
 1
If k is an integer, what are k  and k +  ? why ?
 2

Solution :

Suppose k is an integer ,

Then k  = k because k is an integer and k ≤ k < k + 1 .


 1 1
k + 2  = k because k is an integer and k ≤ k + 2 < k + 1 .

Example 4.3.7

Is x + y  = x  +  y  ? why ?

Solution :

1
No, The statement is false. As a counterexample, take x = y = . Then,
2

1  1 
x  +  y  =   +   = 0 + 0 = 0
2 2


1  1
x + y  =  +  = 1 = 1
2 2

∴ x + y  ≠ x  +  y 

Theorem 4.3.2

For all real numbers x and all integers m , x + m = x  + m.


Proof:

Suppose a real number x and an integer m are given .

Let n = x  . By definition of floor, n is an integer and n ≤ x < n + 1

Add m to all sides to obtain

8/25
UCCM1353 Basic Algebra Topic 4

n + m ≤ x + m < n + m +1

Now, n + m is an integer ( since n and m are integers and a sum of integers is an integer ).

By definition of floor,

x + m  = n + m
= x  + m (Q n = x  )

Theorem 4.3.3

For any integer n ,

 n
if n is even
n  2
 2  =  n −1
 if n is odd
 2
Proof :

Suppose n is an integer. By the quotient-remainder theorem, n is odd or n is even.

Case 1 ( n is odd) : In this case, n = 2k + 1 for some integer k. The left-hand side of the
equation
 n   2k + 1  1 1
 2  =  2  = k + 2  = k ( Q k ≤ k + < k + 1)
2

And the right-hand side of the equation is

n − 1 2k + 1 − 1
= =k
2 2

Since both the left-hand and right-hand sides equal k ,

n n −1
∴  = ( if n is odd)
2 2

Case 2 ( n is even ) : In this case, n = 2k for some integer k .


The left-hand side of the equation is

 n   2k 
 2  =  2  = k  = k ( Q k ≤ k < k + 1)

9/25
UCCM1353 Basic Algebra Topic 4

and the right-hand side of the equation is

n 2k
= =k
2 2

Since both the left-hand and right-hand sides equal k ,

n n
∴  = ( if n is even ).
2 2

4.4 Euclidean algorithm

Definition

Let a and b be integers that are not both zero. The greatest common divisor of a and b ,
denoted gcd( a, b ) , is that integer d with the following properties :

1. d is a common divisors of both a and b. In other words, d a and d b .


2. For all integers c , if c is a common divisor of both a and b, then c is less than
or equal to d. In other words,

for all integers c , if c a and c b , then c ≤ d .

Example 4.4.1

(a) Find gcd ( 72, 63 )


(b) Find gcd ( 1020 , 630 ).

Solution :

(a) 72 = 9 ⋅ 8 so 9 72 , 9 63 , and no integer larger than 9 divides both 72 and 63.

63 = 9 ⋅ 7

∴ gcd ( 72 , 63 ) = 9

(b) By the laws of exponents, 1020 = 2 20 ⋅ 5 20


6 30 = 2 30 ⋅ 330 = 2 20 ⋅ 210 ⋅ 330

It follows that 2 20 10 20 , 2 20 6 30 ,

∴ gcd (10 20 , 6 30 ) = 2 20 .

10/25
UCCM1353 Basic Algebra Topic 4

The Euclidean Algorithm:

Put r0 = m and r1 = a. We perform the following sequence of divisions with


remainder:

r0 = q1 r1 + r2 , 0 < r2 < r1

r1 = q2 r2 + r3 , 0 < r3 < r2

.
.

rn − 2 = q n−1 rn −1 + rn , 0 < rn < rn −1

rn −1 = q n rn

Then we have gcd ( m , a ) = rn . In other words, gcd ( m , a ) is the last nonzero


remainder in the above divisions.

Example 4.4.2

(a) Find gcd ( 330 , 156 )

Solution :

330 = 156 ⋅ 2 + 18

156 = 18 ⋅ 8 + 12

18 = 12 ⋅ 1 + 6

12 = 6 ⋅ 2 + 0

∴ gcd ( 330 , 156 ) = gcd ( 156 , 18 )


= gcd ( 18 , 12 )
= gcd ( 12 , 6 )
= gcd ( 6 , 0 )
=6

11/25
UCCM1353 Basic Algebra Topic 4

(b)

Find gcd ( 662 , 414 )

Solution :

662 = 414 ⋅ 1 + 248


414 = 248 ⋅ 1 + 166
248 = 166 ⋅ 1 + 82
166 = 82 ⋅ 2 + 2
82 = 2 ⋅ 41 + 0

∴ gcd ( 662 , 414 ) = 2

Chinese Remainder Theorem

Two integers a and b are said to be relatively prime ( or coprime ) if gcd ( a, b ) = 1.

If αa = 1 (mod m ), we say that α is the inverse of a modulo m and is denoted by

α = a −1 (mod m)

a −1 ( mod m) exists if an only if gcd ( a, m ) = 1 .

Example :

Find an inverse of 3 modulo 7.

Solution :

Since gcd ( 3,7 ) = 1 , an inverse of 3 modulo 7 exists:

7 = 2 ⋅3 +1
− 2 ⋅ 3 + 1⋅ 7 = 1

∴ − 2 is an inverse of 3 modulo 7.

( or -2+7=5 is an positive inverse of 3 modulo 7)

12/25
UCCM1353 Basic Algebra Topic 4

The Extended Euclidean Algorithm

Suppose gcd (m , a ) = 1 and let q1, q2, …. be the quotients in Euclidean algorithm.

Put t 0 = 0, t1 = 1 and

t j = t j − 2 − q j −1t j −1 ( mod m) for j = 2 , …….n.

Then t n = a −1 ( mod m).

Example :

Determine whether a −1 ( mod m ) exists. If it exists, find a −1 ( mod m) . If it does not


exist, explain .

112 −1 ( mod 543 )

Solution :

t 2 = 0 − 4(1) = −4
t 3 = 1 − 2( −4) = 9
t1 = 1, t 0 = 0 :
t 4 = −4 − 19(9) = −175
t 5 = 9 − 1(−175) = 184

∴121−1 (mod 543) = 184

Chinese Remainder Theorem

Let m1 , m2 , ….., mr be pairwise coprime positive integers and let a1 , a2 , …..ar be


arbitrary integers. Then there exists an integer x with x = ai ( mod mi ) for 1 ≤ i ≤ r and x
is uniquely determined modulo M = m1m2……mr which is given by

r
x = ∑ a i M i y i ( mod M)
i =1

M
Where M i = and yi = M i−1 ( mod mi ) for 1 ≤ i ≤ r.
mi

13/25
UCCM1353 Basic Algebra Topic 4

Use Chinese remainder theorem to compute :

(a) x ( mod 35 ) , if x = 3 ( mod 5 ) , x = 6 ( mod 7 ) .


(b) x ( mod 210 ) , if x = 1 ( mod 2 ) , x = 1 ( mod 3 ), x = 3 ( mod 7 ) and x = 3 ( mod 5 ).

Solution :

(a) a1 = 3 , a2 = 6

m1 = 5 , m2 = 7

M1 = 7 , M2 = 5

y1 = 7 −1 ( mod 5 ) , y 2 = 5 −1 ( mod 7 )
= 2 −1 ( mod 5 ) =3
=3

x = ∑ ai M i Yi (mod M)
= 3(7)(3) + 6(5)(3)
∴ = 63 + 90
= 153 ( mod 35 )
= 13 ( mod 35)

(b) a1 = 1 , a2 =1 , a3 = 3 , a4 = 3
m1 = 2 , m2 = 3 , m3 = 7 , m4 = 5

M 1 = 105 , M 2 = 70 , M 3 = 30 , M 4 = 42

y1 = 105 −1 ( mod 2 ) y 2 = 70 −1 ( mod 3 ) y 3 = 30-1 (mod 7) y 4 = 42-1(mod 5)


= 1-1 ( mod 2 ) = 1-1 ( mod 3 ) = 2-1 (mod 7) = 2-1 (mod 5)
=1 =1 = -3 =3
=4

∴ x = 1 (105 ) (1) + 1 ( 70 )( 1) + 3 ( 30 ) ( 4) + 3 (42 )( 3 )


= 913 ( mod 210 )
= 73 ( mod 210 )

14/25
UCCM1353 Basic Algebra Topic 4

4.5 Mathematical Induction

Mathematical induction is one of the more recently developed techniques of proof in the
history of mathematics. It is used to check conjectures about the outcomes of processes
that occur repeatedly and according to definite patterns.

Principle of Ordinary Mathematical Induction


Let P(n) be a predicate that is defined for integers n, and let a be a fixed integer. Suppose
the following two statements are true:

(1) P(a) is true.

(2) For all integers k ≥ a, if P(k) is true then P(k+1) is true.

Then the statement “for all integers n ≥ a, P(n)” is true.

Remark:
Proving a statement by mathematical induction is a two-step process.

In step 1, the basis step, we prove that P(a) is true for a particular integer a.

In step 2, the inductive step, we prove that for all integers k ≥ a, if P(k) is true then
P(k+1) is true.

To prove the inductive step, we suppose that P(k) is true, where k is a particular but
arbitrarily chosen integer greater than or equal to a. Then we show that P(k+1) is true.
The supposition that P(k) is true is called the inductive hypothesis.

Note:
In a proof by mathematical induction, it is not assumed that P(k) is true for all positive
integers!

Examples Of Proofs By Mathematical Induction

Example 4.5.1:
Use mathematical induction to prove that the sum of the first n odd positive integers is
n2 .
Solution:
2
P(n): The sum of the first n odd positive integers is n .

Basis step:
P(1) is true since the sum of the first odd positive integer is 1.

Inductive step:

15/25
UCCM1353 Basic Algebra Topic 4

Suppose that P(k) is true for a positive integer k ≥ 1; that is,


1 + 3 + 5 + …+ (2k – 1) = k2.

We must show that P(k + 1) is true.


But,
1 + 3 + 5 + … + (2k – 1) + (2k + 1) = k 2 + (2k + 1)
= (k + 1) 2 .
Hence P(k + 1) is true.

Since P(1) is true and the implication P(k) → P(k + 1) is true for all positive integers k,
the principle of mathematical inductions shows that P(n) is true for all positive integers n.

Example 4.5.2: (Sum of the first n integers)


n
n(n + 1)
Use mathematical induction to prove that ∑r =1+ 2 +L+ n = 2
r =1
Proof:
1(1 + 1) 2
The formula is true for n = 1 because = = 1.
2 2
k (k + 1)
Suppose 1 + 2 + … + k = , for some integer k ≥ 1.
2
k (k + 1) (k + 1)(k + 2)
1 + 2 + … + k + (k+1) = + (k+1) = .
2 2
Since we have proved both the basis and inductive steps, we conclude that the formula is
true.

Remark: 1 2 3 . . . . . . 50 51 . . . . . . 98 99 100

Example 4.5.3:
(i) Use mathematical induction to prove that
n
1
∑ r 2 = 12 + 22 + ... + n2 = 6 n(n + 1)(2n + 1) .
r =1

Solution
n
1
P(n): ∑ r 2 = 12 + 22 + ... + n2 = 6 n(n + 1)(2n + 1)
r =1

Basis step:

16/25
UCCM1353 Basic Algebra Topic 4

1
n = 1, LHS = 1 and RHS = (2)(3) = 1
6
So LHS = RHS and P(1) is true

Inductive step:
Suppose that P(k) is true for a positive integer k ≥ 1; that is,
1
12 + 2 2 + ... + k 2 = k (k + 1)(2k + 1)
6
When n = k + 1

(1 2
)
+ 2 2 + ... + k 2 + (k + 1)
2
=
1
6
k (k + 1)(2k + 1) + (k + 1)
2

1
[
= ( k + 1) 2k + k + 6k + 6
6
2
]
1
= ( k + 1)(k + 2 )(2k + 3)
6
Hence P(k + 1) is true.

Since P(1) is true and the implication P(k) → P(k + 1) is true for all positive integers k,
the principle of mathematical inductions shows that P(n) is true for all positive integers n.

Example 4.5.4: (The Tower of Hanoi)


Let A, B and C be 3 poles with n ≥ 1 discs of different diameters placed on pole A such
that the largest is on the bottom and the smallest on top. Move the entire pile of discs
from pole A to pole C by moving one disc at a time and never placing a disc on top of a
smaller one. Prove that the minimum number of moves required is 2n – 1.

Proof:
The proof is by induction on n.
Basis step:
If n = 1, clearly the minimum number of moves required is 1 = 21 – 1.

Inductive step:
Suppose the minimum number of moves required for k discs is 2k – 1 for some k ≥ 1 .

Let there be k + 1 discs on pole A. Then we have the following:

the minimum number of moves required to move the top k discs from pole A to pole B is
2k − 1 .
the minimum number of moves required to move the one last (largest) disc from pole A
to pole C is 1.

17/25
UCCM1353 Basic Algebra Topic 4

the minimum number of moves required to move all the k discs from pole B to pole C is
2k − 1 .
Hence the minimum number of moves required to move all the k + 1 discs from pole A to
pole C is
(2 k
) ( )
− 1 + 1 + 2 k − 1 = 2 k +1 − 1 .
Therefore the minimum number of moves required to move all the n discs from pole A to
pole C is 2n – 1 for any n ≥ 1. This completes the proof.

Example 4.5.6: (Proving a Divisibility Property)


Use mathematical induction to prove that for all integers n ≥ 1, 2 − 1 is
2n
(i)
divisible by 3.

Solution:
P(n): 2
2n
− 1 is divisible by 3.
P(1) is true because 22(1) – 1 is divisible by 3.

Suppose 22k – 1 is divisible by 3 for some integer k ≥ 1.

We must show that 22(k+1) – 1 is divisible by 3.


But 22(k+1) – 1 = 22k+2 – 1 = 22k (3) + (22k – 1).

By the inductive hypothesis, 22k – 1 is divisible by 3 and clearly 22k (3) is divisible by 3.
Hence, by induction, 22n – 1 is divisible by 3 for all integers n ≥ 1.

Use mathematical induction to prove that for all integers n ≥ 1, 7 (3n + 1) − 1


n
(ii)
is divisible by 9.

P(1) is true because 7(3 + 1) − 1 = 27 is divisible by 9.

Suppose 7 (3k + 1) − 1 is divisible by 9 for some integer k ≥ 1 .


k

We must show that 7


k +1
(3(k + 1) + 1) − 1 is divisible by 9.

But 7
k +1
( )
(3(k + 1) + 1) − 1 = 7 7 k [3k + 4] − 1
= 7 (21k + 28 ) − 1
k

18/25
UCCM1353 Basic Algebra Topic 4

[ ]
= 7 (3k + 1) − 1 + 7 (18k + 27 )
k k

= [7 (3k + 1) − 1] + (9 )7 (2k + 3)
k k

By the inductive hypothesis, 7 (3k + 1) − 1 is divisible by 9 and clearly (9 )7 (2k + 3)


k k

is divisible by 9.

Hence, by induction, 7 (3n + 1) − 1 is divisible by 9 for all integers n ≥ 1.


n

4.6 Principle of Strong Mathematical Induction


Let P(n) be a predicate that is defined for integers n, and let a, b be fixed integers with a ≤ b.

Suppose the following two statements are true:


(1) P(a), P(a + 1), …, and P(b) are all true

(2) For any integer k > b, if P(i) is true for all integers i with a ≤ i < k, then P(k) is true.

Then the statement “for all integers n ≥ a, P(n)” is true.

Remark:
Statement (1) is called the basis step.
Statement (2) is called the inductive step.

Example 4. 20:

(i) Prove that any integer greater than 1 is divisible by a prime number.

Solution:
P(n) : n is divisible by a prime number, n ≥ 2 .

Basis step:
P(2) is true because 2 is a prime number and 2 is divisible by itself.

Inductive step:
(If the divisibility property holds for all i with 2 ≤ i < k, then it holds for k)
Let k > 2.
Suppose that for all integers i with 2 ≤ i < k, i is divisible by a prime number.

Case 1:
k is prime.
Then k is divisible by a prime number, namely itself.

Case 2:
k is not a prime.

19/25
UCCM1353 Basic Algebra Topic 4

Then k = ab where 2 ≤ a < k and 2 ≤ b < k where a, b are integers.


By the inductive hypothesis, a is divisible by a prime number p.
Hence k is divisible by p.
By strong mathematical induction, P(n) is true.

(ii) Show that if n is an integer greater than 1, then n can be written as the product of
primes.

Solution:
P(n) : n can be written as the product of primes

Basis step:
P(2) is true because 2 can be written as the product of one prime, namely itself.

Inductive step:
(If the divisibility property holds for all i with 2 ≤ i < k, then it holds for k)
Let k > 2.
Suppose that for all integers i with 2 ≤ i < k, i can be written as the product of primes.

Case 1:
k is prime.
Then k can be written as the product of one prime, namely itself.

Case 2:
k is not a prime.
Then k = ab where 2 ≤ a < k and 2 ≤ b < k where a, b are integers.
By the inductive hypothesis, a and b can be written as the product of primes.
Hence k can be written as the product of primes.
By strong mathematical induction, P(n) is true.

(iii) Define a sequence a1 , a2 , a3 ,... as follows:


a1 = 0
a2 = 2
a k = 3a k  + 2 , k ≥ 3 .
2

Find the first 7 terms of the sequence and prove that an is even for each integer
n ≥ 1.
Solution:
a1 = 0
a2 = 2
a3 = 3a 3  + 2 = 3a1 + 2 = 2
2

20/25
UCCM1353 Basic Algebra Topic 4

a4 = 3a 4  + 2 = 3a2 + 2 = 8
2

a5 = 3a 5  + 2 = 3a2 + 2 = 8
2

a6 = 3a 6  + 2 = 3a3 + 2 = 8
2

a7 = 3a 7  + 2 = 3a3 + 2 = 8
2

P(n): an is even

Basis step:
P(n) holds for n = 1 and n = 2 since a1 = 0 and a2 = 2 are even.

Inductive step:
(If the divisibility property holds for all i with 1 ≤ i < k, then it holds for k)
Let k > 2.
Suppose that ai is even for all integers i with 1 ≤ i < k.

By definition of a1 , a2 , a3 , ….
a k = 3a k  + 2 , for all integers k ≥ 3 .
2

Now a k  is even by inductive hypothesis {because k > 2 and so 1 ≤ k 2  < k }. Thus


2

3a k  is even {because odd x even = even}, and hence 3a k  + 2 is even.


2 2

Consequently, ak , which equals 3a k  + 2 , is even.


2

By strong mathematical induction, P(n) is true.

4.7 Well-Ordering Principle for Integers


Let S be a set containing one or more integers all of which are greater than some fixed
integers.
Then S has a least element.

Example 4.21: (Finding least elements)


In each case, if the set has a least element, state what it is. If not, explain why the well-
ordering principle is not violated.

(i) The set of all positive real numbers

There is no least positive real number. For if x is any positive real number, then
x/2 is a positive real number that is less than x. No violation of the well-ordering principle
occurs because the well-ordering principle refers only to sets of integers and this set is
not a set of integers.

21/25
UCCM1353 Basic Algebra Topic 4

The set of all nonnegative integers n such that n < n .


2
(ii)

There is no least nonnegative integer n such that n < n because there is no


2

nonnegative integer that satisfies this inequality. The well-ordering principle is not
violated because the well-ordering principle refers to sets that contain at least one or more
elements.

(iii) The set of all nonnegative integers of the form 46 – 7k, where k is an integer.

The following table shows values of 46 – 7k for various values of k.

k … –3 –2 –1 0 1 2 3 4 5 6 7 …
46 – 7k … 67 60 53 46 39 32 25 18 11 4 –3 …

The table suggests, and you can easily confirm, that 46 – 7k < 0 for k ≥ 7 and that
46 − 7 k ≥ 46 for k ≤ 0 . There, from the other values in the table it is clear that 4 is the
least nonnegative integer of the form 46 – 7k. This corresponds to k = 6.

Division Algorithm:
If a is an integer and d is a positive integer, then there are unique integers q and r with
0 ≤ r < d and a = dq + r.
Example 4.22:
Use the well-ordering principle to prove the division algorithm.

Proof :

Quotient-Remainder Theorem

Let S be the set of all nonnegative integers of the form


n−d ⋅k
where k is an integer. This set has at least one element.

[n is nonnegative ⇒ n − 0 ⋅ d = n ≥ 0
and so n − 0 ⋅ d is in S.

n is negative ⇒ n − n ⋅ d = n(1 − d ) ≥ 0
and so n − n ⋅ d is in S.]

It follows by the well-ordering principle that S contains a least element r. Then for some
specific integer k = q,
n−d ⋅q =r

22/25
UCCM1353 Basic Algebra Topic 4

[because every integer in S can be written in this form].


So n = d ⋅ q + r
Furthermore, r < d .

[suppose r ≥ d . Then
n − d ⋅ (q + 1) = n − d ⋅ q − d = r − d ≥ 0
and so n − d ⋅ (q + 1) would be a nonnegative integer in S that would be smaller than r.
But r is the smallest integer in S. This contradiction shows that the supposition r ≥ d
must be false]

The preceding arguments prove that there exist integers r and q for which
n = d ⋅ q + r and 0 ≤ r < d

4.8 other methods of proving

Example 4.8.1

Disprove the following by giving a counterexample.


For all real numbers a and b , if a 2 = b 2 then a = b .

Solution :
Let a = 1 and b = -1

Then , a2 = 12 = 1
b2 = (-1)2 = 1

∴ a2 = b2

But a ≠ b since 1 ≠ −1 .

Theorem 4.8.1

Suppose a and b are positive integers and a b . Then a ≤ b .

Proof :
a b means that b = ka for some integer k.

K must be a positive integer because a > 0 , b > 0 .

1≤ k

a ⋅1 ≤ k ⋅ a

23/25
UCCM1353 Basic Algebra Topic 4

Theorem 4.8.2 There is no greatest integer .

Proof :

[Using negation of the theorem and suppose it to be true ].

Suppose there is a greatest integer N.

Then N ≥ n for every integer n.

Let M = N + 1 . Now M is an integer since it’s a sum of integers.

Also M > N ( Q M = N + 1 )

Thus, M is an integer that is greater than N,

So, N is the greatest integer and N is not the greatest integer, which is a contradiction.
Hence, theorem is true.

Theorem 4.8.3

There is no integer that is both even and odd.

Proof :

Suppose there is an integer n that is both even and odd.

By definition of even, n = 2a for some integer a, and


By definition of odd, n = 2b + 1 . for some integer b ,

Consequently,

2a = 2b + 1
2a – 2b = 1
2(a–b)=1
1
(a–b)=
2

Since a and b are integers, the difference a – b must also be an integer, but a – b is not an
integer. Thus, a – b is an integer and a – b is not an integer which is a contradiction.

∴ The theorem is true.

24/25
UCCM1353 Basic Algebra Topic 4

Theorem 4.8.4 . For all integers, if n2 is even then n is even.

Proof :

Suppose n is any odd integer.

By definition of odd, n = 2k + 1 for some integer k.

By substitution and algebra,

n 2 = (2k + 1) 2 = 4k 2 + 4k + 1 = 2(2k 2 + 2k ) + 1

But 2k2 + 2k is an integer because products and sums of integers are integers.

So, n2 = 2 ( an integer ) + 1 .

Thus by def. of odd , n2 is odd.

Contrapositive ( “ n is odd, the n2 is odd”) is also true.

∴ If n2 is not odd, then n is not odd.

25/25

You might also like