Unique Factorization in Z
Factorization
Integer Ring Z
Z={0,−1,1,−2,2,−3,3,…} is the ring of integers with the usual definition of the sum and product operations.
- If p positive and prime, then −p is also prime.
- Every nonzero integer divides zero.
- No number can be divided by zero.
The division operator over Z has the following properties,
- ∀a=0,a∣a (reflexive),
- If a∣b and b∣a, then a=±b (symmetric),
- If a∣b and b∣c, then a∣c (transitive),
- If a∣b and a∣c, then a∣b+c.
Let n∈Z∖{0} and let p be prime, then ∃e,pe∣n∧pa+1∤n.
Order
If p,e,n∈Z+, then ∃a,pe>n.
We say that e is the order of n at p and write ordpn=a.
- Roughly, e is the number of times that p divides n.
- For n=0, we set ordp0=∞.
- ordpn=0⟺p∤n.
Every nonzero integer can be written as a product of primes.
Sps. there exists an integer N such that it is the smallest positive integer that cannot be expressed as the product of primes.
It follows that N cannot be prime itself; as such, there must exist 1<m,n<N such that N=mn.
Notice that because m,n∈Z+ and strictly smaller than N, m,n must each be a product of primes.
Contradiction.
If m,n are products of primes, then N=mn must be as well.
Factorization
We can collect prime terms and we can write n=p1e1p2e2…prer, or
n=(−1)ε(n)p∏pa(p),
where ε(n) yields 0 or 1 depending on the sign of n, and the product is over all positive primes. The exponents a(p) are nonnegative integers, and a(p)=0 for a countably infinite number of primes.
For every nonzero integer n there exists a prime factorization uniquely determined by n,
n=(−1)ε(n)p∏pa(p),
where a(n)=ordp(n).
Greatest Common Divisor
If a,b∈Z and b>0, there exists q,r∈Z such that a=qb+r with 0≤r<b.
Consider all integers of the form a−xb where x∈Z. Let r=a−qb be the least nonnegative element in this set. We claim that 0≤r<b. If not, r=a−qb≥b and so 0≤a−(q+1)b<r. Then r is not the minimal nonnegative element, contradiction.
Ideals on Z
If a1,a2,…,an∈Z, then define A=(a1,a2,…,an) to be the set of all integers of the form a1x1+a2x2+⋯+anxn with x1,x2,…,xn∈Z.
Notice that the sum and difference of any two elements in A is also in A.
If a∈A and r∈Z, then ra∈A.
Then, A is an ideal of ring Z.
If a,b∈Z, then there exists d∈Z such that (a, b) = (d).
Assume wlog. that a and b are not both zero, so that there are positive elements in (a,b).
(⇒)
Let d be the smallest positive element in (a,b).
Clearly, (d)⊆(a,b).
(⇐)
Sps. that c∈(a,b).
By Lemma 2, there exists integers q and r such that c=qd+r with 0≤r<d.
Since both c,d∈(a,b) it follows that r=c−qd∈(a,b).
And 0≤r<d implies r=0.
Therefore, c=qd∈(d).
Greatest Common Divisor
Sps. a,b,d∈Z, if d∣a and d∣b and every other common divisor of a and b divides d, then we say that d is the greatest common divisor (gcd) of a and b and write (a,b)=d.
If c is another greatest common divisor, distinct from d, then we must have c∣d and d∣c, so c=±d.
If there exists a gcd between two numbers, then it is determined up to sign.
Let a,b∈Z, if (a,b)=(d), then d is the greatest common divisor of a and b.
Since a∈(d) and b∈(d), we see that d∣a and d∣b.
Sps. c is a common divisor. Then c divides every number of the form ax+by, particularly c∣d.
Coprimality
Coprime
Sps. a,b∈Z such that (a,b)=±1. We say that a and b are coprime (or relatively prime)
Proposition 1
Sps. a∣bc and that (a,b)=1, then a∣c.
Since a, b coprime, there exists integers r and s such that ra+sb=1.
Therefore, rac+sbc=c.
Since a divides the left hand side, we get that a∣c.
Corollary 1
If p prime and p∣bc, then either p∣b or p∣c.
The divisors of p are ±1 and ±p. Then (p,b)∈{1,p} i.e. either p,b coprime or p∣b, in which case we are done. Otherwise, if (p,b)=1, then by proposition 1 we get that p∣c.
Then, if p prime, p∤b and p∤c, then p∤bc.
Corollary 2
Sps. p prime and that a,b∈Z, then ordp(ab)=ordp(a)+ordp(b).
Let α=ordpa and β=ordpb.
Then a=pαc and b=pβd, where p∤c and p∤d. Then ab=pα+βcd and p∤cd by corollary 1. Therefore, ordpab=α+β=ordpa+ordpb.
Unique Factorization Proof
Finally, the proof. If we apply ordp to both sides of
n=(−1)ε(n)p∏pa(n),
and utilize the property of ordq given in corollary 2, we get
ordqn=ε(n)ordq(−1)+p∑a(p)ordqp.
Then, by definition of ordq, we get ordq(−1)=0 and ordqp=0 if p,q are distinct and 1 otherwise.
Then, the right hand side can be simplified into a(q), i.e. ordqn=a(q). qed.