Table of Contents
Pre-Definitions
Let a and b be integers, with . If there exists an integer c such that b=ac, then b is divisible by a. We use notation , otherwise, .
Numbers that cannot be factored further is called Primes. A number p is a prime if its only divisors are 1 and p.
The Theorem of Unique Factorization
Every number can be factored into a product of primes in a unique way.
denotes the ring of integers, where 1 or -1 divide everything as the units of , zero can be divided by any nonzero integer.
- If and , then
- If and , then
- If and , then
Consider and p is prime. If n is not 0, there will be a nonnegative integer a allows and $p^{a+1} \nmid n $. We call a as the order of n at p, denoted as . is the number of times p divides n.
Lemma 1
Every nonzero integer can be written as a product of primes.
Proof:
Assume N is the smallest positive non-prime number, that cannot be written as a product of primes. We have , where , p,q are not primes. So there is a contradiction.
So we have: where when n is negative, 0 when n is positive. are .
Lemma 2
For , with , there exist unique such that , where .
Proof:
Consider a set and as a minimal nonnegative element, .
If , we will have which is contradiction.
Lemma 3
Define a ideal in ring called , where is the element of A that form with .
If , then there is a , such that
Proof:
Since a,b are not zero at the same time, so there are positive elements in , we can let d be the smallest positive element.
Let's have , from Lemma 2, we have , with . Now we know , follows that . Since d is the least positive element, so it's a contradiction.
The d is called a greatest common divisor(GCD) of a,b if and every other common divisor divides d. The positive version of d is the GCD.
Lemma 4
Let . If , then d is a GCD of a,b.
Proof:
By definition, and . For any common divisor c, c should divides , which is .
Proposition 1
We can define a,b are relatively prime if (the positive GCD is 1). If and , then .
Proof:
While , we should have . Therefore, , where and , so .
Corollary 1
If p is prime and , then or .
Proof:
Since p is prime, or . In first case, by proposition 1, . In second case, .
Corollary 2
If p is prime and , .
Proof:
Let that and that where and . Now we have, and by Corollary 1. So
Proof of Unique Factorization:
By corollary 2: Obviously, and when . Only when , .
So: Proved.