Uccm1353 L4
Uccm1353 L4
Uccm1353 L4
Real numbers ( denoted as R ) consists of integers (Z), rational numbers (Q) and
irrational numbers.
Definition
Let n be an integer.
Example 4.11
(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 .
Theorem 4.11
1/25
UCCM1353 Basic Algebra Topic 4
Proof :
Then m + n = 2r + 2s
=2(r+s)
=2k ( let k = r + s , k is an integer)
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 :
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 .
n
Remark : d n ⇔ ∉Ζ.
d
By definition of divisibility ,
By substitution c = bs
= ( ar ) s
= a ( rs )
=ak ( let k = rs )
Solution :
15
No, = 3.75, which is not an integer.
4
4/25
UCCM1353 Basic Algebra Topic 4
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
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
Solution :
3300 = 100 × 33 = 4 × 25 × 3 × 11
= 2 × 2 × 5 × 5 × 3 × 11
= 2 2 ⋅ 31 ⋅ 5 2 ⋅ 111
Solution :
2
4 11
8
∴ 11 = 2 ⋅ 4 + 3
3
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
(c) 54 = 70 ⋅ 0 + 54; q = 0, r = 54
Definition
Example 4.3.3
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.
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 ∈ Ζ .
Example 4.3.4
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 ,
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
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
n
if n is even
n 2
2 = n −1
if n is odd
2
Proof :
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
n − 1 2k + 1 − 1
= =k
2 2
n n −1
∴ = ( if n is odd)
2 2
n 2k
2 = 2 = k = k ( Q k ≤ k < k + 1)
9/25
UCCM1353 Basic Algebra Topic 4
n 2k
= =k
2 2
n n
∴ = ( if n is even ).
2 2
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 :
Example 4.4.1
Solution :
63 = 9 ⋅ 7
∴ gcd ( 72 , 63 ) = 9
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
r0 = q1 r1 + r2 , 0 < r2 < r1
r1 = q2 r2 + r3 , 0 < r3 < r2
.
.
rn −1 = q n rn
Example 4.4.2
Solution :
330 = 156 ⋅ 2 + 18
156 = 18 ⋅ 8 + 12
18 = 12 ⋅ 1 + 6
12 = 6 ⋅ 2 + 0
11/25
UCCM1353 Basic Algebra Topic 4
(b)
Solution :
α = a −1 (mod m)
Example :
Solution :
7 = 2 ⋅3 +1
− 2 ⋅ 3 + 1⋅ 7 = 1
∴ − 2 is an inverse of 3 modulo 7.
12/25
UCCM1353 Basic Algebra Topic 4
Suppose gcd (m , a ) = 1 and let q1, q2, …. be the quotients in Euclidean algorithm.
Put t 0 = 0, t1 = 1 and
Example :
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
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
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
14/25
UCCM1353 Basic Algebra Topic 4
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.
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!
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
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.
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.
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 .
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.
Solution:
P(n): 2
2n
− 1 is divisible by 3.
P(1) is true because 22(1) – 1 is divisible by 3.
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.
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
is divisible by 9.
(2) For any integer k > b, if P(i) is true for all integers i with a ≤ i < k, then P(k) 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
(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.
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
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
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.
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
[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
[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
Example 4.8.1
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
Proof :
a b means that b = ka for some integer k.
1≤ k
a ⋅1 ≤ k ⋅ a
23/25
UCCM1353 Basic Algebra Topic 4
Proof :
Also M > N ( Q M = N + 1 )
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
Proof :
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.
24/25
UCCM1353 Basic Algebra Topic 4
Proof :
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 .
25/25