Professional Documents
Culture Documents
Logic Lecture Slides
Logic Lecture Slides
Section 5.4
Prime Numbers
The Fundamental Theorem of Arithmetic
gcd(a, b) = 1.
Prime Numbers Relatively Prime Numbers The Fundamental Theorem of Arithmetic
Definition
A natural number p > 1 is called a prime (number) if it has
exactly two different positive divisors: 1 and p (called a trivial
divisors of p). Otherwise p is called a composite number.
Prime Numbers Relatively Prime Numbers The Fundamental Theorem of Arithmetic
Basic Theorems 1
Theorem
Every natural number greater than 1 has a prime divisor.
Prime Numbers Relatively Prime Numbers The Fundamental Theorem of Arithmetic
Basic Theorems 2
Basic Theorems 3
Theorem
For all positive integers a and b and a prime p :
1. Either p | a or gcd(p, a) = 1.
2. If p | ab then p divides at least one of a and b.
Theorem
For all natural numbers a1 , . . . , ak and a prime p, if p | a1 . . . ak
then p divides at least one of a1 , . . . , ak .
Prime Numbers Relatively Prime Numbers The Fundamental Theorem of Arithmetic
Theorem
Every natural number n > 1 can be decomposed into a product
of primes:
n = p1 . . . pk , k ≥ 1.
Moreover, this decomposition is unique, up to the order of the
factors.
Prime Numbers Relatively Prime Numbers The Fundamental Theorem of Arithmetic
Corollary
Every natural number n > 1 can be decomposed into a product
of powers of different primes:
n = p1α1 . . . pkαk , α1 , . . . , αk , k ≥ 1.
Theorem
Let n = p1α1 . . . pkαk and m = p1β1 . . . pkβk be decompositions of m
and n in products of primes, where p1 , p2 , . . . , pk are different
and some of the α0 s and β 0 s can be 0. Then:
1. n | m iff α1 ≤ β1 , . . . , αk ≤ βk .
2. gcd(m, n) = p1γ1 . . . pkγk and lcm(m, n) = p1δ1 . . . pkδk , where
γi = min(αi , βi ) and δi = max(αi , βi ), for i = 1, . . . , k .
Prime Numbers Relatively Prime Numbers The Fundamental Theorem of Arithmetic
Example
π(n)
lim = 1.
n→∞ n/ ln n