Section01 - Integers
Section01 - Integers
Definition We will say that a divides b (written ab) if and only if there is an integer d such that ad = b
Exercise 1
Exercise 2
Solution
ad 1 =b and b c d 2 bd 2 =c.
Lemma 1.
Then ad = c. Therefore a c.
Proof From the definition of divides, we know that there are integers q and r such that dq = a and dr =
b.
Thus a + b = d(q + r), so from the definition again, d (a + b).
Lemma 2.
We say that d is the greatest common divisor of a and b (written d = (a,b) if and only if
(i) d|a and d|b, and
(ii) if c|a and c|b, then c d.
Exercise 4. What are (4, 14) , (5, 15) , and (6, 16)?
Solution
Theorem 1.
Theorem 2.
Given positive integers a and b, b 0,. there exist unique integers q and r, with 0 r < b such
that a = bq + r .
Alt Proof:
If a is a multiple of b the theorem is at once verified, r being in this case 0.
If a is not a multiple of b it must lie between two consecutive multiples of b;
1
75 = 325 +0
Lemma 3.
Proof Proof. Let d = (a, b). We know that since d|a and d|b , it follows from a =bq + r that d|r. Thus d is
a common divisor of b and r. Suppose that c is any common divisor of b and r. We know that c|b and
c|r, and it follows from a = bq + r that c|a. Thus c is a common divisor of a and b ,and hence c d.
Both parts of the definition of greatest common divisor are satisfied, and we have d = (b, r).
Exercise 8. Verify that the lemma is true when a = 16, b = 6, and q = 2.
Exercise
16=26+4
(16,6)=2=(6,4)
a=bq+r,
b =rq 1 +r l ,
0 r1 < r
r =r l q 2 +r 2
...
r k =r k+1 q k+2 +r k+2
Exercise 9.
0 r2 < r1
...
0 r k+2 < r k+1
343=280 1 + 63
280=634 + 28
63=282 + 7
136 = 34 4 +0
28=74 + 0
gcd578, 442 = 34
gcd(343,280)= 7
Theorem 4.
Proof Since d and a are relatively prime, we know from Theorem 4 that there are integers x and y such
that dx+ay=1. Multiplying this by b. we have d(bx)+(ab)y=b. The term d(bx) can of course be divided
by d, and so can (ab)y, since d divides ab. Thus d divides the left-hand side of the last equation and
hence divides the right-hand side too, which is what we wanted to prove.
Corollary 2.
Let (a,b)=d, and suppose that c|a and c|b. Then c|d.
Proof We know that there are integers x and y such that ax+by=d. Since c divides each term on the
left-hand side of this equation, c divides the right-hand side too.
2
Corollary 3.
Proof There is an integer q such that m=bq, and since a|m we have a|bq, But (a,b)=1 , so Corollary 1
says that a|q. Hence there is an integer r such that q=ar, and thus m=bq=bar. That shows that ab|m.
PROBLEMS
Problem 1. Calculate (314,159) and (4144,7696).
Solution 314=159*1+155
4144=7696*0+4144
159=155*1+4
7696=4144*1+3552
4144=3552*1+592
155=4*38+3
4=3*1+ 1
3552=592*5+ 592
592=592*1+0
3=1*3+0
gcd(314,159)= 1. 0
gcd(4144,7696)= 592. 0
100,083=10,001*10+73
1592=1549*1+43
10,001=73*13+52
1549=43*36+ 1
73=52*1+21
43=1*43+0
52=21*2+10
gcd(3141,1592)= 1
21=10*2 + 1
10=1*10+0
gcd10001, 1000083 = 1
Let e=(N,b)
Let f=(N,c)
Thus d=e=f=1
(N,a)=(N,b)=(N,c)=1.
Problem 6. Find two different solutions of 299x+247y=13.
Problem 7. Prove that if a|b and b|a, then a=b or a=-b.
Solution a|b m am = b
Thus bnm = b and amn =a,
and b|a n bn = a
dividing by b and dividing by a
3
nm =1
n, m =1 or n,m = -1
a(1 = b
Problem 8. Prove that if a|b and a>0, then (a,b)=a.
Solution i) a|a and a|b
ii) let c be an arbitrary divisor of a and b. So c|a and c|b. Since the largest divisor of a>0 is a then
c a.
(a,b)=a.
Problem 9. Prove that ((a,b),b)=(a,b).
Solution Let d=(a,b). Thus d|d and d|b.
Let c|(a,b) and c|b
c|d c d.
((a,b),b)=(a,b)
Problem 10. (a) Prove that(n,n+1)=1 for all n>O.
(b) If n>0, what can (n,n+2) be?
Solution a)
i)
ii)
p=q- 1c
c1
Solution b) For n>0, (n,n+2) =1 or (n,n+2)=2
ex (1,3), (2,4),(3,5),(4,6)
Problem 11. (a) Prove that (k, n+k)=1 if and only if (k,n)=1.
(b) Is it true that (k, n+k)=d if and only if (k,n)=d?
Solution Assume (k, n+k)=1 1|k and 1|(n+k )
1|n + k k 1|n
??????????????