ΘρϵηΠατπ

Greatest Common Divisor
suppose that a,b∈ℤ such that (a,b)≠(0,0), then the greatest common divisor of a and b notated as gcd⁡(a,b) is the largest positive integer that divides each of a,b

Therefore gcd⁡:ℤ×ℤ→ℕ1

GCD's Characterization
Let a,b∈ℤ, and let g∈ℤ sugh that g|a∧g|b and ∀d∈ℕ1,(d|a∧d|b)⟹d≤g if and only if g=gcd⁡(a,b)

Note that since d|g⟹d≤g we may use d|g on the right hand side of the implication

GCD is a Linear Combination
For any a,b∈ℤ≠0, there exist integers s,t∈ℤ such that gcd⁡(a,b)=as+bt, moreover gcd⁡(a,b) is the smallest such positive integer of the form as+bt

Define S:={am+bn:m,n∈ℤ and am+bn>;0}, we first note that S cannot be empty. The only way it could be empty would be if that given any choice of m,n we have am+bn<;0, but if that's the case we can always see that −(am+bn)>;0 and note that −(am+bn)=a(−m)+b(−n), which shows that there is an element in S.

Since S⊆ℕ0, the well ordering principle tells us that there is some smallest element of S, say d=aj+bk. We will prove that gcd⁡(a,b)=d.

By the quotient remainder theorem, we have some q,r such that a=qd+r where 0≤r<;d, from here we can see that r=a−qd=a−q(aj+bk)=a(1−qj)+b(qk) at this point in time if r>;0, then we would have a contradiction because r would be a value smaller than d that is an element of S, but we assumed that d was the smallest such element. Therefore, the only way forward is that r=0

If r=0, then a=qd meaning that d divides a, by copying the above text and replacing the variable a with b we obtain a proof that d divides b as well. To complete showing that d=gcd⁡(a,b) we need to prove that d is the smallest divisor.

Suppose that m is another common divisor of a,b, then we have ka,kb∈ℤ, such that a=kam and b=kbm, from d's definition we see d=aj+bk=(kam)j+(kbm)k=m(kaj+kbk), this shows that m|d so that m≤d showing that d is the largest divisor and we conclude d=gcd⁡(a,b)

Relatively Prime implies there is a Linear Combination of One
If a,b are relatively prime, then there exists s,t∈ℤ such that 1=as+bt
By the definition of a,b being reliatively prime, we know that gcd⁡(a,b)=1, then we know that there are integers s,t such that gcd⁡(a,b)=as+bt
Factoring GCD
For any k,a,b∈ℤ such that k≠0 we have gcd⁡(ka,kb)=|k|gcd⁡(a,b)
Forced Division through GCD
Suppose we have n,a,b∈ℤ and that gcd⁡(a,n)=1, then if n|ab then n|b
The gcd is a linear combination, and therefore ax+ny=1 so that abx+nby=b since n|ab then we have some k∈ℤ such that ab=nk therefore nkx+nby=b so that n(kx+by)=b so therefore n|b
If you Can find a Linear Combination that Yields One, then Their gcd is one
Let a,b∈ℤ, there exists x,y∈ℤ such that ax+by=1 if and only if gcd⁡(a,b)=1
⟹ Suppose we have a d∈ℤ such that d|a,b then we know that d|ax+by=1, therefore d=±1, therefore by definition gcd⁡(a,b)=1. ⟸ We know this because gcd is a linear combination
Swapping Factors
Prove that for any a∈ℤ we have gcd⁡(5a+2,7a+3)=1
Observe that (5a+2)(−7)+(7a+3)5=−35a+35a−14+15=1 and therefore gcd⁡(5a+2,7a+3)=1 as needed.
Coefficients have GCD one
Suppose that gcd⁡(a,b)=g and thus we have some x,y∈ℤ such that ax+by=g then gcd⁡(x,y)=1
ax+by=g⟺(ag)x+(bg)y=1 therefore gcd⁡(x,y)=1
Dividing out by GCD removes all Common Factors
Suppose a,b∈ℤ and let d:=gcd⁡(a,b) then gcd⁡(ad,bd)=1
We know that the gcd is a linear combination, so we get some x,y∈ℤ such that d=ax+by therefore 1=(ad)x+(bd)y therefore by the previous proposition we see that gcd⁡(ad,bd)=1
Rational in Lowest Terms
A rational number r∈ℚ written as a fraction r=ab is said to be in lowest terms if gcd⁡(a,b)=1
Lowest Terms Rational Always Exists
For any r∈ℚ it can be represented in lowest terms
Suppose r=ab∈ℚ and let d=gcd⁡(a,b) and consider ab=(1d1d)(ad)=adbd and since we know that gcd⁡(ad,bd)=1 we've proven the statement true
Non Trivial Divisors
Let n∈ℤ such that |n|≥2 then we define ntd⁡(n)={d∈ℕ2:d|n}
Non Trivial Divisors Don't Change with the Sign Changes
For any a∈ℤ ntd⁡(a)=ntd⁡(−a)
Non Trivial Divisors is a Subset of 2 up to The Number
For any n∈ℤ such that |n|≥2 then we have ntd⁡(n)⊆[2,…,n]
The Non Trivial Divisors of n Factorial Plus or Minus One
Suppose that n∈ℕ1 then ntd⁡(n!+1)⊆[n+1,…,n!+1]
Let d∈ntd⁡(n!+1) then we know that d∈[2,…,n!+1] but if d∈[2,…,n] then we already know that d∤n!+1 which is a contradiction, therefore we must have that d∈[n+1,…n!+1] as needed.
Common Divisor Set
Suppose that a,b∈ℤ then we define cd⁡(a,b)={d∈ℤ:d|a∧d|b}
Common Divisors as the Intersection of the Non Trivial Divisors
Suppose that a,b∈ℤ then cd⁡(a,b)=ntd⁡(a)∩ntd⁡(b)∪{1}

