Posted on

Table of Contents

Pre-Definitions

Let a and b be integers, with b≠0b\neq0. If there exists an integer c such that b=ac, then b is divisible by a. We use notation a∣ba|b, otherwise, a∤ba\nmid b.

Numbers that cannot be factored further is called Primes. A number p is a prime if its only divisors are 1 and p.

The Theorem of Unique Factorization

Every number can be factored into a product of primes in a unique way.

Z\Z denotes the ring of integers, where 1 or -1 divide everything as the units of Z\Z, zero can be divided by any nonzero integer.

  • a∣a,a≠0a|a, a\neq0
  • If a∣ba|b and b∣ab|a, then a=±ba=\pm b
  • If a∣ba|b and b∣cb|c, then a∣ca|c
  • If a∣ba|b and a∣ca|c, then a∣b+ca|b+c​

Consider n∈Zn\in\Z and p is prime. If n is not 0, there will be a nonnegative integer a allows pa∣np^a|n and $p^{a+1} \nmid n $. We call a as the order of n at p, denoted as ordpn\text{ord}_pn. ordpn\text{ord}_pn is the number of times p divides n.

Lemma 1

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

Proof:

Assume N is the smallest positive non-prime number, that cannot be written as a product of primes. We have N=pqN=pq, where 1<p,q<N1<p,q<N​, p,q are not primes. So there is a contradiction.

So we have: n=(−1)ϵ(n)∏ppa(p) n=(-1)^{\epsilon(n)}\prod_{p}p^{a(p)} where ϵ(n)=1\epsilon(n)=1 when n is negative, 0 when n is positive. a(p)a(p) are ordpn\text{ord}_{p}n​.

Lemma 2

For a,b∈Za,b\in\Z, with b>0b > 0, there exist unique q,r∈Zq,r\in\Z such that a=qb+ra = qb + r, where 0≤r<b0 \leq r < b​.

Proof:

Consider a set S=a−xb∣ x∈Z,a−bx≥0S=\\{ a-xb|\ x \in \mathbb{Z},a-bx\geq 0 \\} and r=a−qb∈Sr = a -qb \in S as a minimal nonnegative element, r>0r > 0.

If r≥br \geq b, we will have 0≤a−(q+1)b<r0\leq a - (q+1)b < r​ which is contradiction.

Lemma 3

Define a ideal in ring Z\Z called A=(a1,a2,...,an)A=(a_1,a_2,...,a_n), where ana_n is the element of A that form a1x1+a2x2+...+anxna_1x_1+a_2x_2+...+a_nx_n with xn∈Zx_n\in \Z​.

If a,b∈Za,b\in\Z, then there is a d∈Zd\in\Z, such that (a,b)=(d)(a,b)=(d)​

Proof:

Since a,b are not zero at the same time, so there are positive elements in (a,b)(a,b)​, we can let d be the smallest positive element.

Let's have c∈(a,b)c\in(a,b), from Lemma 2, we have c=qd+rc=qd+r, with 0≤r<d0\leq r<d. Now we know c,d∈(a,b)c,d\in(a,b), follows that r=c−qd∈(a,b)r=c-qd \in (a,b). Since d is the least positive element, so it's a contradiction.

The d is called a greatest common divisor(GCD) of a,b if a∣d,b∣da|d,b|d​ and every other common divisor divides d. The positive version of d is the GCD.

Lemma 4

Let a,b∈Za,b\in\Z. If (a,b)=(d)(a,b)=(d), then d is a GCD of a,b.

Proof:

By definition, a∈(d)a\in(d) and b∈(d)b\in(d). For any common divisor c, c should divides ax+byax+by, which is c∣dc|d​.

Proposition 1

We can define a,b are relatively prime if (a,b)=1(a,b)=1 (the positive GCD is 1). If a∣bca|bc and (a,b)=1(a,b)=1, then a∣ca|c.

Proof:

While (a,b)=1(a,b)=1, we should have pa+qb=1pa+qb=1. Therefore, c(pa)+qbc=cc(pa)+qbc=c, where a∣raca|rac and a∣sbca|sbc, so a∣ca|c.

Corollary 1

If p is prime and p∣bcp|bc, then p∣bp|b or p∣cp|c​.

Proof:

Since p is prime, (p,b)=1(p,b)=1 or (p,b)=p(p,b)=p. In first case, by proposition 1, p∣cp|c. In second case, p∣bp|b.

Corollary 2

If p is prime and a,b∈Za,b\in \Z, ordpab=ordpa+ordpb\text{ord}_p ab=\text{ord}_p a+\text{ord}_p b.

Proof:

Let α\alpha that a=pαca=p^\alpha c and β\beta that b=pβdb=p^\beta d where p∤cp\nmid c and p∤dp\nmid d. Now we have, ab=pα+βcdab=p^{\alpha+\beta}cd and by Corollary 1. So ordpab=α+β=ordpa+ordpb\text{ord}_p ab=\alpha+\beta=\text{ord}_p a+\text{ord}_p b

Proof of Unique Factorization:

By corollary 2: ordqn=ϵ(n)ordq(−1)+∑pa(p)ordq(p) \text{ord}_q n=\epsilon(n)\text{ord}_q(-1) + \sum_p a(p)\text{ord}_q(p) Obviously, ordq(−1)=0\text{ord}_q(-1)=0 and ordq(p)=0\text{ord}q(p)=0 when p≠qp\neq q. Only when p=qp=q, ordq(p)=1\text{ord}_q(p)=1.

So: ordqn=a(q) \text{ord}_qn=a(q) Proved.