ELEMENTS OF NUMBER THEORY

Similar documents
Chapter 3 Basic Number Theory

4 Number Theory and Cryptography

3 The fundamentals: Algorithms, the integers, and matrices

4 Powers of an Element; Cyclic Groups

COMP239: Mathematics for Computer Science II. Prof. Chadi Assi EV7.635

2x 1 7. A linear congruence in modular arithmetic is an equation of the form. Why is the solution a set of integers rather than a unique integer?

Solution Sheet (i) q = 5, r = 15 (ii) q = 58, r = 15 (iii) q = 3, r = 7 (iv) q = 6, r = (i) gcd (97, 157) = 1 = ,

A field F is a set of numbers that includes the two numbers 0 and 1 and satisfies the properties:

CSE 20 DISCRETE MATH. Winter

3.2 Solving linear congruences. v3

a the relation arb is defined if and only if = 2 k, k

The Chinese Remainder Theorem

2x 1 7. A linear congruence in modular arithmetic is an equation of the form. Why is the solution a set of integers rather than a unique integer?

Homework #2 solutions Due: June 15, 2012

This exam contains 5 pages (including this cover page) and 4 questions. The total number of points is 100. Grade Table

Lecture 7: Number Theory Steven Skiena. skiena

Math 109 HW 9 Solutions

Number Theory Proof Portfolio

MATH 2112/CSCI 2112, Discrete Structures I Winter 2007 Toby Kenney Homework Sheet 5 Hints & Model Solutions

MATH 433 Applied Algebra Lecture 4: Modular arithmetic (continued). Linear congruences.

Elementary Properties of the Integers

Wilson s Theorem and Fermat s Little Theorem

Notes on Systems of Linear Congruences

Elementary Number Theory. Franz Luef

A Readable Introduction to Real Mathematics

M381 Number Theory 2004 Page 1

NOTES ON SIMPLE NUMBER THEORY

Math Homework # 4


Discrete Structures Lecture Solving Congruences. mathematician of the eighteenth century). Also, the equation gggggg(aa, bb) =

The set of integers will be denoted by Z = {, -3, -2, -1, 0, 1, 2, 3, 4, }

Lecture Notes. Advanced Discrete Structures COT S

Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry. Spring 2006

Ma/CS 6a Class 2: Congruences

Lecture 2. The Euclidean Algorithm and Numbers in Other Bases

CS 5319 Advanced Discrete Structure. Lecture 9: Introduction to Number Theory II

Chapter 5. Number Theory. 5.1 Base b representations

Integers and Division

1. multiplication is commutative and associative;

CHAPTER 3. Congruences. Congruence: definitions and properties

Introduction to Information Security

Part V. Chapter 19. Congruence of integers

Number Theory. CSS322: Security and Cryptography. Sirindhorn International Institute of Technology Thammasat University CSS322. Number Theory.

Ch 4.2 Divisibility Properties

The Chinese Remainder Theorem

Chapter 5: The Integers

Proof 1: Using only ch. 6 results. Since gcd(a, b) = 1, we have

5: The Integers (An introduction to Number Theory)

Math.3336: Discrete Mathematics. Primes and Greatest Common Divisors

12x + 18y = 50. 2x + v = 12. (x, v) = (6 + k, 2k), k Z.

Introduction to Sets and Logic (MATH 1190)

CSE 20 DISCRETE MATH. Fall

Know the Well-ordering principle: Any set of positive integers which has at least one element contains a smallest element.

With Question/Answer Animations. Chapter 4

Mathematics for Cryptography

44.(ii) In this case we have that (12, 38) = 2 which does not divide 5 and so there are no solutions.

Signature: (In Ink) UNIVERSITY OF MANITOBA TEST 1 SOLUTIONS COURSE: MATH 2170 DATE & TIME: February 11, 2019, 16:30 17:15

MATH 215 Final. M4. For all a, b in Z, a b = b a.

For your quiz in recitation this week, refer to these exercise generators:

MATH 115, SUMMER 2012 LECTURE 4 THURSDAY, JUNE 21ST

2 Arithmetic. 2.1 Greatest common divisors. This chapter is about properties of the integers Z = {..., 2, 1, 0, 1, 2,...}.

4.4 Solving Congruences using Inverses

Exercises Exercises. 2. Determine whether each of these integers is prime. a) 21. b) 29. c) 71. d) 97. e) 111. f) 143. a) 19. b) 27. c) 93.

Ma/CS 6a Class 2: Congruences

PUTNAM TRAINING NUMBER THEORY. Exercises 1. Show that the sum of two consecutive primes is never twice a prime.

AN ALGEBRAIC PROOF OF RSA ENCRYPTION AND DECRYPTION

CSE 20 DISCRETE MATH. Winter