Note that it follows that you can flip the sign and the common divisors don't change, this also shows that it can be done in the gcd, TODO add a proof of this.

Common Divisor Set is Bounded Above
cd⁡(a,b)≤min⁡(a,b)
Add a multiple of the other Yields Same Common Divisors
For any a,b,k∈ℤ cd⁡(a,b)=cd⁡(a,b+ka)

⊆ Suppose d|a,b therefore d|a+ka as needed. ⊇ now suppose that d|a,b+ka since d|a then d|ka and therefore d|(b+ka)−ka=b therefore d∈cd⁡(a,b)

No Common Non Trivial Divisors Implies Relatively Prime
Suppose a,b∈ℤ then ntd⁡(a)∩ntd⁡(b)=∅⟹gcd⁡(a,b)=1
Superset Divisors Implies Greater GCD
For any a,b,p,q∈ℤ cd⁡(a,b)⊆cd⁡(p,q)⟹gcd⁡(a,b)≤gcd⁡(p,q)
For any X⊆Y⊆ℤ then max⁡(X)<max⁡(Y) therefore we have gcd⁡(a,b)=max⁡(cd⁡(a,b))≤max⁡(cd⁡(p,q))=gcd⁡(p,q) so that gcd⁡(a,b)≤gcd⁡(p,q) as needed.
Same Divisors Implies same GCD
Suppose that a,b,p,q∈ℤ, then cd⁡(a,b)=cd⁡(p,q)⟹gcd⁡(a,b)=gcd⁡(p,q)
Since cd⁡(a,b)=cd⁡(p,q) then we know that cd⁡(a,b)⊆cd⁡(p,q) and that cd⁡(a,b)⊇cd⁡(p,q) so that we have gcd(a,b)≤gcd⁡(p,q) and gcd⁡(a,b)≥gcd⁡(a,b) so that gcd⁡(a,b)=gcd⁡(p,q) as needed.
Add a multiple of the other Yields same GCD
For any a,b,k∈ℤ we have gcd⁡(a,b)=gcd⁡(a,b+ka)
Since the common divisors are the same, then the gcd of the two is the same
Let n∈ℤ then gcd⁡(n,n+1)=1
Suppose that there existed some d∈ℕ2 such that d|n and d|n+1 then we would have d|n+1−n=1 which implies that d=±1 which is a contradiction, thus the only divisor of n and n+1 is one, so that gcd⁡(n,n+1)=1
Division by Individuals Implies Division by Product when GCD is one
Suppose gcd⁡(a,b)=1 then (a|c∧b|c)⟹ab|c
The gcd is a linear combintion of a,b so ax+by=1 for some x,y∈𝕫 but then acx+bcy=c but recall that a|c and b|c so we have ka,kb∈ℤ such that c=kaa and c=kbb subbing each of these equations into the above equation we have a(bkb)x+b(aka)y=c so therefore (ab)(kbx+kay)=c so that ab|c as needed.
GCD of a Multiple is Greater
For any a,b,k∈ℤ we have: gcd⁡(a,b)≤gcd⁡(ka,b)
Recall this, therefore we can show that cd⁡(a,b)⊆cd⁡(ak,b) thus gcd⁡(a,b)≤gcd⁡(ka,b)
A Divisor of a Coprime number Is also Coprime
Suppose that a,b,d∈ℤ such that gcd⁡(a,b)=1 and d|a then gcd⁡(d,b)=1
Let g:=gcd⁡(b,d) clearly g|d and since d|a then g|a, also we know that g|b and therefore g is a common divisor of a,b and therefore g=1, as needed.
Relatively Prime Factors Implies Relatively Prime Product
Suppose that gcd⁡(a,b)=1 and gcd⁡(a,c)=1 then gcd⁡(a,bc)=1
We have some x1,x2,y1,y2 such that ax1+by1=1=ax2+cy2 So then 1=(ax1+by1)(ax2+cy2)=a2x1x2+ax1cy2+by1ax2+bcy1y2=a(ax1x2+x1by2+by1x2)+bc(y1y2) so therefore gcd⁡(a,bc)=1
GCD of a Factorial
Suppose that n∈ℕ1, determine gcd⁡(n!+1,(n+1)!+1)
We know that gcd⁡(n!+1,(n+1)!+1)=gcd⁡(n!+1,(n!+1)!+1−(n!+1))=gcd⁡(n!+1,(n+1)!−n!)=gcd⁡(n!+1,n!(n+1−1))=gcd⁡(n!+1,n!n)

