In this note, we will discuss the basic concepts of number theory. In short, number theory is the study of
Division
Prime
A prime number (or a prime) is a natural number greater than
that is not a product of two smaller natural numbers.
e.g.
Lemma
For prime number
, .
Proof By definition of a prime, the only possible divisors of
Fundamental Theorem of Arithmetic
Every integer greater than
can either be prime or represented uniquely as a product of prime numbers.
Proof Clearly
Corollary
There are infinitely many primes.
Proof Assume there are only finitely many primes, say
Greatest Common Divisor
Greatest Common Divisor
The greatest common divisor of two or more integers, which are not all zero, is the unique largest positive integer that divides each of the integers, denoted as
in the two integers case.
In other words, it is the positive integersuch that , and
Proof The existence of
Bézout’s Identity
Let
, not both zero. Then the set
has a least element, and .
Euclid's Lemma
Let
be a prime number. If divides the product , then or .
Proof Suppose
Proposition
For integers
with , .
Proof We will show that
Euclidean Algorithm
The Euclidean algorithm is an efficient method for computing the greatest common divisor of two integers
and .
- Given two integers
. - Apply the division algorithm to obtain
, where . - If
, then . Otherwise, replace by and by , and repeat step 2.
e.g. To compute
; ; .
Thus,
Fermat’s Little Theorem
For every two integers
that are coprime, then we have , where is the Euler’s totient function. In particular, if is a prime number then .