Professional Documents
Culture Documents
Number Theory
Number Theory
Divisibility
2.1 Definition
▪ Let a,b ϵ Z, with a ≠ 0. We say that a divides b if
there exists an integer q such that b = aq. We use
the notation a|b to mean “a divides b”.
b isdivisible
by a
a dividesb
a b =
b is a multipleof a
a is a divisoror factorof b
▪ If a does not divide b, then we write a|b.
Example 2.1 3 | 6, since 6 = 3 (2) and 2 ϵ Z. Likewise,
3 |-6 since -6 = 3(-2) and -2 ϵ Z. However, 3 | 7.
▪ Nontrivial Divisor
a is a nontrivial divisor of b if a|b and 1 < a < b.
• Let a, b, c, m ϵ Z
1. If a|b and b|c, then a|c.
2. If a|b, then a|bx, x ϵ Z.
3. If a|b and a|c, then a|(bx + cy), x, y ϵ Z.
4. If a|b and b|a, then a = + b
5. If a|b and a > 0, b > 0, then a < b.
2.4 Divisibility Rules
n = p p ...pk
a1 a2
1 2
ak
1
3. Fermat’s Method
• Used in factoring large odd composite numbers
Steps:
1. Calculate x= n
2. Compute x2 – n starting with the first integer
greater than x and continue with the next integer (s)
until you reach a square, denoted by y2.
a. 667
b. 533
c. 2387
a. 667; Solution: Extract the root of n.
n =667 n = 667 25.8263
We note that 252 < 667< 262.
So, take the next integer after 25, i.e., 26
Therefore,
667= 23•29
b. 533; Solution: Extract the root of n.
n =533 n = 533 23.087
We note that 232 < 533< 242.
So, take the next integer after 23, i.e., 24
Hence, if x = 24, y2 = 242 – 533
y2 = 576 – 533 = 43,
NOT a perfect square.
… if x = 27, y2 = 729 – 533 = 196,
y = 196=14
which is a perfect square.
Thus, x = 27 and y = 14 and
n = x 2 – y2
533= 272 – 142
533 = (27 – 14)(27 + 14)
533= (13)(41)
Therefore,
533=13•41
c. 2387;
• Solution: Extract the root of n.
n =2387 n = 2387 48.8569
We note that 482 < 2387< 492.
Let 492 = x2 = t2
From (1), we compute for y2 = t2 – n, for
t = x, x + 1, x + 2, … until y2 is already a
perfect square.
Hence, if t = 49, y2 = 492 – 2387
y2 = 2401 – 2387 = 14,
NOT a perfect square.
if t = 50, y2 = 502 – 2387
y2 = 2500 – 2387 = 113,
NOT a perfect square.
if t = 51, y2 = 512 – 2387
y2 = 2601 – 2387 = 214,
NOT a perfect square.
Hence, if t = 52, y2 = 522 – 2387
y2 = 2704 – 2387 = 317,
NOT a perfect square.
if t = 53, y2 = 532 – 2387
y2 = 2809 – 2387 = 422,
NOT a perfect square.
if t = 54, y2 = 542 – 2387
y2 = 2916 – 2387 = 529,
y = 529=23
which is a perfect square.
Thus, x = 54 and y = 23 and
n = x 2 – y2
2387 = 542 – 232
2387 = (54 – 23)(54 + 23)
2387= (31)(77)
but 77 = (7)(11);
Therefore,
c.2387=7•11•31
2.7 Positive Divisors
• Let τ(n) denote the number of positive
divisors of n and σ(n) denote the sum of
positive divisors of n.
If n = p p ...pk thenwehave
a1 a2
1 2
ak
(75) = 31+1
−1 • 5 2+1
−1
3−1 5−1
(75) = 3 2
−1 • 53
− 1
3−1 5−1
8
(75) = • 124
2 4
(75) =124
2.8 Special Number (Perfect Number)
• A natural number n is said to be perfect if
σ(n) = 2n.
• Example: 6 is a perfect number because
σ(6) = 12 = 2(6).
• Euclid’s Formula: A number n is perfect if it
satisfies the equation n = 2p – 1 (2p – 1)
where both p and 2p – 1 are primes.
• If p = 2, since 22 – 1 = 3 is prime, then
22 – 1 (22 – 1) = 2(3) = 6 is perfect
• If p = 3, since 23 – 1 = 7 is prime, then
23 – 1 (23 – 1) = 4(7) = 28 is perfect
2.8 Special Number (Amicable Pair)
• Let S(n) denote the sum of the proper
divisors of n. Two natural numbers n and m
form an amicable pair if S (n) = m and S(m) =
n.
Example 2.11 Show that 220 & 284 are amicable
pair.
1.220= 2 •5•11
2
(220) = 22+1
−1 • 51+1
−1•
1+1
11 −1
2−1 5−1 11−1
p1 = 2 p2 =5 p3 =11 (220) =7•6•12
a1 = 2 a2 =1 a3 =1 (220) =504
S(220) = 504 – 220
S(220) = 284
1.284= 2 •71 2
(284) = 22+1
−1 •
1+1
71 −1
2−1 71−1
p1 = 2 p2 =71 (284) =7•72
a1 = 2 a2 =1 (284) =504
(284) = p1
a1+1
−1 • p2
a2 +1
−1 S(284) = 504 – 284
p1 −1 p2 −1 S(284) = 220
Since S(220) = 284 and S(284) = 220, then
220 & 284 are amicable pair.