Section 4.3 – Primes¶
definition: A natural number $p > 1$ is called a prime number if it is divisible only by itself and $1$.
A number $n > 1$ that is not prime is composite.
Note: $1$ is neither prime nor composite (it is "the unit").
Lemma¶
Given a natural number $n > 1$,
Proof¶
By Contradiction
Suppose to the contrary that there are natural numbers that are not divisible by a prime. By the Well-Ordering principal there is a smallest such natural number, $n$. If $n$ is prime,
which is a contradiction. If $n$ is composite, then there exist $k \in \mathbb N$ where $0 < k < n$ is not prime where,
but since $n$ the smallest natural number that is not divisible by a prime,
so $p \mid n$ which is a contradiction.
Fundamental Theorem of Algebra¶
Every natural number $n > 1$ can be written as the product of prime powers in exactly one way (up to ordering). That is, for any $n > 1$, we can write $n$ as a prime factorization.
where $p_1$ is prime, and $e_i \ge 1$.
Examples
Consequences of $\mathcal{FTA}$¶
If $n = p_1^{e_1} p_3^{e_2} p_3^{e_3}... p_k^{e_k}$ then,
for $1 \le i \le k$.
If $n = p_1^{e_1} p_3^{e_2} p_3^{e_3}... p_k^{e_k}$ and,
then,
where $0 \le d_i \le e_i$.
If $p$ is prime and $p \mid a^2$, then,
and in fact $p^2 \mid a^2$.
If $a = kb$, then $a$ and $kb$ have the same decomposition.
Example
Proposition¶
For a prime $p$, if $p \mid a \cdot b$, then,
Proof¶
If $p \mid a$ then we're done.
If $p \nmid a$ then , the $\gcd(p,a) = 1$, so by yesterday's corollary $p \mid b$.
Theorem¶
There are infinitely many primes.
Proof¶
Suppose to the contrary that there are only a finite number of primes, call them,
Consider,
since $N$ is larger than any $p_i$, $N$ is not prime ($N$ is composite). By the Lemma some prime divides $N$, since $p_1,p_2,...,p_n$ are all the primes,
where $0 \le i \le n$. So,
where $m = p_1 p_2...p_{i-1}p_{i-2}...p_n$. So when we divide $N$ by $p_i$ we have a remainder of $1$. So $p_i \mid n$ which a contradiction.
Paired Primes¶
Like,
theres a conjecture that there are infinitely many paired primes. However it has yet to be proven.
Proposition (Test for Primality)¶
If $n > 1$ is composite,
then we know it has a prime divisor $p$ between $1 \le p \le \sqrt{n}$.
Example
Is $353$ prime?
Solution
$\sqrt{353} = 18.7$ so we need to test,
Since none of these number divide $353$, $353$ is prime.
Finding GCD using Prime Factorizations¶
If,
for $a_i \ge 0$ and,
for $b_i \ge 0$ then,
and,
Example
Find $\gcd(270,1575)$. Using the $\mathcal{FTA}$,
So,
and,