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 ad.

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;
ab if a<b or a=b.

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

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

If (a) and (b) hold write a=rmodb.

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 = 6in36.
(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) 0r<|b|, where |b|= { b, ifb>0, 0, ifb=0, -b, if-b>0.

Proof.

Assume a,b.
To show:
(a) There exist q,r such that
(1) a=bq+r,
(2) 0r<|b|.
(b) q,r such that a=bq+r and 0r<|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) 0r<|b|.
(aa) Since r=a-qb then a=bq+r.
(ab) Since bqa and b(q+1)>a,
0a-bq and b>a-bq.
So 0r and b>r.
(b) Assume q1,r1, and a=bq1+r1 and 0r1<|b| and assume q2,r2 and a=bq2+r2 and 0r2<|b|.
q1=q2 and r1=r2.
Since a-r1=bq1 and 0r1<|b|, bq1 is the largest integer in b which is a.
Since a-r2=bq2 and 0r2<|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 0r<|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 1xm. 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 yx+m.
To show: y.
Since is minimal y.
So y=q+r with 0r<.
So r=y-qx+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 xd and md.
So x+md.
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