ΘρϵηΠατπ

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|ag|b and d1,(d|ad|b)dg if and only if g=gcd(a,b)

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

GCD is a Linear Combination
For any a,b0, 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 S0, 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 0r<;d, from here we can see that ramp;=aqdamp;=aq(aj+bk)amp;=a(1qj)+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 md 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 k0 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+35a14+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)={d2: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 n1 then ntd(n!+1)[n+1,,n!+1]
Let dntd(n!+1) then we know that d[2,,n!+1] but if d[2,,n] then we already know that dn!+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|ad|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 dcd(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 XY 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 d2 such that d|n and d|n+1 then we would have d|n+1n=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|cb|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 1amp;=(ax1+by1)(ax2+cy2)amp;=a2x1x2+ax1cy2+by1ax2+bcy1y2amp;=a(ax1x2+x1by2+by1x2)+bc(y1y2) so therefore gcd(a,bc)=1
GCD of a Factorial
Suppose that n1, determine gcd(n!+1,(n+1)!+1)
We know that gcd(n!+1,(n+1)!+1)amp;=gcd(n!+1,(n!+1)!+1(n!+1))amp;=gcd(n!+1,(n+1)!n!)amp;=gcd(n!+1,n!(n+11))amp;=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)lm

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

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 lm. 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 lm. Therefore l=abg and thus gl=ab as needed.

Divisor Function is a Bijection if Relatively Prime
For n1 let Dn denote its set of positive divisors Dn:={a|n:a1}, prove that for any m,n1 that f:Dn×DmDnm 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 ab 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 xDmn 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