Group Theory and Linear Algebra

Arun Ram
Department of Mathematics and Statistics
University of Melbourne
Parkville, VIC 3010 Australia
aram@unimelb.edu.au

Last updated: 16 September 2014

Lecture 2: gcd and Euclid's algorithm

Number systems – ℤ, the integers

ℤ= { …,(-1)+ (-1)+(-1), (-1)+(-1), -1,0,1,1+1,1 +1+1,… } with (-1)+1=0, 1+(-1)=0, 0+1=1, 1+0=1, 0+(-1)=-1, (-1)+0=-1.

Let d∈ℤ. The multiples of d is dℤ= { …,(-d)+ (-d)+(-d), (-d)+(-d), -d,0,d,d+d,d +d+d,… } .

Let a,d∈ℤ. The integer d divides a, d|a, if a∈dℤ.

Let x,m∈ℤ. The greatest common divisor of x and m, gcd(x,m), is d∈ℤ>0 such that

(a) d|x and d|m,
(b) If ℓ∈ℤ>0 and ℓ|x and ℓ|m then ℓ|d.

Let a,b∈ℤ. Define a<b if there exists x∈ℤ>0 such that a+x=b;
a≤b if a<b or a=b.

(Euclidean algorithm) Let a,b∈ℤ. There exist unique q,r∈ℤ such that

(a) a=bq+r,
(b) 0≤r<|b|, where |b|= { b, if b∈ℤ>0, 0, if b=0, -b, if -b∈ℤ>0.

If (a) and (b) hold write a=r mod b.

The 15th row of the multiplication table for ℤ36ℤ is · 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 ⋯ 15 15 30 9 24 3 18 33 12 27 6 21 36 15 30 9 24 3 ⋯ Notice that

(a)   15·10 = 150inℤ, 150 = 4·36+6,and 15·10 = 6inℤ36ℤ.
(b) The numbers in row 15 of the multiplication table for ℤ36ℤ are 3,6,9,12,15,18,21, 24,27,30,33,36 (all multiples of 3 in ℤ36ℤ).
(c) 3=15·17+12(-7).

Let x,m∈ℤ. There exists ℓ∈ℤ>0 such that ℓℤ=xℤ+mℤ.

Let x,m∈ℤ. Let ℓ∈ℤ>0 such that ℓℤ=xℤ+mℤ. Let g=gcd(x,m). Then d=ℓ.

(Euclidean algorithm). Let a,b∈ℤ. There exist unique q,r∈ℤ such that

(a) a=bq+r,
(b) 0≤r<|b|, where |b|= { b, if b∈ℤ>0, 0, if b=0, -b, if -b∈ℤ>0.

Proof.

Assume a,b∈ℤ.
To show:
(a) There exist q,r∈ℤ such that
(1) a=bq+r,
(2) 0≤r<|b|.
(b) q,r∈ℤ such that a=bq+r and 0≤r<|b| are unique.
(a) Let bq= the smallest integer in bℤ less than or equal to a and r=a-qb.
To show:
(aa) a=bq+r,
(ab) 0≤r<|b|.
(aa) Since r=a-qb then a=bq+r.
(ab) Since bq≤a and b(q+1)>a,
0≤a-bq and b>a-bq.
So 0≤r and b>r.
(b) Assume q1,r1,∈ℤ and a=bq1+r1 and 0≤r1<|b| and assume q2,r2∈ℤ and a=bq2+r2 and 0≤r2<|b|.
q1=q2 and r1=r2.
Since a-r1=bq1 and 0≤r1<|b|, bq1 is the largest integer in bℤ which is ≤a.
Since a-r2=bq2 and 0≤r2<|b|, bq2 is the largest integer in bℤ which is ≤a.
So bq1=bq2 and q1=q2.
So r1=a-bq1=a-bq2=r2.

□

Using Euclid's algorithm find gcd(1288,1144). Hodgson says: If a=bq+r with 0≤r<|b| then gcd(a,b)=gcd(b,r). 1288 = 1144+144 1144 = 7·144+136 144 = 136+8 136 = 17·8+0 9·144 = 1296 8·144 = 1152 7·144 = 1008 So gcd(1288,144) = gcd(1144,144) = gcd(144,136) = gcd(136,8) = gcd(8,0)=8. Note: 8 = 144-136 = 144-(1144-7·144)= 8·144-1144 = 8(1288-1144)-1144 = 8·1288-9·1144.

Let x,m∈ℤ>0 with 1≤x≤m. There exists ℓ∈ℤ>0 such that ℓℤ=xℤ+mℤ.

Proof.

Let ℓ∈ℤ>0 be minimal such that ℓ∈xℤ+mℤ.
To show: ℓℤ=zℤ+mℤ.
To show:
(a) ℓℤ⊆xℤ+mℤ.
(b) xℤ+mℤ⊆ℓℤ.
(a) Since ℓ∈xℤ+mℤ, ℓℤ⊆xℤ+mℤ.
(b) Assume y∈xℤ+mℤ.
To show: y∈ℓℤ.
Since ℓ is minimal y≥ℓ.
So y=qℓ+r with 0≤r<ℓ.
So r=y-qℓ∈xℤ+mℤ.
So r=0, since ℓ is minimal positive integer in xℤ+mℤ.
So y=qℓ.
So y∈ℓℤ.
So ℓℤ=xℤ+mℤ.

□

Let x,m∈ℤ. Let ℓ∈ℤ>0 such that ℓℤ=xℤ+mℤ. Let d=gcd(x,m). Then d=ℓ.

Proof.

Let d=gcd(x,m).
Let ℓ∈ℤ>0 such that ℓℤ=xℤ+mℤ.
To show: ℓ=d.
To show:
(a) ℓ|d.
(b) d|ℓ.
(a) Since x∈ℓℤ, then ℓ|x.
Since m∈ℓℤ, then ℓ|m.
Since d=gcd(x,m), then ℓ|d.
(b) Since d|x and d|m, then x∈dℤ and m∈dℤ.
So xℤ+mℤ⊆dℤ.
So ℓℤ⊆dℤ.
So ℓ∈dℤ.
So d|ℓ.

□

Notes and References

These are a typed copy of Lecture 2 from a series of handwritten lecture notes for the class Group Theory and Linear Algebra given on July 27, 2011.

page history