Professional Documents
Culture Documents
ANT - Unit 3 Part1
ANT - Unit 3 Part1
Canonical DecompositionsS 3
3.0 INTRODUCTION
The counting numbers 1, 2, 3, 4,..,
These numbers are also known as the natural considered to be man's first mathematical creation.
n, are
...
integers n 2 no
Induction:
2. Second Principle of Induction or Strong Principle of
Let p{n) be a proposition corresponding to positive integers satisfying
n the following conditions:
) p(n) is true for some integer no
k
(i) If the proposition is true for all integers upto (> no).
1) is
2),. p(k) are true, then p(k
+ true.
i.e., if plng+ 1).p(n% +
Then p(n) is true for all integers n 2 ng
Note induction. or 2
be 1 or 3,..
. In both the principles (i) is called the basis for
condition n may
is called
p(n) is the basis step. The assumption in condition (ii)
The verification of the truth of inductive or induction step.
step
is true is the
the induction hypothesis. Verification of p(k+ 1)
3.2 Algebra and Number Theory
Note
1. The well ordering principle can be extended to the set of non negative integers and also to the set
of integers 2 k for some integer k.
2. The well-ordering principle is logically equivalent to the principle of induction.
Proof
G) If a* 0, ala (: a=a-1)
(i) alb b=4q aand ble c=42 b
where a 0, b#0 in Z, 41. 92 are some integers
:.c= 92(91a) =(9241)a alc.
Divisibility Theory and Canonical Decompositions 3.3
(ii) a lb b=qja
be
(q,a)c q, (ac)
=
= =
qi (ca) =
(4©)a
a lbc vb e Z.
(iv) ab= b=qa and a c C=424
for some integers q and g, e Z
xb+ yc =
x(ga)+ y42a)
=
(xg, )a +g2)a
=
(xq1 + yq2 )a; xgi + yg2 is an integer
a
| xb+ ye
Note xb + yc is called a linear combination of b and c.
If x= 1,y= 1, alb+c and ifx =1,y=-1, a|b- c.
Next we shall see the division algorithm as an application of well-ordering principle.
Theorem 3.2 The division algorithm.
Let a be any
integer and b be a positive integer.
Then there exist unique integers q and r such that a=qb+r, where 0 S r<b.
r=a-q b, where r2 0.
blr-r
I f r - r *0, then b |r-7, which is a contradiction (-d<b)
r-r=0 n=r
Hence (q-41)b=0 g - 4 1 =0 (b>0)
the expression a =qb +r, 0 ar<bis unique, which is the division algorithm.
WORKED EXAMPLES
EXAMPLE 1
Find q and r when
(i) 207 is divided by 15
(i) -23 is divided by 5. 13
15) 207
Solution.
G) We have 207 13(15) + 12, 0< 12< 15 15
57
g= 13 and r= 12.
45
(ii) We have -23-5(5)+2, 0<2<5
12
q=-5 and r = 2.
Divisibility Theory and Canonical Decompositions 3.5
EXAMPLE 2
Let b be an integer 22. Suppose b + 1 integers are randomly selected prove that the difference
of two of them is divisible by b.
IAU 2013]
Solution.
Given b is an integer2 2.
We know, when an integer a is divided by b, we have the division algorithm a =q b+r,0Sr<b.
Given b+1 integers are selected
randomly.
When they are divided by b, we get b + 1 remainders
(pigeons).
But there are only b possible remainders
(pigeon holes).
So, by pigeon hole principle two of the remainders must be
equal and equal to r.
Let x and y be the numbers among the b + 1 numbers with remainder r when x and y are
divided by b.
Then x =g,b+rand y =q, b+r
X-y91b-42b=(4 -42)b
blx-y
Hence the result.
We now recall some simple functions which are frequently used in our discussion.
Jx if x20
-rif x<0o
2. Greatest integer function
=the greatest integer Sx.
In computer science the greatest integer function is called floor function and is denoted
by Lx.
3. The |x|
ceiling function is the least
integer2x.
Forexample, |-3.4] = the greatest integer -3.4 is4
Theorem 3.3 Let a and b be any positive integers. Then the number of positive integers Sa
and divisible by b is
3.6 Algebra and Number Theory
6-109.26J-100.
19
Corollary In the set of integers {1, 2, 3, ...n} the number of integers divisible by a prime p is
Instead of floor function notation, we will be using greatest integer function notation.
Ifp.P2 are distinct primes, the numbers of integers divisible by p, P2 is
LP1P2. PIP2
3.2.1 Inclusion Exclusion Principle
If S is a set, the number of elements in S is denoted by |S|.
IfA, B, Care finite sets, then
1. 4uB=|4+|p|-|4nB|
=S-S2
where S sum taken one at a time
= |4+|B|
S =AnB
2. 4UBUC|= S -S2 +S,
where S = sum taken one at a time
=14+|B+|c
S = sum taken two at a time
=|4nB+|4nC]+|BnC]
Sy =|4nBnC
3 4uBUCuD =S -S2 +S-S4.
where S =14+|p|+|C|+|D [one at a time, 4c = 4 terms
S =|4nB+|4nC|+|4nD]+|BnC|+|BoD]+|CnD
[taken two at a time, 4c2 = 6 terms)
Sy =|AnBnC+|4nCnD+|4nBnD]+|BnCnD
[taken three at a time, 4c = 4 terms
S = |AnBnCnD
WORKED EXAMPLES
EXAMPLE 1
1976 3776
divisible by 13 is = = [152]=152
The number of positive integers S 3776 that are divisible by 13 is
P290.46]- 290
. The number of positive integers from 1976 to 3776 that divisible by 13 is
290 152 +1
= 139
3770-1976+1
13
= 138+1
= 139
EXAMPLE 2
Find the number of positive integers S 2076 and divisible by neither 4 nor 5. AU 2013, 20181
Solution.
that are divisible by 4 or 5.
First we find the number of positive integers S 2076
3.8 Algebra and Number Theory
AUB= S1 -S2
Where S =|A+|B|
S =|4nB|
Now
14-2-s19)-519
Pl -415.2]-415
S =
|4+|B= 519+415 934
A'OB'=(AUB)
EXAMPLE 3
Find the positive integers S 3000 and divisible by 3, 5 or 7. AU 2018
Solutlon.
Let A, B, C be the set of numbers 3000 that are divisible by 3, 5, 7 respectively.
Required AUBUC
By inclusion and exclusion principle, we get
4UBUC|= S -S, +S
Now
M--1o0o 1000
l - - 0 0 ) =600
S =14+|B+C=1000+600+428= 2028
Now
AnM-23- o-4
Anc--125]-25
4nD= =17.8]-17
lBnc-(16.0]-16
BD 3-19-11
Dx7-714=7
S =41+25+17+16+11+7=117
Now
l4nBnd- 250-8.3-8
4nBnD= 5.95)=5
250
4nCnD2x5x7B57=3
250
BnCnD-x5x7-238 =2
S =8+5+3+2=18
250
and S =|AnBnCnD|2x3x5x7]
193
AUBUCUD= 293-117+18-1 =
EXAMPLE 5
11.
Find the number of positive integers
in the range 1976 through 3776 that are not divisible by
Solution.
that are divisible by 17.
First we shall find the number of integers
are divisible by 17 is
The numbers of integers 1976 that
-16.2]= 16
17
3.11
37-22-22
the number of integers from 1976 to 3776 that are divisible by 17 is =222-116
= 106
the number of integers from 1976 to 3776 that are not divisible by 17 is
total number of numbers 106
But the total number of integers from
= 1800+ 1 = 1801
the number of numbers that are not divisible by 17 is 1801 - 106 = 1695.
EXAMPLE 6
Find the number of positive integers S 3076 that are not divisible by 24.
Solution.
The number of integers 3076 that are divisible by 24 is
24-128.1=128
= 3076-128 = 2498.
EXAMPLE 7
20.
Prove by induction that 2n3+3n?+n is
divisible by 6 for all integers n
Solution.
is divisible by 6.
Let p(n) be the statement 2n3 +3n2+n
lo prove p(n) is true Vn20.
where x is an integer.
3.12 Algebra and Number Theory
To prove p k + )) is true.
Solution.
Let pln) denote the statement
24M+3n-1 is divisible by
Toprove p(n) is true Vn20.
Basis step: Here n = 0
P(0) is true.
Now
using ()]
= 144x-45k+18
9(16x - Sk + 2),
where 16x-Sk+ 2 is an integer.
Divisibility Theory and Canonical Decompositions 3.13
p(k+ 1) is true.
Thus p(k) is true p(k +1) is true.
Hence by I principle of induction p(n) is true V n 20.
EXAMPLE 9
Ifthe sum of the cubes of three consecutive integers is a cube k" prove that 3|k.
Solutlon.
Let n, 1,n+2 be the three consecutive integers.
n +
31k3|k.k-k
Since 3 is a prime, 3 |k.
EXAMPLE 10
Show thatn$+ (n +1)3 + (n + 1)+ (n +2)3 = (n +3)* has a unique solution.
Solution.
Given n+(n +13 +(n +2) =(n+3)3 (1)
Since L.H.S is the sum of cubes ofthree consecutive integers, by example 11, 3 n+3
Since 3|n +3 and 3 |3, we get 3|n +3-3 3n
n = 3m, where m is an integer
(m-1)(3m+3m+1) =0
m-1 = 0 (::3m +3m+10)
3.14 Algebra and Number Theory
m= 1 > n = 3.
b REPRESENTATIONS
3.3 BASE -
real number
to express any integer or
We are familiar with the use of decimal notation, base 10,
We use it every day.
For example,
352 3(10) + 5(10) + 2(10)
3(10)+5(10) +2.1
This is called the decimal expansion of 352.
35.23 3(10) +5 (10) +2 (10-1) +3(10)
And
out arithmetic operations. Very
But computers usuallybinary notation, base 2, when carrying
use
octal (base 8) or hexadecimal (base 16) notations
long binary numbers are often handled by using characters such as letters or digits.
Similarly these bases are used for expressing
In fact, any integer 22 can be used as a valid
base for representing integers.
We now state a fundamental result without proof.
where ad a are non negative integers then the expression in (1) is called the base b expansion
of the integer n.
We then wrTite n =
(a, a-1 a,40
For example,
(345)10 =3(10) + 4 (10) + 5 (10°)
(345) 3(8) + 4(8) + 5 =165
=
Note
1. The number system with base 10 is called the
means 10. decimal system because the latin word decem
The decimal system
uses the 10 digits 0, 1,2,3,...9.
2. If the base b > 10, we use the
letters A, B, C, to represent the
in decimal notation.
...
Solutlon.
(101011111), =1(2)+0(2')+(2)+0(2')+(2 )+1(2>)+(2)+1(2)+(2)
256+64+16+8+4+2+1
351
EXAMPLE 22
Solution.
We know A = 10, B =11, E= 144
(3ABOE)6 =
3(16*)+ A(16*)+ B(16)+0(16)+E(16°)
3(16)+10(16*)+ 11(16) +14
= 196608+ 40960+ 2816+14
240398
EXAMPLE 3
Solution.
We know A 10, B =11, C= 12
=
(3ABC)h6 =
3(16°)+ A(16)+ B(16)+C
1\(16)+ 12
=3(16 ) 10(16)
+ +
= 12,288+ 2560+176+12
= 15036
3.16 Algebra and Number Theory
WORKED EXAMPLES
EXAMPLE4
Express 1076 in the binary system.
Solution.
Solution.
We have to write the decimal integer into base 8
system.
12345 (30071)s
EXAMPLE 6
Express 1776 in the octal system.
Soluton.
222 27 3
1776 222 (8) +0
222 27 (8) +6 8 1776 8 222 827
27 3(8) 3 16 16 24
0 (8) +3 17 62
16 56
16 6
16
0
1776 (3360)
3.18 Algebra and Number Theory
EXAMPLE 7
/ 6
3014 (5706)g
EXAMPLE8
Represent 15036 in hexadecimal system.
Solution.
We write
153036 (3 ABC)16
Divisibility Theory and Canonical Decompositions 3.19
EXAMPLE 9
Solution.
We write
177130=(2 B3EA)16
We have seen how to convert decimal system to base-b system and base-bsystem to decimal system.
We shall now find the method of changing a binary number to octal or hexadecimal system.
WORKEDEXAMPLES
EXAMPLE 1
octal digit.
Convert the binary number (11110011), into
Solution.
Given 11 110011
three digits from right to left.
We group the digits in blocks of
0 to the left most block to get 3 digits).
Here the blocks are 011, 110, 01l (adding
EXAMPLE 2
Write 111010 Wo as an octal integer.
Solution.
Given (111010)wo
We rewrite 111010=111,010
111= 1(22)+1(2)+1= 7
Now
010 0(2)+1(2) +0 =2
and
(111010) =(72)s
EXAMPLE 3
Convert (11100101), to octal digit.
Solution.
Given the binary number 11100101
We group into blocks of three bits from right to left.
The blocks are 011, 100, 101 by adding 0 to the left most block.
the left most block to get a block of four bits. Replace each block by a hexadecimal number
WORKED EXAMPLES
EXAMPLE 1
Write (11111010111100), as a hexadecimal digit.
Solution.
Given (111110110111100)
We rewrite 11 1110 1011 1100 as 0011, 1110, 1011, 1100
Now
0011 = 0(2)+O(2)+1(2) +1=3
(36)6= (00110110),
= (110110)
EXAMPLE 66
Write (3 AD)1 as a
binary number.
Solutlon.
Given
(3AD16
We rewrite each digits as block of four bits.
. we write
3 0(23)+ 0(22) + 1(2) +1 =0011
A =
10 =1 (23) + 0(22)+ 1(2) +0 = 1010
D 13 =1 (23) +
1(22)+0(2) + 1 =1101
(3 AD)6(001110101101)
= (1110101101),
EXAMPLE 7
Rewrite (345), as a binary number.
Solution.
Given (345)g
write each digits as block of three bits.
we write 3 1(22)+1(2) + 1 =011
4 1(2) +0(2) +0 = 100
and S 1(22) +0(2)+ 1 = 101
(345), = (01100101),
= (11100101),
22
=
3.24 Algebra and Number Theory
EXAMPLE 11
Find the value ofthe base b if 1001,=9.
Solution.
Given 1001, =9
Since the digits are binary, we expect b =2.
We shall now workout
Now 1001,=9
1(b)+0(b) + O(b) + 1 =9
EXAMPLE 12
If 144,=49, find the base b.
Solution.
Given (144),=49
1(6)+4(6)+4 =49
b2+4b-45 = 0
(b+9) (b-5) = 0
Since base b is 2 2, b+9 #0.
b-5 =0 b=5
EXERCISE 3.1
1. Find the number of positive integers 3076 that are divisible by 17.
2. Find the number of positive integers 3076 that are divisible by 19.
3. Find the number of positive integers $ 3076 that are not divisible by 17.
4. Find the number of positive integers from 1976 to 3776 that are divisible by 15.
5. Find the number of positive integers from 1 to 250 that are divisible by 2, 3, 5.
6. Express 3014 in base eight. 7. Express
15036 in the hexadecimal system.
8. Write 6137 in the octal system. 9. Write
(A13F)6 in the binary system.
10. Write 527 in binary system. 11. Write 527 in hexadecimal
system.
12. Write (1010111), in hexadecimal system.
22 +1 5, a prime
22+1=17,aprime
22 +1 257, a prime
On the basis of these particular cases Fermat conjectured that 22 +1 is a prime for any positive
integer n and he challenged the mathematicians of his days to disprove it.
After nearly 100 years, the great Swiss mathematician Euler (1707-1783) showed that 22 +l =
4294967297 is not a prime because it is divisible by 641. Thus the conjecture is disproved
2. The great German mathematician G.W. Leibnitz (1646-1716) noticed that for any
positive integern.
n3-n is divisible byy3
n-n is divisible by5
n-n is divisible by 7
Observing this pattern, he was on the verge of conjecturing that for any odd integer r, - n is
divisible by r.
But soon he noticed that 29-2 = 510 is not divisible by 9.
This counter example disproved the conjecture.
3. The Prussian mathematician Christian Goldback (1690-1764) observed
4 2+2
6 3+3
8=3+5
10 3+7
12 5+7,..
These even integers are expressed as a sum of two primes.
On the basis these particular cases he conjectured that every even integer greater than 2 is a sum
of two primes.
In 2006, with the help of computers it is verified for all even integers upto 2.107.
But till today it continues to remain as a conjecture.
From these examples, we find that inductive reasoning need not lead to correct conclusion.