Elementary Number Theory II

Similar documents
Elementary Number Theory

Simultaneous Linear, and Non-linear Congruences

Math Circle Beginners Group February 28, 2016 Euclid and Prime Numbers Solutions

1 Overview and revision

not to be republished NCERT REAL NUMBERS CHAPTER 1 (A) Main Concepts and Results

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 = ,

Math Circle Beginners Group February 28, 2016 Euclid and Prime Numbers

REAL NUMBERS. Any positive integer a can be divided by another positive integer b in such a way that it leaves a remainder r that is smaller than b.

Lecture Notes. Advanced Discrete Structures COT S

Intermediate Math Circles February 26, 2014 Diophantine Equations I

1. Factorization Divisibility in Z.

Chapter 2. Divisibility. 2.1 Common Divisors

4 Powers of an Element; Cyclic Groups

Chapter 5: The Integers

Divisibility in Z. Definition Let a, b Z be integers. We say that b divides a, if there exists c Z such that a = b c; we write b a.

INTEGERS. In this section we aim to show the following: Goal. Every natural number can be written uniquely as a product of primes.

2 Elementary number theory

All variables a, b, n, etc are integers unless otherwise stated. Each part of a problem is worth 5 points.

Greatest Common Divisor MATH Greatest Common Divisor. Benjamin V.C. Collins, James A. Swenson MATH 2730

CHAPTER 1 REAL NUMBERS KEY POINTS

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?

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:

Rings and modular arithmetic

NOTES ON INTEGERS. 1. Integers

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

Chapter 1 A Survey of Divisibility 14

3.2 Solving linear congruences. v3

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

CSE 20 DISCRETE MATH. Winter

PRIME NUMBERS YANKI LEKILI

EUCLID S ALGORITHM AND THE FUNDAMENTAL THEOREM OF ARITHMETIC after N. Vasiliev and V. Gutenmacher (Kvant, 1972)

Math 109 HW 9 Solutions

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

Chapter 1 : The language of mathematics.

5: The Integers (An introduction to Number Theory)

Arithmetic and Algebra

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

Q 2.0.2: If it s 5:30pm now, what time will it be in 4753 hours? Q 2.0.3: Today is Wednesday. What day of the week will it be in one year from today?

7. Prime Numbers Part VI of PJE

Prof. Ila Varma HW 8 Solutions MATH 109. A B, h(i) := g(i n) if i > n. h : Z + f((i + 1)/2) if i is odd, g(i/2) if i is even.

Part IA Numbers and Sets

Cool Results on Primes

. In particular if a b then N(

Number Theory and Group Theoryfor Public-Key Cryptography

ELEMENTS OF NUMBER THEORY

NOTES ON SIMPLE NUMBER THEORY

MATHEMATICS X l Let x = p q be a rational number, such l If p, q, r are any three positive integers, then, l that the prime factorisation of q is of t

CISC-102 Winter 2016 Lecture 11 Greatest Common Divisor

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

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

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?

Masters Tuition Center

4 PRIMITIVE ROOTS Order and Primitive Roots The Index Existence of primitive roots for prime modulus...

Elementary Properties of the Integers

Divisibility. Def: a divides b (denoted a b) if there exists an integer x such that b = ax. If a divides b we say that a is a divisor of b.

Carmen s Core Concepts (Math 135)

Number Theory and Graph Theory. Prime numbers and congruences.

An integer p is prime if p > 1 and p has exactly two positive divisors, 1 and p.

(e) Commutativity: a b = b a. (f) Distributivity of times over plus: a (b + c) = a b + a c and (b + c) a = b a + c a.

Contest Number Theory

Deepening Mathematics Instruction for Secondary Teachers: Algebraic Structures

Applied Cryptography and Computer Security CSE 664 Spring 2017

MATH 361: NUMBER THEORY FOURTH LECTURE

Outline. Number Theory and Modular Arithmetic. p-1. Definition: Modular equivalence a b [mod n] (a mod n) = (b mod n) n (a-b)

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

Definition 6.1 (p.277) A positive integer n is prime when n > 1 and the only positive divisors are 1 and n. Alternatively

Number theory (Chapter 4)

CHAPTER 6. Prime Numbers. Definition and Fundamental Results

cse 311: foundations of computing Fall 2015 Lecture 12: Primes, GCD, applications

MATH 145 Algebra, Solutions to Assignment 4

MATH 145 Algebra, Solutions to Assignment 4

LINEAR CONGRUENCES AND LINEAR DIOPHANTINE EQUATIONS

cse 311: foundations of computing Spring 2015 Lecture 12: Primes, GCD, applications


HOMEWORK ASSIGNMENT 5

MODEL ANSWERS TO HWK #10

CISC-102 Fall 2017 Week 6

CHAPTER 3. Congruences. Congruence: definitions and properties

Algebra for error control codes

On the Cardinality of Mersenne Primes

Downloaded from

Mathematical Olympiad Training Polynomials

Math 180A - Notes. Neil Donaldson. March 14, 2018

and LCM (a, b, c) LCM ( a, b) LCM ( b, c) LCM ( a, c)

MATH10040 Chapter 1: Integers and divisibility

D i v i s i b i l i t y

The Fundamental Theorem of Arithmetic

CPSC 467b: Cryptography and Computer Security

is square-free. Suppose it were not and had a square factor x 2 p r 1. This is a contradiction, as the only possible primes dividing p r 1

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

CHAPTER 3. Number Theory

7.2 Applications of Euler s and Fermat s Theorem.

Primes. Rational, Gaussian, Industrial Strength, etc. Robert Campbell 11/29/2010 1

Lecture notes: Algorithms for integers, polynomials (Thorsten Theobald)

2. THE EUCLIDEAN ALGORITHM More ring essentials

Divisibility. Chapter Divisors and Residues

As the title suggests, we tackle three famous theorems in this chapter. 4.1 The Fundamental Theorem of Arithmetic

= 1 2x. x 2 a ) 0 (mod p n ), (x 2 + 2a + a2. x a ) 2