11 Division Mod n, Linear Integer Equations, Random Numbers, The Fundamental Theorem of Arithmetic

Course 2BA1: Trinity 2006 Section 9: Introduction to Number Theory and Cryptography

Introduction to Cryptography CS 355 Lecture 3

3.7 Non-linear Diophantine Equations

Definition: div Let n, d 0. We define ndiv d as the least integer quotient obtained when n is divided by d. That is if

Math 131 notes. Jason Riedy. 6 October, Linear Diophantine equations : Likely delayed 6

1 Overview and revision

Number Theory Math 420 Silverman Exam #1 February 27, 2018

MATH 4400 SOLUTIONS TO SOME EXERCISES. 1. Chapter 1

Discrete mathematics I - Number theory

Definition For a set F, a polynomial over F with variable x is of the form

Homework 7 solutions M328K by Mark Lindberg/Marie-Amelie Lawn

Chapter 1. Greatest common divisor. 1.1 The division theorem. In the beginning, there are the natural numbers 0, 1, 2, 3, 4,...,

Basic elements of number theory

Basic elements of number theory

Commutative Rings and Fields

Chapter 2. Divisibility. 2.1 Common Divisors

NUMBER THEORY AND CODES. Álvaro Pelayo WUSTL

MATH 145 Algebra, Solutions to Assignment 4

Mathematics of Cryptography Part I

4. Congruence Classes

Remainders. We learned how to multiply and divide in elementary

Lecture 5: Arithmetic Modulo m, Primes and Greatest Common Divisors Lecturer: Lale Özkahya

MATH 501 Discrete Mathematics. Lecture 6: Number theory. German University Cairo, Department of Media Engineering and Technology.

Lecture 7 Number Theory Euiseong Seo

Objective Type Questions

EDULABZ INTERNATIONAL NUMBER SYSTEM

Number Theory Basics Z = {..., 2, 1, 0, 1, 2,...} For, b Z, we say that divides b if z = b for some. Notation: b Fact: for all, b, c Z:

MTH 346: The Chinese Remainder Theorem

ALGEBRA. 1. Some elementary number theory 1.1. Primes and divisibility. We denote the collection of integers

Chapter 1 A Survey of Divisibility 14

CISC-102 Fall 2017 Week 6

CSE 311 Lecture 13: Primes and GCD. Emina Torlak and Kevin Zatloukal

Transcription:

ELEMENTS OF NUMBER THEORY

Examination corner 1 one mark question in part A 1 - two mark question in part B 1 five mark OR 3mark+2 mark question in part C 1 two or four mark question in part E

concepts one should not neglect: To find the GCD of two numbers a and b and express them in the form d=ax+by and show that x and y are not unique To find the number of positive divisors and the sum of positive divisors of a given number VASUDEVA KH

Important area Finding the remainder when 350 is divided by 7&related problems Properties of Divisibility and congruences Use of properties of congruence to find the unit digit and the remainder & solving linear congruences VASUDEVA KH

PART E- Questions of following type To find the least +ve remainder and the digit in the unit place of a given a number using congruence, To find the incongruent solutions of a linear congruence.

Divisibility Define Divisibility. An integer a 0 is said to divide an integer b if there is an integer k such that b=ak. we then write a b The symbol denotes divides We write a b when a does not divide b 6

DIVISIBILITY: Usage a b b is equal to product of a by an integer i.e b=ka for some integer k a divides b, a is a divisor of b a is a factor of b b is divisible by a b is a multiple of a.

If a b and a c then a b±c a b b=ak1 k1 Z..(1) a c c=ak2 k2 Z (2) Adding (1) and (2) b+c=a(k1 +k2 )=ak; where k=k1 +k 2 Z a (b+c) similarly a (b-c) can be proved by subtracting (1) and (2)

Divisibility Theorems For integers a, b and c it is true that If a b and a c then a bc if a b, then a bx for all integers x Example: 5 10, so 5 20, 5 30, 5 40, if a b and b c, then a c (transitive property) Example: 4 8 and 8 24, so 4 24. 9

Properties of divisibility: If a b and a c then i) a (bx+cy) (linearity property) If a b and b a then a=±b if a, b Є Z

Greatest Common Divisor A positive integer d is said to be the greatest common divisor of a and b if the following conditions are satisfied: d a and d b If c a and c b then c d The greatest common divisor of a and b is denoted by (a, b) i.e. (a, b)=d

Greatest Common Divisors Example : What is gcd(48, 72)? The positive common divisors of 48 and 72 are 1, 2, 3, 4, 6, 8, 12, 16, and 24, so gcd(48, 72) = 24. 12

EUCLIDEAN ALGORITHM Euclidean algorithm is based on the principle that the greatest common divisor of two numbers does not change if the smaller number is subtracted from the larger number.

