posted 6 Jan 2022

Unique Factorization in Z\mathbb{Z}


§ Factorization

Integer Ring Z\mathbb{Z}

Z={0,1,1,2,2,3,3,}\mathbb{Z} = \{0, -1, 1, -2, 2, -3, 3, \dots\} is the ring of integers with the usual definition of the sum and product operations.

  • If pp positive and prime, then p-p is also prime.
  • Every nonzero integer divides zero.
  • No number can be divided by zero.

The division operator over Z\mathbb{Z} has the following properties,

  1. a0,aa\forall a \neq 0, a | a (reflexive),
  2. If aba | b and ba,b | a, then a=±ba = \pm b (symmetric),
  3. If aba | b and bc,b | c, then aca | c (transitive),
  4. If aba | b and ac,a | c, then ab+c.a | b + c.

Let nZ{0}n \in \mathbb{Z}\setminus\{0\} and let pp be prime, then e,penpa+1n.\exists e, p^e | n \wedge p^{a+1} \nmid n.

Order

If p,e,nZ+,p, e, n \in \mathbb{Z}^{+}, then a,pe>n.\exists a, p^e \gt n.

We say that ee is the order of nn at pp and write ordpn=a.\text{ord}_p n = a.

  • Roughly, ee is the number of times that pp divides n.n.
  • For n=0,n = 0, we set ordp0=.\text{ord}_p 0 = \infty.
  • ordpn=0    pn.\text{ord}_p n = 0 \iff p \nmid n.

Every nonzero integer can be written as a product of primes.

Sps. there exists an integer NN such that it is the smallest positive integer that cannot be expressed as the product of primes.

It follows that NN cannot be prime itself; as such, there must exist 1<m,n<N1 \lt m, n \lt N such that N=mn.N = mn. Notice that because m,nZ+m, n \in \mathbb{Z}^{+} and strictly smaller than N,N, m,nm, n must each be a product of primes.

Contradiction.

If m,nm, n are products of primes, then N=mnN = mn must be as well.

Factorization

We can collect prime terms and we can write n=p1e1p2e2prer,n = p_1^{e_1}p_2^{e_2}\dots p_r^{e_r}, or

n=(1)ε(n)ppa(p),n = (-1)^{\varepsilon(n)} \prod_p p^{a(p)},

where ε(n)\varepsilon(n) yields 0 or 1 depending on the sign of n,n, and the product is over all positive primes. The exponents a(p)a(p) are nonnegative integers, and a(p)=0a(p) = 0 for a countably infinite number of primes.

For every nonzero integer nn there exists a prime factorization uniquely determined by n,n,

n=(1)ε(n)ppa(p),n = (-1)^{\varepsilon(n)} \prod_p p^{a(p)},

where a(n)=ordp(n).a(n) = \text{ord}_p(n).

§ Greatest Common Divisor

If a,bZa, b \in \mathbb{Z} and b>0,b > 0, there exists q,rZq, r \in \mathbb{Z} such that a=qb+ra = qb + r with 0r<b.0 \leq r \lt b.

Consider all integers of the form axba - xb where xZ.x \in \mathbb{Z}. Let r=aqbr = a - qb be the least nonnegative element in this set. We claim that 0r<b.0 \leq r \lt b. If not, r=aqbbr = a - qb \geq b and so 0a(q+1)b<r.0 \leq a - (q + 1)b \lt r. Then rr is not the minimal nonnegative element, contradiction.

Ideals on Z\mathbb{Z}

If a1,a2,,anZ,a_1, a_2, \dots, a_n \in \mathbb{Z}, then define A=(a1,a2,,an)A = (a_1, a_2, \dots, a_n) to be the set of all integers of the form a1x1+a2x2++anxna_1x_1 + a_2x_2 + \dots + a_nx_n with x1,x2,,xnZ.x_1, x_2, \dots, x_n \in \mathbb{Z}.

Notice that the sum and difference of any two elements in AA is also in A.A. If aAa \in A and rZ,r \in \mathbb{Z}, then raA.ra \in A.

Then, AA is an ideal of ring Z.\mathbb{Z}.

If a,bZ,a, b \in \mathbb{Z}, then there exists dZd \in \mathbb{Z} such that (a, b) = (d).

