Existence of Prime Factorization
We have classified numbers into two categories: prime numbers and composite numbers. Primes numbers should be considered as the building blocks of all numbers, composite numbers are built from prime numbers by multiplying them together. We will formally state this as the following theorem:
Theorem
Every integer except and can be expressed as a product of prime numbers.
Proof of Theorem
It is sufficient to prove this theorem for positive integers. For a negative number, we can always write it as where is a positive integer, then:
where is also a prime number under our definition.
We will use a proof by contradiction. Let be the set of positive integers that cannot be expressed as a product of prime numbers, and suppose is non-empty. By the well-ordering axiom, has a smallest element . Clearly cannot be a prime number itself, so we can write where . By the minimality of , both and can be expressed as a product of prime numbers:
Therefore, is also a product of prime numbers, which contradicts the assumption that is in . This completes the proof.
Uniqueness of Prime Factorization
Now suppose we have two different prime factorizations of an integer :
We need to show and the two factorizations are the same up to reordering and sign. We assume without loss of generality.
Then divides the right-hand side, so it must divide some by this property. Without loss of generality, we assume . Now by this property of prime numbers, we have . We can cancel and from both sides and get:
We notice again divides the right-hand side, so it must divide some . By the same argument, we have . We can continue this process and conclude for all . Now suppose , then we will have left over primes on the left-hand side, and we will get:
but this is impossible since for all . Therefore, and the two factorizations are the same up to reordering and sign.