For example, 21 is the GCD of 252 and 105 (252 = 21 12;105 = 21 5); since 252 105 = 147, the GCD of 147 and 105 is also 21. Repeat this process by subtracting the smaller number from the larger number every time until one of them is zero. When that occurs, the GCD is the remaining nonzero number

gcd( 252, 105 ) = gcd ( 252, 252-105 ) = gcd ( 252, 147 ) = gcd ( 252-147, 147 ) = gcd ( 105, 147) = gcd ( 105, 147-105 ) = gcd ( 105, 42 ) = gcd ( 105-42, 42 ) = gcd ( 63, 42 ) = gcd ( 63-42, 42 ) = gcd ( 21, 42 ) = 21 By subtracting the smaller number from the larger number every time until one of them is zero. When that occurs, the GCD is the remaining nonzero number

GCD OF TWO NUMBERS Find the GCD of 252 and 105 and represent as linear combination of 252 and 105. Show that the expression is not unique.

105)252(2 252=105x2+42..(1) 210 42=252-105x2 42 42 )105(2 105= 42x2+21.(2) 84 21=42x2-105 21 21)42(2 42=21x2+0 42 00 (252, 105) = (42, 105)= (42, 21) =21(?) Therefore, gcd(252, 105) = 21. VASUDEVA KH

105)252(2 42)105(2 21)42(2 210 84 42 42 21 00 252=105x2+42 42=252-105x2..(1) 105=42x 2+21 21=105-42x2.(2) Expressing GCD as linear combination : 21=105-42x2=105-(252-105x2)x2 =105-252x2+105x4 =105x5+252x(-2) =105x+252y x=5 and y=-2 (Bezout s identity) VASUDEVA KH

21=105-42x2=105-(252-105x2)x2 =105-252x2+105x4 =105x5+252x(-2) =105x+252y x=5 and y=-2 To show that this expression is not unique add and subtract 105x252 21= =105x5+252x(-2) +105x252-105x252 =105(-247)+252(103) Here x=-247 y=103

If (252, 105)=252x+105y, Find two sets of values of x and y Express (252, 105) as 252x+105y where x, y Z in two different ways If (252, 105)=252(-2)+105(x), Find x

Number and sum of divisors of a number Every composite number can be expressed as a product of power of primes uniquely.(unique factorisation theorem) e.g: 252=4 x63 =4 x7 x9 =22 32 71 In general a composite number a can be expresse d uniquely as a= α1 α2 p1 p2 α3 α4 p3 p 4... pnαn Where p1, p2, are primes and s are integers

Number and sum of divisors of a number If a α1 α2 = p1 p2 α3 α4 p3 p 4... pnαn T(a)=(1+ 1) (1+ 2 ) (1+ 3 )..(1+ n) S(a)= α1+1 p1 1 p1 1 α3 + 1 α2 + 1 p2 1 p3 1 pnαn +1 1..... p2 1 p3 1 pn 1

Find the number of all +ve divisors of sumz of all divisors of 252 252=4 x63 =4 x7 x9 =22 32 71 T(252)=(1+2)(1+2)(1+1)=18 S(252)= 2 +1 2 +1 1+1 2 1 3 1 7 1.. = 7x13x8 = 728 2 1 3 1 7 1

Properties of Primes and Composite numbers 1. If p is any prime and a is any integer, either (p, a)=1 or (p, a)=p 2. The smallest divisor > 1 of any integer > 1 is a prime number* 3. Number of primes is infinite

Proof :of number of primes is infinite Let if possible the number of primes be finite say p1 p2 p3.pn and let pn be the largest prime.consider N= p1 p2 p3.pn +1. When we divide N by any pi remainder is 1 and hence N is not divisible by any of the primes p1 p2 p3.pn. N cannot be composite. N should be new prime and N>pn the greatest prime, which contradicts assumption.

Properties of Prime and Composite numbers 4. If (c, a)=1 and c ab, then c b.* 5. If p is a prime and p ab, then p a or p b.* 6. The smallest +ve divisor of a composite number 'a' does not exceed a

Congruences Let a and b be integers and m be a positive integer. We say that a is congruent to b modulo m if m divides (a b) i.e. m (a-b) We write a b (mod m) 615 805(mod 10) 10 (615-805)=-190 79 7(mod 8) 8 79-7=72 27

Congruence: a b(mod m) m a-b a-b=mk a=b+mk, k Є Z a b(mod m) a =km+b k Z a b+km(mod m) for any k Є Z b is the remainder when a is divided by m a and b leave the same remainder when divided by m

CONGRUENCES The remainders when any integer is divided by 5 is 0,1,2,3,4. We say that two integers a and b are congruent to modulo 5 if they leave same remainders on division by 5. Thus 2,7,12,22.-3,-8,-13,-18.. are all congruent modulo 5, since they leave remainder 2.

Properties of Congruence: The relation congruence modulo m is an equivalence relation on Z If a b(mod m) and x is an integer,* i)(a±x) (b±x) (mod m) ii)ax bx (mod m) iii)an bn (mod m)