God may not play dice with the universe, but something strange is going on with the prime numbers.

MAS1202/MAS2202 Number Systems and the Foundations of Analysis. Semester 1, 2009/2010

Transcription:

Elementary Number Theory II CIS002-2 Computational Alegrba and Number Theory David Goodwin david.goodwin@perisic.com 09:00, Tuesday 1 st November 2011

Contents 1 Divisibility Euclid s Algorithm & Bezout s Identity II Least Common Multiples Linear Diophantine Equations 2 Primality Prime Number and Prime-Power Factorisation Distribution of Primes 3 Class Question

Example of Euclid s Algorithm Example (Euclid s Algorithm) Calculate gcd Ô1485, 1745Õ using Euclid s algorithm. If a qb r then gcd Ôa,bÕ gcd Ôb,r Õ. We use the equation a qb r to find r, then to repeat using gcd Ôb,r Õ. Remember the constraints Øq q È ZÙ and Ør r È Z and r bù. 1745 1485q r q 1 r 260 1485 260q r q 5 r 185 260 185q r q 1 r 75 185 75q r q 2 r 35 75 35q r q 2 r 5 35 5q r q 7 r 0 Therefore gcd Ô1485,1745Õ 5

Example of Bezout s Identity Example (Bezout s Identity) Express gcdô1485, 1745Õ in the form 1485u 1745v. From the previous example we found gcd Ô1485,1745Õ 5 5 75 Ô2 35Õ 75 2 Ô185 Ô2 75Õ Ô5 75Õ Ô2 185Õ 5 Ô260 Ô1 185ÕÕ Ô2 185Õ Ô5 260Õ Ô7 185Õ Ô5 260Õ 7 Ô1485 Ô5 260ÕÕ Ô40 260Õ Ô7 1485Õ 40 Ô1745 Ô1 1485ÕÕ Ô7 1485Õ Ô40 1745Õ Ô47 1485Õ 69800 69795 5

Least Common Multiples Definition If a and b are integers, then a common multiple of a and b is an integer c such that a c and b c. If a and b are both non-zero, then they have positive common multiples (such as ab ), so by the well-ordered principle they have a least common multiple (to be more precise least positive common multiple). The least common multiple of two integers a and b is denoted by lcmôa,bõ.

Least Common Multiples Theorem (2.1) Let a and b be positive integers, with d gcd Ôa,bÕ and the least common multiple l lcmôa,bõ. Then dl ab since a,b 0 Example Let a 12 and b 8, then d gcd Ô12,8Õ 4 and l lcmô12,8õ 24. dl ab 4 24 12 8 96

Diophantus of Alexandria Diophantus of Alexandria (c. A.D. 250) carried out extensive studies of problems relating to indeterminate equations 1. Although Diophantus accepted any solution in rational numbers, the name Diophantus equations today refers exclusively to equations with integer solutions. 1 equations with an infinite set of solutions

Linear Diophantine Equations Theorem (2.2) Let a, b and c be integers with a and b not both zero, and let d gcd Ôa,bÕ. Then the equation ax by c has an integer solution x,y if and only if d c, in which case there are infinitely many solutions. The following are the pairs of solutions x x 0 bn d, y y 0 an d Ôn È ZÕ note that if c 1 then a and b are coprime (corollary (1.7))