Note that ntd⁡(n!+1)∩ntd⁡(n)=∅ because ntd⁡(n!+1)⊆[n+1,…,n!+1] and that ntd⁡(n)⊆[2,…,n], therefore gcd⁡(n!+1,n)=1 we also know that gcd⁡(n!+1,n!)=1 therefore gcd⁡(n!+1,nn!)=1

Coprime
a,b∈ℤ are said to be coprime if the only positive integer that divides them is 1.
Coprime GCD Characterization
a,b∈ℤ are coprime if and only if gcd⁡(a,b)=1
⟹ If a,b are coprime, then Da,b={1,−1} and therefore gcd⁡(a,b)=1 as needed. ⟸ if gcd⁡(a,b)=1 then the only positive integer that divides them is 1 because if some other positive integer divided both of them then gcd⁡(a,b)>1 which would be a contradiction.
Least Common Multiple
Suppose that a,b∈ℤ then the least common multiple of a and b notated as lcm⁡(a,b) is the smallest positive integer such that a,b|lcm⁡(a,b)
Least Common Multiple Characterization
The lcm l:=lcm⁡(a,b) is the unique number satisfying
  • a,b|l
  • For every m∈ℤ+,(a,b|m)⟹l≤m

Similarly we may replace l≤m with l|m since it implies l≤m.

GCD and LCM Connection
gcd⁡(a,b)lcm⁡(a,b)=ab

For simplicity let g,l denote the the gcd and lcm respectively, then we're trying to prove that l=abg we'll do that using the characterization, so note that l=a(bd)=b(ad) and that bd,ad∈ℤ since d divides both by definition, thus a,b|l.

Now suppose that there is some m∈ℤ+ such that a,b|m in other words there exists some ka,kb∈ℤ such that m=aka=bkb we'll show that l≤m. Recall that d|a,b and so we get some α,β∈ℤ such that a=αd and b=βd therfore m=aka=bkb⟺(αd)ka=(βd)kb⟺αka=βkb

The above equation shows that α|βkb and β|αka, but note that gcd⁡(α,β)=gcd⁡(ad,bd)=1 therefore by the previous proposition we must have that α|kb and β|ka therefore there is some j∈ℤ such that kb=jα thus finally m=bkb=bjα=b(ad)j=lj therefore l|m so that l≤m. Therefore l=abg and thus gl=ab as needed.

Divisor Function is a Bijection if Relatively Prime
For n∈ℕ1 let Dn denote its set of positive divisors Dn:={a|n:a∈ℕ1}, prove that for any m,n∈ℕ1 that f:Dn×Dm→Dnm defined as f(a,b)=ab is well defined, and is a bijection if gcd⁡(m,n)=1

Recall that a function is well defined if given two equal inputs it cannot map to a different value, this is true simply because for any a,b a⋅b is equal to exactly one value. Additionally note that given a divisor of m and a divisor of n then their product divides mn so under the given definition it respects the functions signature.

Now suppose that gcd⁡(m,n)=1 we want to prove that f is a bijection. First we show that it is injective, so suppose that f(a,b)=f(c,d) and we will prove that (a,b)=(c,d) the first equality we assumed really means that ab=cd, but we also know that a,c|n and that b,d|m therefore we know that gcd⁡(a,d)=gcd⁡(b,c)=1 but from the equation ab=cd we see that a|cd so that a|c, but on the other hand c|ab so that c|a so we conclude that a=c similarly we conclude that b=d so that (a,b)=(c,d) as needed.

Now we show that it is surjective so let x∈Dmn we need to find a (j,k) that gets mapped to x since gcd(m,n)=1 then we know that since x|m,n then x=dndm where dn,dm are divisors of n,m respectively, thus f(dn,dm)=x