Properties of Congruence: If a b(mod m) and c d(mod m) then* 1. (a±c) (b±d) (mod m) 2. ac bd (mod m) (congruence with same modulus may be added, subtracted and multiplied)

Properties of Congruence: If ca cb(mod m) and (c, m) = 1 then a b(mod m) * [Cancellation Law] If a b(mod m) and n>1 is a positive divisor of m, then a b(mod n)*

Linear Congruence: A congruence of the form ax b(mod m) is called a linear congruence. A value of x satisfying the linear congruence is called a solution or root of the congruence.

LINEAR CONGRUENCE ax b(mod m) If x=α is a solution, then β α (mod m) is also a solution. i.e. i.e If α is a solution of linear congruence ax b (mod m), then all integers congruent to α (mod m) are also solutions.

In general, if x=α is a solution of the congruence ax b (mod m) then α +km where k is any integer, is also a solution. i.e, β= α, α±m, α±2m, α±3m,... are all solutions.

consider the linear congruence 3x 4(mod 5), Among the integers 0,1,2,3,4 the integer 3 satisfies the congruence. α =3 is a solution of linearcongruence. But the numbers 3, 3±5, 3±10, 3±15,... are also solutions. i.e all integers of the form 3+5k, k 5).i.e.. -12,-7,-2,3,8... are solutions or simply ={.-12, -7, -2, 3,8,13,18...} =Integers which leave remainder 3 when divided by 5 (Which is an AP)

Linear Congruence: Rules Linear congruence ax b(mod m) will-have a solution only if (a, m) / b have no solution if (a, m) does not divide b have unique solution if (a, m)=1 have d incongruent solutions if (a, m)=d and d/b

Solve the congruence 6x+3 1(mod10) 6x -2(mod10)(why?) a b(modm) -2 8(mod 10) a-x b-x(mod m) 6x 8(mod10) (by transitive property) Now (6, 10)=2 and 2 8 ; 2 incongruent solutions

Solve the congruence 6x+3 1(mod10) 6x 8(mod10) 6x=10k+8 x= 10k + 8 6 For k=1, x=3; k=4, x=8 x 3(mod 10) &x 8(mod 10) are incongruent solutions of given linear congruence. Solution set =10k+3={.. -7, 3,13,23 } & 10k+8={ -12, -2,8,18.}

Solve the congruence 6x+3 4(mod10) It reduces to 6x 1(mod10) (6,10)=2 and 2 1 Linear congruence ax b(mod m) have no solution if (a, m) does not divide b Hence given congruence has no solution

Solve the congruence 51x 32(mod 7) Here (51, 7)=1 ; Unique solution since 51 2(mod 7) 32 4(mod 7) 51x 32(mod 7) 2x 4(mod 7) (How?)

Solve the congruence 51x 32(mod 7) since 51 2(mod 7) 51x 2x(mod7) 2x 51x(mod7) (?) &51x 32(mod 7) 2x 32(mod 7)(?) But 32 4(mod 7) 2x=4(mod 7) x 2(mod 7)(?) since (2,7)=1

Find the unit digit(last digit) of 17221 If a r (mod 10), 0< r<10, then the last digit (unit's digit) of a is r Here 17 7(mod 10) (17)221 7221 (mod 10)(?) 72 =49-1(mod10) 7221 =7 2x110+1=(72 )11 7 (-1 )110 7(mod 10) 7(mod 10) 7 is the last digit.

Find the least non negetive remainder when 212 is divided by 41 OR Find x, if 212 x (mod 41)

Find x, if 212 x (mod 41) 2 2(mod 41) ( by reflexive property) 26 23(mod 41) (23 is the remainder when 64 41) (26 )2 (23) 2 (mod 41) (squaring on both sides) (23)2 529 (mod 41) 37(mod 41) [37 is the remainder when 529 41] Thus 37 is the remainder

Find the remainder when 79x101x125 is divided by 11 Or If 79x101x125=x(mod11), Find x 79 2(mod 11) 101 2(mod 11) 125 4(mod 11) 79x101x125 2x2x4(mod11) 16(mod 11) 5(mod 11) 5 is the remainder or x=5

OTHER IMPORTANT FACTS: If a r (mod m), 0< r<m, then r is the least non negative remainder when a is divided by m. n! always ends with 0 when n 5. n! is a multiple of 10 when n 5

VASUDEVA KH