Assume wlog. that aa and bb are not both zero, so that there are positive elements in (a,b).(a, b).

(\Rightarrow) Let dd be the smallest positive element in (a,b).(a, b). Clearly, (d)(a,b).(d) \subseteq (a, b).

(\Leftarrow) Sps. that c(a,b).c \in (a, b). By Lemma 2, there exists integers qq and rr such that c=qd+rc = qd + r with 0r<d.0 \leq r \lt d. Since both c,d(a,b)c, d \in (a, b) it follows that r=cqd(a,b).r = c - qd \in (a, b). And 0r<d0 \leq r \lt d implies r=0.r = 0. Therefore, c=qd(d).c = qd \in (d).

Greatest Common Divisor

Sps. a,b,dZ,a, b, d \in \mathbb{Z}, if dad | a and dbd | b and every other common divisor of aa and bb divides d,d, then we say that dd is the greatest common divisor (gcd) of aa and bb and write (a,b)=d.(a, b) = d.

If cc is another greatest common divisor, distinct from d,d, then we must have cdc | d and dc,d | c, so c=±d.c = \pm d. If there exists a gcd between two numbers, then it is determined up to sign.

Let a,bZ,a, b \in \mathbb{Z}, if (a,b)=(d),(a, b) = (d), then dd is the greatest common divisor of aa and b.b.

Since a(d)a \in (d) and b(d),b \in (d), we see that dad | a and db.d | b. Sps. cc is a common divisor. Then cc divides every number of the form ax+by,ax + by, particularly cd.c | d.

§ Coprimality

Coprime

Sps. a,bZa, b \in \mathbb{Z} such that (a,b)=±1.(a, b) = \pm 1. We say that aa and bb are coprime (or relatively prime)

Proposition 1

Sps. abca | bc and that (a,b)=1,(a, b) = 1, then ac.a | c.

Since a,a, bb coprime, there exists integers rr and ss such that ra+sb=1.ra + sb = 1. Therefore, rac+sbc=c.rac + sbc = c. Since aa divides the left hand side, we get that ac.a | c.

Corollary 1

If pp prime and pbc,p | bc, then either pbp | b or pc.p | c.

The divisors of pp are ±1\pm 1 and ±p.\pm p. Then (p,b){1,p}(p, b) \in \{1, p\} i.e. either p,bp, b coprime or pb,p | b, in which case we are done. Otherwise, if (p,b)=1,(p, b) = 1, then by proposition 1 we get that pc.p | c.

Then, if pp prime, pbp \nmid b and pc,p \nmid c, then pbc.p \nmid bc.

Corollary 2

Sps. pp prime and that a,bZ,a, b \in \mathbb{Z}, then ordp(ab)=ordp(a)+ordp(b).\text{ord}_p (ab) = \text{ord}_p(a) + \text{ord}_p(b).

Let α=ordpa\alpha = \text{ord}_p a and β=ordpb.\beta = \text{ord}_p b. Then a=pαca = p^{\alpha}c and b=pβd,b = p^{\beta}d, where pcp \nmid c and pd.p \nmid d. Then ab=pα+βcdab = p^{\alpha + \beta}cd and pcdp \nmid cd by corollary 1. Therefore, ordpab=α+β=ordpa+ordpb.\text{ord}_p ab = \alpha + \beta = \text{ord}_p a + \text{ord}_p b.

§ Unique Factorization Proof

Finally, the proof. If we apply ordp\text{ord}_p to both sides of

n=(1)ε(n)ppa(n),n = (-1)^{\varepsilon(n)} \prod_p p^{a(n)},

and utilize the property of ordq\text{ord}_q given in corollary 2, we get

ordqn=ε(n)ordq(1)+pa(p)ordqp.\text{ord}_q n = \varepsilon(n) \text{ord}_q(-1) + \sum_p a(p)\,\text{ord}_q p .

Then, by definition of ordq,\text{ord}_q, we get ordq(1)=0\text{ord}_q (-1) = 0 and ordqp=0\text{ord}_q p = 0 if p,qp, q are distinct and 11 otherwise.

Then, the right hand side can be simplified into a(q),a(q), i.e. ordqn=a(q).\text{ord}_q n = a(q). qed.