Math 3336 Section 4.3 Primes and Greatest Common Divisors. Prime Numbers and their Properties Conjectures and Open Problems About Primes

Similar documents
Discrete Structures Lecture Primes and Greatest Common Divisor

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

4.3 - Primes and Greatest Common Divisors

With Question/Answer Animations. Chapter 4

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.

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

Introduction Integers. Discrete Mathematics Andrei Bulatov

Chapter 5: The Integers

CSE 20 DISCRETE MATH. Winter

Proofs. Methods of Proof Divisibility Floor and Ceiling Contradiction & Contrapositive Euclidean Algorithm. Reading (Epp s textbook)

5: The Integers (An introduction to Number Theory)

Lesson 1: Successive Differences in Polynomials

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

Before we talk about prime numbers, we will spend some time with divisibility because there is

Worksheets for GCSE Mathematics. Quadratics. mr-mathematics.com Maths Resources for Teachers. Algebra

4 Number Theory and Cryptography

Definition: A sequence is a function from a subset of the integers (usually either the set

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

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:

F.1 Greatest Common Factor and Factoring by Grouping

Notes on Systems of Linear Congruences

Math 412: Number Theory Lecture 3: Prime Decomposition of

Ch 4.2 Divisibility Properties

Introduction to Sets and Logic (MATH 1190)

Algorithmic number theory. Questions/Complaints About Homework? The division algorithm. Division

4.4 Solving Congruences using Inverses

8 Primes and Modular Arithmetic

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

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

7. Prime Numbers Part VI of PJE

Chapter 2. Divisibility. 2.1 Common Divisors

Disproof MAT231. Fall Transition to Higher Mathematics. MAT231 (Transition to Higher Math) Disproof Fall / 16

2 Elementary number theory

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

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

NOTES ON SIMPLE NUMBER THEORY

Summary Slides for MATH 342 June 25, 2018

Chapter 3 Basic Number Theory

The Fundamental Theorem of Arithmetic

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

4 Powers of an Element; Cyclic Groups

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

Elementary Properties of the Integers

MATH 1080: Calculus of One Variable II Fall 2018 Textbook: Single Variable Calculus: Early Transcendentals, 7e, by James Stewart.

Systems of Linear Equations

Solutions to Assignment 1

CHAPTER 6. Prime Numbers. Definition and Fundamental Results

Chapter 9 Mathematics of Cryptography Part III: Primes and Related Congruence Equations

An Algorithm for Prime Factorization

MATH 55 - HOMEWORK 6 SOLUTIONS. 1. Section = 1 = (n + 1) 3 = 2. + (n + 1) 3. + (n + 1) 3 = n2 (n + 1) 2.

International Journal of Mathematical Archive-5(3), 2014, Available online through ISSN

Here is another characterization of prime numbers.

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

3 The fundamentals: Algorithms, the integers, and matrices

WORKSHEET MATH 215, FALL 15, WHYTE. We begin our course with the natural numbers:

Contest Number Theory

Intermediate Math Circles February 26, 2014 Diophantine Equations I

Wilson s Theorem and Fermat s Little Theorem

Number Theory and Cryptography

CSC B36 Additional Notes sample induction and well-ordering proofs. c Nick Cheng

Carmen s Core Concepts (Math 135)

Wednesday, February 21. Today we will begin Course Notes Chapter 5 (Number Theory).

Eureka Math. Algebra II Module 1 Student File_A. Student Workbook. This file contains Alg II-M1 Classwork Alg II-M1 Problem Sets

CSE 311: Foundations of Computing. Lecture 12: Two s Complement, Primes, GCD

Chapter 1 A Survey of Divisibility 14

10 Problem 1. The following assertions may be true or false, depending on the choice of the integers a, b 0. a "

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

Intermediate Math Circles February 29, 2012 Linear Diophantine Equations I

P.3 Division of Polynomials

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

Worksheets for GCSE Mathematics. Algebraic Expressions. Mr Black 's Maths Resources for Teachers GCSE 1-9. Algebra

Ma/CS 6a Class 2: Congruences

7.2 Applications of Euler s and Fermat s Theorem.

Commutative Rings and Fields

Fall 2017 Test II review problems

1. (16 points) Circle T if the corresponding statement is True or F if it is False.

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

Section Summary. Division Division Algorithm Modular Arithmetic

Number theory. Myrto Arapinis School of Informatics University of Edinburgh. October 9, /29

1. multiplication is commutative and associative;

(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.

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

Classical RSA algorithm

Introduction to Number Theory

10.4 The Cross Product

EDULABZ INTERNATIONAL NUMBER SYSTEM

5.1. Primes, Composites, and Tests for Divisibility

Math 3 Unit 3: Polynomial Functions

Primes and Modular Arithmetic! CSCI 2824, Fall 2014!!

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

NOTES ON INTEGERS. 1. Integers

Math 2070BC Term 2 Weeks 1 13 Lecture Notes

1 2 3 style total. Circle the correct answer; no explanation is required. Each problem in this section counts 5 points.

On the Cardinality of Mersenne Primes

Simultaneous Linear, and Non-linear Congruences

Math 3 Unit 3: Polynomial Functions

Intermediate Math Circles March 6, 2013 Number Theory I

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

Direct Proof MAT231. Fall Transition to Higher Mathematics. MAT231 (Transition to Higher Math) Direct Proof Fall / 24

7.3 The Jacobi and Gauss-Seidel Iterative Methods

Transcription:

Math 3336 Section 4.3 Primes and Greatest Common Divisors Prime Numbers and their Properties Conjectures and Open Problems About Primes Greatest Common Divisors and Least Common Multiples The Euclidian Algorithm gcds as Linear Combinations Definition: A positive integer pp greater than 1 is called prime if the only positive factors of pp are 1 and pp. A positive integer that is greater than 1 and is not prime is called composite. Example: The integer 11 is prime because its only positive factors are 1 and 11, but 12 is composite because it is divisible by 3, 4, and 6. The Fundamental Theorem of Arithmetic: Every positive integer greater than 1 can be written uniquely as a prime or as the product of two or more primes where the prime factors are written in order of nondecreasing size. Examples: a. 50 = 2 5 2 b. 121 = 11 2 c. 256 = 2 8 Theorem: If nn is a composite integer, then nn has a prime divisor less than or equal to nn. Proof: Page 1 of 9

Example: Show that 97 is prime. Example: Find the prime factorization of each of these integers a. 143 b. 81 Theorem: There are infinitely many primes. Proof: Page 2 of 9

Questions: 1. The proof of the previous theorem by A. Contrapositive B. Contradiction C. Direct 2. Is the proof constructive OR nonconstructive? 3. Have we shown that Q is prime? The Sieve of Eratosthenes can be used to find all primes not exceeding a specified positive integer. For example, begin with the list of integers between 1 and 100. a. Delete all the integers, other than 2, divisible by 2. b. Delete all the integers, other than 3, divisible by 3. c. Next, delete all the integers, other than 5, divisible by 5. d. Next, delete all the integers, other than 7, divisible by 7. e. Since all the remaining integers are not divisible by any of the previous integers, other than 1, the primes are: {2,3,5,7,11,15,1719,23,29,31,37,41,43,47,53, 59,61,67,71,73,79,83,89, 97} Page 3 of 9

Mersenne primes (French monk Marin Mersenne):2 pp 1 2 2 1 = 3 2 3 1 = 7 2 5 1 = 31 etc. 2 11 1 = 2047 = 23 89 2 42,643,801 1 Conjectures and open problems about primes. Example: ff(nn) = nn 2 nn + 41 ff(1) = 41, ff(2) = 43, ff(3) = 47, ff(4) = 53 Is ff(nn) prime for all positive integers nn? For every polynomial with integer coefficients, there is a positive integer yy such that ff(yy) is composite. Goldbach s Conjecture: Every even integer n, nn > 2, is the sum of two primes. 4 = 6 = 8 = 10 = 12 = The conjecture has been checked for all positive even integers up to 1.6 10 18, BUT there is NO proof. The Twin Prime Conjecture: There are infinitely many twin primes. Twin primes are a pair of primes that differ by 2: 3 & 5, 11 & 13, 5 & 7, 17 & 19, 4967 & 4969 Page 4 of 9

Greatest Common Divisors and Least Common Multiples Definition: Let aa and bb be integers, not both zero. The largest integer dd such that dd aa and dd bb is called the greatest common divisor of aa and bb. Notation: gggggg(aa, bb) One way to find the greatest common divisor is to find all positive common divisors of both integers and then take the largest divisor. Example: What is the greatest common divisor of 12 and 24? Example: What is the greatest common divisor of 11 and 25? Definition: The integers aa and bb are relatively prime if their greatest common divisor is 1. Definition: The integers aa 1, aa 2,, aa nn are pairwise relatively prime if gcd aa ii, aa jj = 1, whenever 1 ii < jj nn. Example: Determine whether the integers in each of these sets are pairwise relatively prime. a. 21, 34, and 55 b. 14, 17, 85 Page 5 of 9

Another way to find the greatest common divisor of two integers is to use their prime factorization. Let aa = pp 1 aa 1 pp 2 aa 2 pp nn aa nn and bb = pp1 bb 1 pp 2 bb 2 pp nn bb nn. Then gcd(aa, bb) = pp 1 min (aa 1,bb 1 ) pp2 min(aa 2,bb 2 ) ppnn min (aa nn,bb nn ) Example: Find the greatest common divisor of 30030 and 2244. Prime factorization can also be used to find the least common multiple of two numbers. Definition: The least common multiple of the positive integers aa and bb is the smallest positive integer that is divisible by both aa and bb. Notation: llllll(aa, bb) Let aa = pp 1 aa 1 pp 2 aa 2 pp nn aa nn and bb = pp1 bb 1 pp 2 bb 2 pp nn bb nn. Then lcm(aa, bb) = pp 1 max (aa 1,bb 1 ) pp2 max(aa 2,bb 2 ) ppnn max (aa nn,bb nn ) Example: Find the least common multiple of 2 2 3 3 5 5 and 2 5 3 3 5 2 Page 6 of 9

Theorem: Let a and b be positive integers. Then aaaa = gcd (aa, bb) llllll(aa, bb) Finding the gcd of two positive integers using their prime factorizations is not efficient because there is no efficient algorithm for finding the prime factorization of a positive integer. Euclidean Algorithm Example: Find the greatest common divisor of 91 and 287. Lemma: Let aa = bbbb + rr, where aa, bb, qq, and rr are integers. Then gggggg(aa, bb) = gggggg(bb, rr). The algorithm can be written as a sequence of equations. Let rr 0 = aa and rr 1 = bb. rr 0 = rr 1 qq 1 + rr 2 0 rr 2 rr 1 rr 1 = rr 2 qq 2 + rr 3 0 rr 3 rr 2... rr nn 2 = rr nn 1 qq nn 1 + rr nn 0 rr nn rr nn 1 rr nn 1 = rr nn qq nn If aa is smaller than bb, the first step of the algorithm swaps the numbers. The remainders decrease with every step but can never be negative. A remainder rr nn must eventually equal zero. Then the algorithm stops. gggggg(aa, bb) = gggggg(rr 0, rr 1 ) = gcd(rr 1, rr 2 ) = = gcd(rr nn 1, rr nn ) = gcd (rr nn, 0) Page 7 of 9

Example: Find the greatest common divisor of 123 and 277. gcd as a Linear Combinations Bezout s Theorem: If aa and bb are positive integers, then there exists integers ss and tt such that gggggg(aa, bb) = ssss + tttt. Example: Express gcd(252, 198) =18 as a linear combination of 252 and 198. Page 8 of 9

Example: Express gggggg(35, 78) as a linear combination of 35 and 78. Page 9 of 9