Number Theory
Number Theory
Number Theory
NUMBER THEORY
INTRODUCTION
Number theory is principally the study of the natural numbers.
However, the term is often extended to include the study of all
the integers or all the rational numbers .
We will be covering the following topics
divisibility and modular arithmetic
Example :- 3 | 12 but 5 ∤ 12
Application :
Do there exist integers 𝑥, 𝑦, and 𝑧 such that
6𝑥 + 9𝑦 + 15𝑧 = 107?
The answer is no
3 |6𝑥 + 9𝑦 + 15𝑧 = 3|107 which is wrong.
division algorithm
The Division Algorithm If 𝑎 and 𝑏 are integers such that
𝑏 > 0, then there exist unique integers 𝑞 and 𝑟 such that
𝑎 = 𝑏𝑞 + 𝑟 where 0 ≤ 𝑟 < 𝑏.
b is called the divisor
a is called the dividend
q is called the quotient; can be expressed 𝑞 = 𝑎 𝒅𝒊𝒗 𝑏
r is called the remainder; can be expressed r = 𝑎 𝒎𝒐𝒅 𝑏
Example:-
If 𝑎 = 71 and 𝑏 = 6, then 71 = 6 · 11 + 5. Here 𝑞 =
11 and 𝑟 = 5.
If 𝑎 = −7 and 𝑏 = 3, then -7 = −3 · 3 + 2. Here 𝑞 = −3 and
𝑟 = 2.
modular arithmetic
Definition :- if 𝑎 and 𝑏 are integers and 𝑚 is a positive integer ,
then a is congruent to b modulo 𝑚 if 𝑚 divides 𝑎 − 𝑏.
We use the notation
𝑎 ≡ 𝑏(𝑚𝑜𝑑 𝑚)
to indicate that 𝑎 is congruent to 𝑏 modulo 𝑚.
If 𝑎 and 𝑏 are not congruent modulo 𝑚, we write
𝑎≢𝑏(𝑚𝑜𝑑 𝑚)
Example :-
Determine whether 17 is congruent to 5 modulo 6 and whether
24 and 14 are congruent modulo 6.
Solution :- 17 ≡ 5(𝑚𝑜𝑑 6)
24 ≢ 14(𝑚𝑜𝑑 6)
cont.
Theorem :- let a and b be integers and let m be a positive integer.
Then 𝑎≡𝑏(𝑚𝑜𝑑 𝑚) if and only if 𝑎 𝑚𝑜𝑑 𝑚 = 𝑏 𝑚𝑜𝑑 𝑚
Theorem :- let 𝑚 be a positive integer. The integer 𝑎 and 𝑏 are
congruent modulo 𝑚 if and only if there is an integer
𝑎 = 𝑏 + 𝑘𝑚
Proof:- (⇒)
if 𝑎≡𝑏(𝑚𝑜𝑑 𝑚)
by definition
m|a − b
𝑎 − 𝑏 = 𝑘𝑚 for some integer k
(⇐) Exercise
Cont.
Theorem :- let 𝑚 be a positive integer. If 𝑎≡𝑏(𝑚𝑜𝑑 𝑚) and
c≡𝑑 𝑚𝑜𝑑 𝑚 , then 𝑎 + 𝑐≡𝑏 + 𝑑(𝑚𝑜𝑑 𝑚) and 𝑎𝑐≡𝑏𝑑(𝑚𝑜𝑑 𝑚)
proof :-
𝑎≡𝑏(𝑚𝑜𝑑 𝑚) implies b = 𝑎 + 𝑠𝑚
c≡𝑑(𝑚𝑜𝑑 𝑚) implies d = 𝑐 + 𝑡𝑚
Hence
𝑏 + 𝑑 = (𝑎 + 𝑠𝑚) + (𝑐 + 𝑡𝑚)
= 𝑎 + 𝑐 + 𝑚(𝑠 + 𝑡)
∴ 𝑎 + 𝑐 ≡ 𝑏 + 𝑑(𝑚𝑜𝑑 𝑚)
And
𝑏𝑑 = (𝑎 + 𝑠𝑚)(𝑐 + 𝑡𝑚)
= 𝑎𝑐 + 𝑚(𝑎𝑡 + 𝑐𝑠 + 𝑠𝑡𝑚)
∴ 𝑎𝑐 ≡ 𝑏𝑑(𝑚𝑜𝑑 𝑚)
cont.
Example:-
7 ≡ 2(𝑚𝑜𝑑5) and 11 ≡ 1(𝑚𝑜𝑑5), it follows from the
above
18 = 7 + 11 ≡ 2 + 1 = 3 𝑚𝑜𝑑 5
and
77 = 7.11 ≡ 2.1 = 2(𝑚𝑜𝑑 5)
Example :- 7 is prime
9 is composite
Theorem :- (the fundamental theorem of arithmetic)
Every integer greater than 1 can be written uniquely as a prime or
as a product of two or more primes where the prime factors are
written in order of non decreasing size.
Cont.
Example :-
100 = 2.2.5.5 = 22 52
641 = 641
1024 = 2.2.2.2.2.2.2.2.2.2 = 210
Theorem :- if 𝑛 is a composite integer, then 𝑛 has a prime divisor
less than or equal to 𝑛
Example :- show that 101 is prime
Solution :-
the only primes not exceeding 101 are 2,3,5 and 7
Here because 101 is not divisible by 2,3,5 or 7
It follows that 101 is prime.
Infinitude of primes
Euclid of Alexandria was a Greek mathematician who lived several centuries
before the common era.
Euclid proved that if we take any finite set of prime numbers, we can always find
another prime number that is not in that set.
Theorem :- there are infinitely many prime numbers
Proof :- Assume that there are finite number of primes
That is 𝑝1 , 𝑝2 , … 𝑝𝑛
Consider the number
𝑞 = 𝑝1 𝑝2 … 𝑝𝑛 + 1
This number is not divisible by any of the listed primes
If we divided 𝑝𝑖 into 𝑞 there would result a remainder of 1
We must conclude that 𝑞 is a prime number, not among the primes listed above
This contradict our assumption that all primes are in the list 𝑝1 , 𝑝2 , … 𝑝𝑛
GCD and the Euclidean algorithm
Definition :- Let a and b be non-negative integers, not both zero.
The greatest common divisor of a and b denoted by gcd(𝑎, 𝑏) is
the largest natural number m such that m | a and m | b.
If a and b are both non-zero, the least common multiple of a and b
denoted by lcm(a, b) is the smallest natural number m such that
a | m and b | m.
Two natural numbers a and b are coprime (or relatively prime) if
their greatest common divisor is 1.
Example :- the integers 17 and 22 are relatively prime
gcd 17,22 = 1
𝑎𝑏 = gcd 𝑎, 𝑏 ∗ 𝑙𝑐𝑚(𝑎, 𝑏)
The Euclidean algorithm
Theorem :- let 𝑎 = 𝑏𝑞 + 𝑟, where 𝑎, 𝑏, 𝑞, and 𝑟 are integers. Then
gcd 𝑎, 𝑏 = gcd 𝑏, 𝑟
Example :- find the greatest common divisor of 414 and 662 using
the Euclidean algorithm
Solution :- successive uses of the division algorithm give
662 = 414.1 + 248
414 = 248.1 + 166
248 = 166.1 + 82
166 = 82.2 + 2
82 = 2.41
Hence, 𝑔𝑐𝑑 414,662 = 2, because 2 is the last nonzero
remainder
Linear congruence
A congruence of the form
𝑎𝑥 ≡ 𝑏(𝑚𝑜𝑑 𝑚)
Where 𝑚 is positive integer , 𝑎 and 𝑏 are integers and 𝑥 is variable
is called a linear congruence
Theorem :- let 𝑚 be a positive integer and let 𝑎 be a non zero
integer, the congruence 𝑎𝑥 ≡ 𝑏(𝑚𝑜𝑑 𝑚) has a solution if and only
if 𝑑 = 𝑎, 𝑚 is a divisor of 𝑏.
If 𝑑|𝑏 then there are exactly 𝑑 solution 𝑚𝑜𝑑 𝑚