State and Prove Fundamental Theorem of Arithmetic. Prove that every positive integer $n > 1$ is either a prime or can be written as a product of primes; this representation is unique, apart from the order in which the factors occur.
(Fundamental Theorem of Arithmetic): Every positive integer $n > 1$ is either a prime or can be written as a product of primes; this representation is unique, apart from the order in which the factors occur.
Proof: If a positive integer $n > 1$ is a prime number, then we are done. So suppose that $n$ is a composite number. Therefore there exists an integer $d$ satisfying $d ~|~ n$ and $1 < d < n$. By Well-Ordering Principle, there exists smallest integer among all such integers $d$ (positive divisors), we will called this smallest integer (smallest positive divisor) as a $p_{1}$. We claim that $p_{1}$ is a prime number. Suppose that $p_{1}$ is not a prime number. So there exists an integer $q$ satisfying $q ~|~ p_{1}$ and $1 < q < p_{1}$. Since $q ~|~ p_{1}$ and $p_{1} ~|~ n$, we will get $q ~|~ n$, a contradiction to choice of smallest positive divisor $p_{1}$ of $n$.
Therefore we can write $n$ as $n = p_{1} \cdot n_{1}$, where $p_{1}$ is a prime number and $1 < n_{1} < n$. If $n_{1}$ is a prime number, then we are done. Suppose $n_{1}$ is not a prime number, then the argument is repeated to produce a second prime number $p_2$ such that $n_{1} = p_2 \cdot n_2$ where $p_2$ is a prime number and $1 < n_2 < n_{1}$. So we can write $n$ as $n = p_{1} \cdot p_2 \cdot n_2$. If $n_2$ is a prime number, then we are done. Suppose $n_2$ is not a prime number, we produce a third prime number $p_3$ such that $n_2 = p_3 \cdot n_3$ where $p_3$ is a prime number and $1 < n_3 < n_2$. So we can write $n$ as $n = p_{1} \cdot p_2 \cdot p_3 \cdot n_3$. we continue this process, we will get decreasing sequence $n > n_{1} > n_2 > n_3 > \cdots > 1 $. This decreasing sequence cannot continue indefinitely, so that after a finite number of steps $n_{k-1}$ is a prime, call it, $p_{k}$· This gives prime factorization of $n$ as $n = p_{1} \cdot p_2 \cdot p_3 ~\cdots~ p_k$.
Now, we prove the uniqueness of the prime
factorization. Suppose that the integer $n$ can be represented as a product of primes in two ways; say, $n = p_{1} \cdot p_2 \cdot p_3 ~\cdots~ p_r = q_{1} \cdot q_2 \cdot q_3 ~\cdots~ q_s$ with $r < s$ where $p_i$ and $q_j$ are prime numbers. written in increasing magnitude so that
$p_{1} < p_2 < p_3 < \cdots < p_r$ and $q_{1} < q_2 < q_3 < \cdots < q_s$
Since $p_{1} ~|~ q_{1} \cdot q_2 \cdot q_3 ~\cdots~ q_s$, by Corollary, $ p_{1} = q_k $ for some $k$;
but then $p_{1} \geq q_{1}$. similarly we can show that $q_{1} \geq p_{1}$. Hence $ p_{1} = q_{1}$. We will cancel
this common factor and obtain
$p_2 \cdot p_3 ~\cdots~ p_r = q_2 \cdot q_3 ~\cdots~ q_s$
Now repeat the process to get $ p_2 = q_2$. and obtain
$p_3 \cdot p_4 ~\cdots~ p_r = q_3 \cdot q_4 ~\cdots~ q_s$
Continue in this fashion. If the inequality $r < s$ were to hold, we would eventually
arrive at
$1 = q_{r+l} \cdot q_{r+2} ~\cdots~ q_s$
which is absurd, because each $q_j > 1$. Hence, $r = s$ and $ p_{1} = q_{1},~ p_2 = q_2, ~\cdots~, p_r = q_r$. Hence uniqueness of prime factorization holds.
Corollary: Any positive integer $n > 1 $ can be written uniquely (as a product of powers of primes) in a canonical form $n = p^{k_{1}}_{1} \cdot p^{k_2}_2 ~\cdots~ p^{k_r}_r $
where, for $i = 1, 2, ... , r$, each $k_i$ is a positive integer and each $p_i$ is a prime, with
$p_{1} < p_2 < \cdots < p_r$.
Proof: By above Theorem, we can write any positive integer $n > 1$ as a product of primes. Suppose that $n = p_{1} \cdot p_{1} \cdot p_{1} ~\cdots~ p_2 \cdot p_2 \cdot p_2 ~\cdots~ p_r \cdot p_r \cdot p_r ~\cdots~$, where $p_i$ is $k_i$ times. By collecting like primes and replacing them by a single factor we get the a canonical form $n = p^{k_{1}}_{1} \cdot p^{k_2}_2 ~\cdots~ p^{k_r}_r $
where, for $i = 1, 2, ... , r$, each $k_i$ is a positive integer and each $p_i$ is a prime, with $p_{1} < p_2 < \cdots < p_r$.