CHAPTER 1 Integers and Its Properties
CHAPTER 1 Integers and Its Properties
Introduction
Learning Objectives:
Learning Content
1.0 INTEGERS
Zero = {0}
Hence, the set Z is the union of positive integers, zero number and the
negative integers.
Well-Ordering Principle
Illustration 1.1
Illustration 1.2
1. Verification
2. Proof of induction
Proof:
Part II.
If 1 +2 + 3 + . . . + k = k(k+1)/2
then
1 +2 + 3 + . . . + k = k(k+1)/2
1 +2 + 3 + . . . + k + (k+1) = (k+1)(k+2)/2
Notice that simplifying the right side of the above equation would
yield a quantity, which is equal to the right side of the equation (*) and
we have the result below.
Exercise 1.1
Use the Principle of Mathematical Induction to show that for all positive
integers,
a. 1 + 3 + 5 + . . . + (2n-1) = n2.
b. 2 + 4 + 6 + . . . + 2n = n2 + n
n(n+1 )(2n+1)
c. 12 + 22 + 32 + . . . + n2 = 6 .
n(2 n−1 )(2 n+1)
d. 1 + 3 + 5 + . . . + (2n-1) =
2 2 2 2 3 .
n(n+1 )(n+2)
e. 1.2 + 2.3 + 3.4 + . . . + n(n+1) = 3
1.2 Divisibility
Given any two positive integers, a and b, there exist unique two
integers q and r (0 r b and 0 q), called respectively quotient and
remainder, such that
a = b .q + r
Illustrations 1.3
Exercise 1.2
1. a = 329 and b = 16
2. a = 768 and b = 253
3. a = 480 and b = 60
4. a = 2905 and b = 117
5. a = 5237 and b = 125
a b is read as “a divides b”
iff is read as “if and only if”
is read as “there is/there exists”
s.t. is read as “such that”
Illustrations 1.5
Exercise 1.3
1. Prove that 6 18 (6 divides 18) but 6 14 (6 does not divide
14).
2. Prove that 7 21 (7 divides 210 but 7 30 (7 does not divide
30).
Proof:
m = 2s, s Z
n = 2t, t Z
mn = 2s(2t)
= 2 (2st) by associative property on product of integers.
mn = 2r, r = 2st Z (by closure property)
Exercise 1.4
Illustrations 1.6
Exercise 1.5
Illustrations:
Illustrations 1.7:
1. Since 2 6 and 2 8, then 2 (6x + 8y). This can be shown using
definition 1.1.
Proof of Property 3:
Given: c a and c b
Then,
Corollary 1.1
Illustrations 1.8:
Illustration 1.6
Euclidean Algorithm
b = aq1 + r1 0 r1 a
a = r1q2 + r2 0 r2 r1
r1 = r2q3 + r3 0 r3 r2
.
.
.
rk-2 = rk-1qk + rk 0 rk rk-1
rk-1 = rkqk+1 + 0
The above theorem implies that the last nonzero remainder gives the
g.c.d. of a and b.
Example 1.2
243 = 96(2) + 51
96 = 51(1) + 45
51 = 45(1) + 6
45 = 6(7) + 3
6 = 3(2) + 0
Using continuous division, we obtain the same gcd of 3 for 243 and 96
as shown below.
2
96 24
3
19
2
51 96 1
51
45 51 1
45
6 45 7
42
3 6 2
6
0
2
96 243
192
51 96 1
51
45 51 1
45
6 45 7
42
3 6 2
6
0
Example 1.3
657 = 306(2) + 45
306 = 45(6) + 36
45 = 36(1) + 9
36 = 4(9) + 0
Since the last nonzero remainder is 9, hence, the gcd (963, 657) = 9.
The above process can also be performed using the continuous division
as shown below.
1
65 96
7 3
65
7
30 65 2
6 7
61
2
30 6
45
6
27
0
36 45 1
36
9 36 4
36
0
Exercise 1.6
1. Find the gcd(39, 91), gcd(153, 201), gcd(132, 231), gcd(264, 824),
gcd(217, 1484).
2. Use the Euclidean Algorithm to find integers x and y satisfying the
following:
(a) gcd(7, 84) = 7x + 84y
(b)gcd(16, 92) = 16x + 92y
(c) gcd(26, 182) = 26x + 182y
(d)gcd(54, 81)=54x + 81y
(e) gcd(117, 2107) = 117x + 2107y
Illustrations 1.9:
Illustrations 1.10:
b. N = 9288, a0 = 8, a1 = 8 a2 = 2 and a3 = 9.
ai = 8 + 8 + 2 + 9 = 27. Since 927, therefore, 99288.
Illustrations 1.11:
b. N = 41414, M = 14. In this case, 4 does not divide 14. Hence, 41414
is not divisible by 4.
Illustrations:
Illustrations 1.12:
a. Let N = 3157892.
b. Let N = 3156802.
c. Let N = 509190.
Divisibility by 7
Illustration 1.13
Illustration 1.14
Exercise 1.7.
1. 207 by 3 6. 246600 by 9
2. 12016 by 4 7. 216910 by 3
3. 122345 by 6 8. 4010022 by 4
4. 123110 by 8 9. 2301200 by 8
5. 289905 by 11 10. 2505801 by 11
Historical Notes:
ax +by =c
Note: The equation describing this line has infinitely many solutions.
Example 1.4 : 4x + 3y = 5
What is the gcd of a and b in equation 1? How about the gcd of a and b
in equation 2?
Theorem 1.3
Theorem 1.4
x = x0 + bt/d, t Z
y = y0 – at/d, t Z
d = (a, b)
Example 1.6
Let us consider the equation 33x + 14y = 319. What are the integral
solutions of this equation?
33 = 14(2) + 5 or [5 = 33 – 14 (2)]
We see that using backward approach as shown in the right side of the
above, the g(33, 14) = 1 is a linear combination of 33 and 14.
Hence, we have
[33(3) + 14(-7) = 1] 319
33(3)(319) + 14(-7)(319) = 1 (319)
33(957) + 14(-2233) = 319
Recall that the general solutions of the equation are of the form,
So we have,
X = 957 + 14t/1 and Y = -2233 – 33t/1
Hence, the general solutions of the equation 33x + 14y = 319 are
expressed in the following:
X = 957 + 14t and Y = -2233 – 33t.
Thus, for every t Z, the solutions for 33x + 14y = 319 can be
obtained using the above general solutions.
Exercise 1.8
How many spiders and beetles are there in a cage if there are 46 legs?
If you have not heard what we call the Diophantine Equation, you
might do it by trial and error. This is to consider the number of legs both a
spider and a beetle have and to assume possible number of spiders to
determine the number of beetles. However, this involves tedious work. The
Euclidean Algorithm and above two theorems can be used to solve the
problem.
Solution:
8x + 6y = 46
Do you think the above equation describes the given problem? Why
8 = 6 (1) + 2
6 = 2(3) + 0
2 = 8 – 6(1)
2 = 8(1) + 6(-1) (*)
[8(1) + 6(-1) = 2] 23
8(23) + 6(-23) = 46
Therefore, the particular solutions are x=23 and y=–23. However, we
cannot say that there are 23 spiders and –23 beetles. Hence, we need to
consider the general solutions of the equation. Based on these particular
solutions, the general solutions can be obtained from the following
equations:
X = 23 + 3t and Y = -23 – 4t
The values of X and Y must be positive, that is, x > 0 and y > 0. Why
do you think so?
Consider,
Hence,
What is the solution set of the above two inequalities? Which of these
points should be considered? What are the integral solutions of the
inequalities? What are the possible values of t?
If t = -6, then X = 5 and Y = 1. This means that there are 5 spiders and
1 beetle. The other possible solutions of t will give corresponding number of
spiders and beetles.
Exercise 1.9
1. How many 25-centavo and 10-centavo coins are there if the total
amount is
P1.75?
2. A grocer orders apples and oranges at a total cost of P241.20. If apples
cost him P7.50 each and oranges cost him P5.40 each, how many of
each type of fruit did he order?
3. A theater charges P180 for adult admission and P75 for children. If the
total receipts were P36,375 on a particular day, how many people
attended the show. Assume that more adults than children were
present.
1.12 Primes
An integer p is prime iff (if and only if) p>1 and the only positive
divisors of p are p and 1.
An integer p is prime iff (if and only if) p>1 and there exist no divisors
d such that
1 < d < p.
Every integer n>1 is a product of primes in one and only one way, a
part from the order of factors.
Illustrations 1.16:
A. By definition
B. Sieve of Eratosthenes
Theorem 1.6
Notice that 2 does not divide 91 and so with 3 and 5 but 7 divides 91.
Exercise 1.10
1. 701
2. 977
3. 1009
4. 2119
5. 3023
B. Sieve of Eratosthenes
2 3 4 5 6 7 8
9 10 11 12 13 14 1
5
16 17 18 19 20 2 22
1
23 24 2 26 2 28 29
5 7
30 31 32 3 34 3 36
3 5
37 38 3 40 41 42 43
9
44 4 46 47 48 49 50
5
Thus, the prime numbers in the set of the first 50 integers are 2, 3, 5,
7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, and 47.
1. 100 integers
2. 150 integers
3. 200 integers
4. 250 integers
5. 300 integers
Two primes are said to be twin primes if they are separated by just a
single composite number.
Example 1.10
2n – 1 where n > 1
n = 3, 23 -1 = 7 is a prime
n = 5, 25 -1 = 31is a prime
n = 7, 27 -1 = 127 is prime
Explore and discover the next Mersenne primes! Who knows you will
discover the next Mersenne primes!!!!
Fn = 2n + 1 where n ≥ 0.
Fermat observed that
F0 = 21 +1 = 3
F1 = 22 + 1 = 5
F2 = 24 + 1 = 17
F3 = 28 + 1 = 257
F4 = 216 + 1 = 65,537
.
.
.
He claimed that
2n + 1 is prime if n is a power of 2.
2. Observe the last digits of prime numbers and answer each of the
following:
2.1 What numbers appear as the last digits of prime numbers? List
them down.
2.2 Are some last digits appear often than others in the first 100
primes? What about the first 200 Primes?