Professional Documents
Culture Documents
ANT - Unit 3 Part 2
ANT - Unit 3 Part 2
WORKED EXAMPLES
EXAMPLE1
From the pattern.
1.9+2 1
12.9+3 111
123.9+4 1111
1234.9+5=11111
Write down the nth row and prove the validity of the number pattern.
Solution.
From the given pattern we find the h row is 1-2-3.4-5...n-9+(n+1) [111.
=
n+1 ones
L.H.S =12:3.4...n.9+(n+1)
=91(10- +2(10-)+..+(n-1)-10+n-1+(n+1)
= (10-1)10-+2.10"..+(n-1)-10+n]+(n+1)
= 10" +210"-+3.10-+..+(n-1)-10+n-10
-(10+210 . +(n-1)-10+ n)+(n+1)
= 10" +10-+10"4+.+10-n+n+1
=
10"+10" +10"++ 10+1
= 111.! = R.H.S
(using place value)
(n+1) ones
EXAMPLE 2
Using the number pattern
-0=1
22-1=3
33-2 5
4-3 =7
n-(n- 1? = 2n - 1.
Divisibility Theory and Canonical Decompositions 3.27
the conjecture is
n- (n 1? =2n-1 Vn20
L.H.S=-(n-12
=n-(n-2n+1)=2n-1= R.H.S
EXAMPLE 3
9.9+7 88
98-9+6= 888
987.9+5= 8888
Find the formula for the nth row and prove it.
Solutdon.
Observing the pattern, we find the nth tow is
L.H.S 987..10-n).9+(8-n)
=
9-[9-10+8-10-2 +7.10+...+(11-n)-10
+(10-n)-1+(8-n)
=(10-1)[9-10-+8-10+7-10+..+(11-m)-10
+(10-n)-1]+(8-n)]
=9.10" +810 +7-10 +(11-n) 10 +(10-n)-10
-(9-10"+8.10 +(11-n)-10+(10-n)+(8-n)
= 9-10-(10"+10-+..+10)-(10-n)+8-n
= 10-10"-(10" +10"-l+..+10+1)-1
10 10**-1)
107+1
-9-1010+1-9
3.28 Algebra and Number Theory
10-8]-5ho-
R.H.S= 888..8
(n+1) eights
8-10" +8-10-+8-10-+...+8.10+8
=810"+10-+..10+1
10-1
-10-io-)10-1
L.H.S R.H.S
EXAMPLE 4
Observing the pattern of numbers write down the formula for the nth row and prove it.
1-8+1 9
12-8+2 98
123.8+3=987
1234-8+4 9876
Solution.
From the given number pattern, we find the nth row is
123 ..nx8+n =987... (10-n), 1Sn9
L.H.S= 123...n-8+n
=810+210+3-10+...+(n-1)i0+n-1|+n
Let S =10+2.107-+3.10 . +(n-1) 10+n 1] (1
S=n-1+(n-1).10+... +3.10- +2-10"-2+10"-
It is arithmetic
an
geometric series with the common ratio of the G.P part is 10.
Multiplying (1) by 10. We get
10S =n-10+(n-1)10+.+2.107-+10" (2)
(1)-(2)
9S=n-(10+10 +10-l +10")
=n-10 10-1 )
s0-
Divisibility Theory and Canonical Decompositions 3.29
LHS 1o"
81 -1)-*n
(0-1)-*n=o-i)+
81
9-10-+8-102+7-10- +...+(11-n)-11+(10-n)-1
Let
=(10-m)+10 10
=10-n+a0"-1)-10*
= 10-n+E(10"* -10-9-10*)
90-9-10-8-10+
=80-80-10 -9
(1-10)-n
S1-10)5
R.H.S o"-1)+
81
Definition 3.4 A positive integer p> I is called a prime if its only positive factors are I and p.
Ifp> I is not a prime, then it is called a composite number (or simply composite).
Itis obvious, the integer n is composite if and only if there exists an integer a such that a
and I <a <n.
For example, 5 is prime because its only positive factors are I and 5.
But 6 is a composite number because it has 2 and 3 as factors.
Note that by definition the integer 1 is neither a prime nor a composite number.
l is just the multiplicative identity or unit.
Theorem 3.5 Every integer n 2 2 has a prime factor.
Note From this theorem it follows that if n has no prime factor n , then n is a prime
(contrapositive statement p > q 7 q > 7p)
WORKED EXAMPLES
EXAMPLE1
Show that 101 is a prime.
Solutdon.
Given number is 101.
First we find all primes s|V101=10. The primes are 2, 3, 5, 7.
Since none of these is a factor of 101, (by the above note), we get 101 is a prime.
EXAMPLE 2
Determine whether 1601 is a prime.
Solutlon.
Given number is 1601
First we find all primes V1601= 40o.
31 and 37.
2, 3, 5, 7, 11, 13, 17, 19, 23, 29,
The primes arethat
We can verify
none is a factor of 1601.
of them
Hence 1601 is a prime.
3.32 Algebra and Number Theory
EXAMPLE 3
Determine 1001 is a prime.
Solution.
Given number is 1001. To prove it is a prime.
EXAMPLEE4
Find the smallest prime factor of 119.
Solution.
Given number is 119.
We have to find the smallest prime factor of 119.
Firstwefindallprimes s19=10
The primes are 2, 3, 5,7.
We find 7|119.
So, the smallest prime dividing 119 is 7.
Definition 3.5 Letr be a positive real number. Then mr) denote the number of primes Sx.
For example n(10) = 4 (:2,3,5,7 are the primes s 10)
r(18.75) =7 (: 2,3,5,7,11,13,17 are the primes S 18.75)
If n is a positive integer, then by using inclusion-exclusion principle we state a formula for
the number of primes Sn.
mn
Theorem 3.8 Letp.Pzs.mP, be the primes sn.Then the number of primes Sn is mn) and
rn)=n-1+z(Vn)-
ikj<k|PiPjP*
+(-1)
LPIP2P,J
EXAMPLE 5
Find the number of primes s 47 using Theorem 3.8.
Solutlon.
We have to find the number of primes 47.
Here n = 47, then n= y47 6 .
The primes s(V47) are 2, 3, 5.
Divisibility Theory and Canonical Decompositions 3.33
We know (Ja7)-.
m()=n-1+z(Vn)-
PP,PA
(47)= 47-1+m(V47-
46+3-(23+15+9)+(7+4+3)-1
49-47+14-1
= 15
EXAMPLE 6
Using the formula for {n) find the number of primes 100.
Solutdon.
We have to find the number of primes 100. Here n =
100, and vn =
V100 = 10.
The primes 10 are 2, 3, 5,7.
z(Vi00-4.
We know r(n) = n-1+z(Vn)-
PP P
T(100) =100-1+4-|100|
= 103-(50+33+20+14)+(16+10+7+6+4+2)-(3+1+2+0)-0
25
lim
r(x) 1
Ifx>0,then x
In x
*It is known that 2,3 are the only consecutive integers that are primes.
Also it is known that 3, 5, 7 are the only three consecutive odd integers that are primes.
However, there are many consecutive integers that are composite members. This is given by the
next theorem.
Theorem 3.10 For every positive integer n, there are n consecutive integers that are composite
numbers.
(n+1)! +2, (n+ 1)! +3, (n+ 1)! +4, , (n+ 1)! +(+ 1)
wORKED EXAMPLES
EXAMPLE 1
Find five consecutive composite numbers. AU 2013
Solution.
Here n = 5.
We know the 5 consecutive composite integers are
(n+1)!+2,(n +1)! +3,(n + 1)!+4,(n + 1)! +5,(n + 1)! +6
Putn 5,
Put n= 6
n+1)!+6=7!+6=5040 +6 5046
EXAMPLE 3
Find five consecutive integers < 100 that are composite numbers.
Solution.
5!= 120 > 100
Since
We consider
4!,4!+1, 4! +2, 4!+3, 4! +4,
numbers < 100.
24, 25, 26, 27, 28 are 5 consecutive composite
3.36 Algebra and Number Theory
Note Since gcd (a, -b) = gcd (-a, b) = gcd (-a, -b) =ged (a, b),
we confine our discussion of gcd to positive integers.
Now we give the symbolic definition of gcd.
Theorem 3.11 The gcd of two positive integers a and b is a linear combination of a and b.
ie., ifd=(a, b), then d= la + mb for some integers I and m. [AU 2013
a= qd+ r, 0Sr<d.
r=a-qd
=a-q (la + mb) = (1-q/)a + (-qm)b
d oa+ Bb d|1
d=1 (as d> 0)
(a, b) = 1 > a and b are relatively prime.
Corollary 2 If alc and b|c and (a, b) = 1, then prove that ab|c.
aa (nb) + Bb(ma) = c
(on + Bm)ab = c
ab|c
Note that a |bc does not mean a |b or alc
For example, 6|24 613 8.
But this does not mean that 6|3 or 6|8.
Corollary 3 Ifa and b are relatively prime and if a|be, then a|c.
plb 1>p|b
Corollary 1 Ifp is a
prime and p | 4 *42 43. g
where a, a2, azs. , a, are positive integers,then p |4, for some i, 1siSn.
Hence the primes p. P2, P3s P, are the same as g. 9 2 , , in some order.
Thus the factorization is unique, except for the or
3.40 Algebra and Number Theory
This theorem is also known as unique factorization theorem for positive integers.
For example
2 250 2 240
240 2 3:5
5 125 2 120
250 2:5 5 25 2 60
5 2 30
These are called prime power decomposition.
Since the primes are written in increasing order, 3 15
these decompositions are called canonical decompositions. 5
P P2 Pr are distinct primes with pj P2 ...Pk and a,a2,., are positive integers.
WORKED EXAMPLES
EXAMPLE1
Find the canonical decompositions of
(i) 999
(i) 1024
(ii) 2520
Solution.
We have to find the gcd of 414, 662
First we find the canonical decompositions
2 414 2 662
3 207 331
414 2.3-23 3 69
662 2.331
23
EXAMPLE 3
192=2 3 2 24
We notice that there is no common factor except 1. 2 12
26
(175, 192)=1
EXAMPLE 4
Solution. 180
2 168 2
We have to find ged of 168, 180.
First we find the canonical decompositions 2 84 2 90
2 42 45
168=2.3-7
3 21 3 15
and 180 22.32.5
gcd (168,180) =22.3 =12
EXAMPLE 5
Find the gcd of 120 and 500.
Ifa=p P P andb=pp.P
of and b, then a
are the canonical decompositions
EXAMPLE 6
Use recursion to evaluate
(12, 36, 60, 108).
Solution.
We have to evaluate gcd (12, 36, 60, 108).
We isolate each term from the right and find ged of the inner groups as below
=(12,36)60),108)
Now (12, 36) = 12 [: 12 is a factor of 36]
EXAMPLE7
Use recursion to evaluate (18, 30, 60, 75, 132). [AU 2017]
Solution.
We have to evaluate ged (18, 30, 60, 75, 132). 2 18,30
We isolate each term from the right and then find the gcd of inner
groups.
39,15
3,5-No common
(18,36,60,75,132) =(18,36,60,75),132) factor
- (18,30,60),75).132)
36,75
-(18,30).60).75).132) 2,25-No common
factor
Now (18,30)=2 3=6
(18, 30), 60) = (6, 60) = 6
(:6 is a factor of 60]
(18, 30), 60), 75) = (6, 75) = 3
EXAMPLE 8
Use recursion to evaluate (12, 18, 28, 38, 44).
Solution.
We have to evaluate gcd(12, 18, 28, 38, 44).
3.43
Divisibility Theory and Canonical Decompositions
We isolate each term from the right and then find the ged ofinner groups 2 12, 18
as below
3 6,9
(12,18, 28, 38, 44) = ((12,18,28,38).44) 2,3 No factor
(12.18,28).38).44 2 6,28
(12,18),28).38).44) 3, 14 No factor
EXAMPLE 9
Using recursion evaluate (15, 24, 28, 45).
Solution.
We have to evaluate ged (15, 24, 28, 45). 3 15,24
We isolate each term from the right and then find the gcd of inner No factor
5,8
groups as below
(15, 24, 28, 45) = (15, 24, 28), 45)
(15, 24) =3
Now
EXAMPLE 10
Find the ged of a =2.33.5.7.112
and b=2.3.53.11
Solutlon.
Given a= 22 3.52.7.112
and b= 2.3 5.11
(a,b)=2 3.5.11=29,700
(choosing minimum of powers of common factors)
3.44 Algebra and Number Theory
EXAMPLE 11
Find the gcd of 92928 and 123552.
Solution.
We have to find the gcd of
2 92928 2 123552
92928 and 123552. 2 46464
First we find their canonical decompositions 2 61776
2 23232 2 30888
92928 2 3.11 2 11616 2 15444
123552 23 3 11-13 2 5808 2 7722
thegcd(92928,123552)= 2.3.11 2 2904 3861
= 1056 2 1452 1287
Aliter: We can find gcd as below taking both the numbers 2 726 3 429
2 92928, 123552 3 363 11 143
2 46464, 61776 11 121 13
11
2 23232, 30888
11616, 15444
2 5808, 7722
3 2904, 3861
11968,1287
88, 117 No factor
ged (92928,123552) =25 3 11 =1056.
To prove d d'.
Divisibility Theory and Canonical
Decompositions 3.45
Since d gcd (a, b), d|a and
d|b^d\a- qb
dr.
|bb
Thus d| and d \r and so d |
an
gcd
(b, r) =»d|d'.
Sinced' =gcd (6, r), d'|b and d'|r.
(0) d'a
Thusd' | a and d'|b and so d' | gcd (a, b) =»d' |d
Hence d= d' ^ gcd (a, b) = gcd (b, r)
The gcd (b, r) means the gcd of the divisor and remainder.
EXAMPLE 1
Euclidean algorithm.
Find the gecd (414, 662) using
414 662 248) 414
Solution. 662 > 414. 414 248
662). Here
we have to find the gcd (414, we get
166
successively,
algorithm
248
division
APplying
662 = 1(414) + 248
2 41
414 1(248)+166
248 1(166)+82 166) 248 82 166 2) 82
166 164 8
166 2(82)+|2 2
82
82 = 41(2)+0
2.
remainder is
ne last non-zero 2
ged (662, 414)
=
the
3.46 Algebra and Number Theory
EXAMPLE 2
AU 2018
Euclidean algorithm.
Find the ged (2076, 1776) using
1 5
Solution.
1776 2076 300) 1776
Here 2076> 1776.
get: 1776 1500
Applying division algorithm successively
we
300 276
2076 1(1776) +300
1776 5(300)+276
300 1(276) + 24 11
24) 276 276 300
276 11(24)+|12 276
24
24 2(12)+0 34 24
The last nonzero remainder is 12 24
the ged (2076, 1776) = 12 10
.
EXAMPLE 3
[AU 2017
Apply Euclidean algorithm to compute (3076, 1976).
Solution.
We have find the ged of 3076 and 1976.
Here 3076 > 1976.
Applying the division algorithm successively, we get
1976 3076 1100) 1976 876) 1100
3076 11976) +1100
1976 1(1100) +876
1976 1100 876
1100 876 224
1100 1(876) +224
10 1
876 3(224)+204
224 1(204) + 20 224 876 20) 204 204 224
672 200 204
204=10(20)+4 204 4 20
20 5(4)+0
The last nonzero remainder is 4
the gcd (3076, 1976) =4
EXAMPLE 4
Apply Euclidean algorithm to express the ged of 1976 and 1776 as a linear combination of them.
[AU 20171
Solution.
We have to find the gcd of 1976 and 1776. Here 1976 > 1776.
Applying division algorithm successively, we get
(1976, 1776) = 8
= 176-7(24)
= 176-7[200- 1(176)]
8 (176)-7(200)
Solutdon.
We have to find the gcd of 4076 and 1024. Here 4076 >1024. 3
By applying division algorithm successively, we get 1024) 4076 1004 1024
4076 3(1024)+1004 3072 1004
1024 =1(1004) + 20 1004 20
1004=50(20) +4
20 5(4)+0 50
The last nonzero remainder 20 1004
is
4. 4 20
the gcd (4076, 1024) = 4 100 20
Using the above equations in reverse order.
3.48 Algebra and Number Theory
= 1004-50(20)
= 51 [4076-3(1024)]-50(1024)
=51 (4076) -
203(1024)
= 51 (4076) + (-203) (1024)
m=4P1 P2 P t
Clearly m >PA and is ofthe form 4n +3 (Here n=P1 P2.. Pe
If m is a prime, then m is a prime larger, than the largest prime p
which is a contradiction.
Ifm is not a prime, then m is a composite number.
Clearly m is an odd number.
So, every factor of m is of the form 4n + 1 or 4n +3.
Suppose every factor is ofthe form 4n+1, then their product will be ofthe form 4n+ 1.
m will be of the form 4n + 1. :(4+1(4m+1) = 16m+4(1+m)+1 = 4[4/m+l+m]+1
Since m is of the form 4n +3, at least one of the factors of m, say p, is of the form 4n +3.
fp=Po =3, then 3 m and 3 |3 3m-3
For any positive integer n, Prove that 8n + 3 and 5n +2 are relatively prime.
Soluton.
Toprove (8n + 3, 5n +2) 1 =
gcd (11, 7) =1
Hence it is true when n =
1
Forn2 2, we have 8n +3>
Sn +2. By division algorithm, 1
8n+3 1 (5n+2)+(3n +1), 0< 3n+1<5n+2 Sn+2 8n +3
Sn+2 1 (3n+1)+(2n+1), 0< 2n+1< 3n+1 5n +3
3n + 1
3n+1 1 (2n+1)+n
2n+1 2(n) +|
n=1n+0 1
the last nonzero 3n+2) Sn +2
remainder is 1. 3n +1
gcd (8n+3, 5n 2n+1
+2)=1 Vn22
So, 8n+ 3 and 5n +2 are relatively prime for any positive integer.
EXAMPLE 7
Prove that (a, a -
la+ma + mb-ma= 1|
(adding ma and substracting ma)
(1+m)a m(a -b) =1
(+m)a + (-m) (a -b) =1
(a, a -b)=1
Conversely, let (a, a - b) = 1. To prove (a, b) = 1.
Then there exist integers a and B such that aa + Ba - b) = 1
au + a-Bb = 1
(a+B)a +(-B)b = 1
(a, b) = 1
Note Similarly, we can prove that if (a, b) = 4, then (a, a -b) =d.
3.50 Algebra and Number Theory
EXAMPLE8
If the square of an integer is odd, then prove that the integer is odd.
Solution.
Let n be an integer such that 2 is odd.
To prove n is odd.
Suppose n is not odd, then n is even.
n2 4m22(2m),
which is even and hence a contradiction.
n is odd.
Similarly, we can prove that ifn' is even, then n is even.
EXAMPLE 9
If (a, b) = 1, then prove that (a",6)=1.
Solution.
Given (a, b) = 1.
To prove (a", b) = 1.
Suppose (a7, b>) # 1, then a and b have a common factor and hence have a prime factor p.
pla andp |1
Pla a andp |b -b
EXAMPLE 10
Ifa and b are positive integers such that bja and bla + 2, prove that b = 1 or 2.
Solution.
Given blaand b|a+2
b|la + ma +2) for all integers /, m.