Method of solution to Linear Diophantine Equations We can find the solutions of any linear Diophantine equation ax by c by the following method: 1 Calculate d gcd Ôa,bÕ by Euclid s algorithm. 2 Check if d c (if not then there are no solutions) 3 Use Bezout s Identity to find integers u and v such that au bv d. Then if c de, we find x 0 ue and y 0 ve. 4 Now use theorem (2.2) to find the general solution x,y of the equation ax by c.

Example of a Linear Diophantine Equation Find the positive integer values of x and y that satisfy the equation 2x 5y 32 Example (Linear Diophantine Equation) 5 2q r q 2 r 1 2 1q r q 2 r 0 gcd Ô2,5Õ 1 1 32 therefore solutions exist. 1 5 Ô2 2Õ

Example (Linear Diophantine Equation (cont.)) d 2u 5v u 2 v 1 If c 32 and d 1, then if c de, e 32. x 0 ue 64 y 0 ve 32

Example (Linear Diophantine Equation (cont.)) Now we can find all solutions from the equation x x 0 x 64 bn d, y y an 0 d 5n 1, y 32 2n 1 Ôn È ZÕ For this example, the paired solutions are (here for the integers n...,0,1,2,3,4,...) Ø..., Ô 64,32Õ, Ô 59,30Õ, Ô 54,28Õ, Ô 49,26Õ, Ô 44,24Õ,... Ù

Prime numbers Definition An integer p 1 is said to be prime if the only positive divisors of p are 1 and p itself.

Prime numbers Lemma (2.3) Let p be prime, and let a and b be any integers a either p a, or a and p are coprime. b if p ab, then p a or p b. Corollary (2.4) If p is prime and p divides a 1...a k then p divides a i for some integer i.

Prime-Power Factorisation The next result, known as the fundamental theorem of arithmetic, explains why prime numbers are so important: they are the basic building blocks out of which all integers can be constructed. Theorem (2.5) Each integer n 1 has a prime-power factorisation n p e 1 1...pe k k where p 1,...,p k are distinct primes and e 1,...,e k are positive integers; this factorisation is unique, apart from permutations of the factors.

Prime-Power Factorisation Example 200 has the prime-power factorisation 2 3 5 2, or alternatively 5 2 2 3 if we permute the factors, but it has no other prime-power factorisations. Example 1200 has the prime-power factorisation 2 4 3 1 5 2.

Prime numbers 100 002, 003, 005, 007, 011, 013, 017, 019, 023, 029, 031, 037, 041, 043, 047, 053, 059, 061, 067, 071, 073, 079, 083, 089, 097.

Prime numbers 1000 002,003, 005,007,011, 013,017,019, 023,029,031,037,041, 043,047,053, 059,061,067, 071,073, 079,083,089, 097, 101, 103,107,109, 113,127,131, 137,139, 149,151,157, 163,167,173, 179,181, 191,193,197, 199, 211,223, 227,229, 233,239,241, 251,257,263, 269,271, 277,281,283, 293, 307,311, 313,317, 331,337,347, 349,353,359, 367,373, 379,383,389, 397, 401,409,419, 421,431, 433,439,443, 449,457,461, 463,467, 479,487,491, 499, 503,509, 521,523,541, 547,557,563, 569,571, 577,587,593, 599, 601, 607,613,617, 619,631,641, 643,647,653, 659,661, 673,677,683, 691 701,709, 719,727,733, 739,743,751, 757,761, 769,773,787, 797, 809, 811,821, 823,827,829, 839,853,857, 859,863, 877,881,883, 887, 907,911, 919,929,937, 941,947,953, 967,971, 977,983,991, 997.

Euclid s Theorem Theorem (2.6) There are infinitely many primes

A Proof of Euclid s Theorem Proof. The proof is by contradiction: we assume that there are only finitely many primes, and then we obtain a contradiction from this, so it follows that there must be infinitely many primes. Suppose then that the only primes are p 1,p 2,...,p k. Let m p 1 p 2...p k 1 Since n is an integer greater than 1, theorem (2.5) implies that it is divisible by some prime p (this includes the possibility that m p). By our assumption, this prime p must be one of p 1,p 2,...,p k, so p divides their product p 1 p 2...p k. Since p divides both m and the product p 1 p 2...p k it divides m p 1 p 2...p k 1, which is impossible.

Prove the fundamental theorem of arithmatic to be true.