Posted on

Table of Contents

Pre-Definitions

Let a and b be integers, with b0b\neq0. If there exists an integer c such that b=ac, then b is divisible by a. We use notation aba|b, otherwise, aba\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.

  • aa,a0a|a, a\neq0
  • If aba|b and bab|a, then a=±ba=\pm b
  • If aba|b and bcb|c, then aca|c
  • If aba|b and aca|c, then ab+ca|b+c

Consider nZn\in\Z and p is prime. If n is not 0, there will be a nonnegative integer a allows panp^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,bZa,b\in\Z, with b>0b > 0, there exist unique q,rZq,r\in\Z such that a=qb+ra = qb + r, where 0r<b0 \leq r < b​.

Proof:

Consider a set S=axb xZ,abx0S=\\{ a-xb|\ x \in \mathbb{Z},a-bx\geq 0 \\} and r=aqbSr = a -qb \in S as a minimal nonnegative element, r>0r > 0.

If rbr \geq b, we will have 0a(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 xnZx_n\in \Z​.

If a,bZa,b\in\Z, then there is a dZd\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 0r<d0\leq r<d. Now we know c,d(a,b)c,d\in(a,b), follows that r=cqd(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 ad,bda|d,b|d​ and every other common divisor divides d. The positive version of d is the GCD.

Lemma 4

Let a,bZa,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 cdc|d​.

Proposition 1

We can define a,b are relatively prime if (a,b)=1(a,b)=1 (the positive GCD is 1). If abca|bc and (a,b)=1(a,b)=1, then aca|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 araca|rac and asbca|sbc, so aca|c.

Corollary 1

If p is prime and pbcp|bc, then pbp|b or pcp|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, pcp|c. In second case, pbp|b.

Corollary 2

If p is prime and a,bZa,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 pcp\nmid c and pdp\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 pqp\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.