n = p 1 p 2 p r = q 1 q 2 q m, then r = m (i.e. the number of primes in any prime decomposition

Similar documents
Midterm Exam. There are 6 problems. Your 5 best answers count. Please pay attention to the presentation of your work! Best 5

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

Exam 1. (2x + 1) 2 9. lim. (rearranging) (x 1 implies x 1, thus x 1 0

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

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

Discrete Structures Lecture Primes and Greatest Common Divisor

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.

Answers (1) A) 36 = - - = Now, we can divide the numbers as shown below. For example : 4 = 2, 2 4 = -2, -2-4 = -2, 2-4 = 2.

A group of figures, representing a number, is called a numeral. Numbers are divided into the following types.

Intermediate Math Circles February 14, 2018 Contest Prep: Number Theory

Discrete Math. Instructor: Mike Picollelli. Day 10

RED. Name: Instructor: Pace Nielsen Math 290 Section 1: Winter 2014 Final Exam

Mathematics 228(Q1), Assignment 2 Solutions

MAT246H1S - Concepts In Abstract Mathematics. Solutions to Term Test 1 - February 1, 2018

CSCE 222 Discrete Structures for Computing. Proofs. Dr. Hyunyoung Lee. !!!!! Based on slides by Andreas Klappenecker

Ch 4.2 Divisibility Properties

Numbers. 2.1 Integers. P(n) = n(n 4 5n 2 + 4) = n(n 2 1)(n 2 4) = (n 2)(n 1)n(n + 1)(n + 2); 120 =

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

Discrete Math I Exam II (2/9/12) Page 1

GRE. Advanced GRE Math Questions

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

Discrete Mathematics & Mathematical Reasoning Predicates, Quantifiers and Proof Techniques

2.57 PART E: THE FUNDAMENTAL THEOREM OF ALGEBRA (FTA) The Fundamental Theorem of Algebra (FTA)

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

2.3 In modular arithmetic, all arithmetic operations are performed modulo some integer.

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

Homework 3, solutions

Number Theory and Graph Theory. Prime numbers and congruences.

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

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

UNIVERSITY OF VICTORIA DECEMBER EXAMINATIONS MATH 122: Logic and Foundations

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

CITS2211 Discrete Structures (2017) Cardinality and Countability

Chapter 5: The Integers

5: The Integers (An introduction to Number Theory)

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.

MATH 324 Summer 2011 Elementary Number Theory. Notes on Mathematical Induction. Recall the following axiom for the set of integers.

Notes on Systems of Linear Congruences

Math 13, Spring 2013, Lecture B: Midterm

The theory of numbers

Fermat s Little Theorem. mod 13 = 0, = }{{} mod 13 = 0. = a a a }{{} mod 13 = a 12 mod 13 = 1, mod 13 = a 13 mod 13 = a.

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

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?

Exam. There are 6 problems. Your 5 best answers count. Please pay attention to the presentation of your work! Best 5

Circles & Interval & Set Notation.notebook. November 16, 2009 CIRCLES. OBJECTIVE Graph a Circle given the equation in standard form.

Fundamentals of Mathematics (MATH 1510)

Solutions to Assignment 1

Fundamental Algorithms

Math 412: Number Theory Lecture 3: Prime Decomposition of

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?

Lagrange s Theorem. Philippe B. Laval. Current Semester KSU. Philippe B. Laval (KSU) Lagrange s Theorem Current Semester 1 / 10

Discrete Mathematics and Probability Theory Summer 2014 James Cook Midterm 1 (Version B)

(3,1) Methods of Proof

Number Theory and Group Theoryfor Public-Key Cryptography

Chapter-2 Relations and Functions. Miscellaneous

Contradiction MATH Contradiction. Benjamin V.C. Collins, James A. Swenson MATH 2730

Why write proofs? Why not just test and repeat enough examples to confirm a theory?

Show Your Work! Point values are in square brackets. There are 35 points possible. Some facts about sets are on the last page.

Section 19 Integral domains

~ p is always false. Based on the basic truth table for disjunction, if q is true then p ~

McGill University Faculty of Science. Solutions to Practice Final Examination Math 240 Discrete Structures 1. Time: 3 hours Marked out of 60

Introduction to Public-Key Cryptosystems:

Final Exam Review. 2. Let A = {, { }}. What is the cardinality of A? Is

. In particular if a b then N(

Chinese Remainder Theorem explained with rotations

Math 324 Summer 2012 Elementary Number Theory Notes on Mathematical Induction


Direct Proof Divisibility

Functions and relations

Lecture 14: Hardness Assumptions

YALE UNIVERSITY DEPARTMENT OF COMPUTER SCIENCE

Direct Proof Divisibility

Countable and uncountable sets. Matrices.

Equivalence relations

MATH 3030, Abstract Algebra FALL 2012 Toby Kenney Midyear Examination Friday 7th December: 7:00-10:00 PM

Course MA2C02, Hilary Term 2013 Section 9: Introduction to Number Theory and Cryptography

Wollongong College Australia

7. Prime Numbers Part VI of PJE

Arithmetic. Integers: Any positive or negative whole number including zero

Outline. Some Review: Divisors. Common Divisors. Primes and Factors. b divides a (or b is a divisor of a) if a = mb for some m

Outline. AIT 682: Network and Systems Security. GCD and Euclid s Algorithm Modulo Arithmetic Modular Exponentiation Discrete Logarithms

Proof by Contradiction

Attempt QUESTIONS 1 and 2, and THREE other questions. penalised if you attempt additional questions.

Intermediate Math Circles March 6, 2013 Number Theory I

Finite fields: some applications Michel Waldschmidt 1

Mathematics 4: Number Theory Problem Sheet 3. Workshop 26 Oct 2012

Attempt QUESTIONS 1 and 2, and THREE other questions. penalised if you attempt additional questions.

REVIEW Chapter 1 The Real Number System

Basic Proof Examples

CHAPTER 1 REAL NUMBERS KEY POINTS

Divisibility of Natural Numbers

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

Arithmetic, Algebra, Number Theory

Cool Results on Primes

Lecture 6: Introducing Complexity

Outline. We will cover (over the next few weeks) Induction Strong Induction Constructive Induction Structural Induction

PRACTICE PROBLEMS: SET 1

Accelerated Math. Class work 3. Algebra.

AN ALGEBRAIC PROOF OF RSA ENCRYPTION AND DECRYPTION

GEOMETRY AND MENSURATION...

Transcription:

Department of Mathematical Sciences Instructor: Daiva Pucinskaite Discrete Mathematics Factoring Recall. Fundamental Theorem of Arithmetic. Let n be a positive integer n > 1. Then n can be represented in (up to order) exactly one way as a product of prime numbers. Remark: If p 1, p 2,..., p r, q 1, q 2,..., q m are primes, and n = p 1 p 2 p r = q 1 q 2 q m, then r = m (i.e. the number of primes in any prime decomposition is the same) and the only difference of (p 1, p 2,..., p r ) and (q 1, q 2,..., q r ) is the order. This product is the prime factorization of n. 39.2. Factor the following positive integers into primes. a. 25 = 5 5 b. 4200 = 2 2 2 3 5 5 c. 10 10 = (25) 10 = (2 5) (2 5) (2 5) = } 2 2 {{ 2} 5 } 5 {{ 5}. 10-times 10-times 10-times d. 19 = 19. 1. 1 equals to the empty product. 39.3. Let x be an integer. Prove that 2 x and 3 x if and only is 6 x. We have to prove two statements: I. If 2 x and 3 x, then 6 x II. If 6 x, then 2 x and 3 x

Proof of I. By the assumption 2 x and 3 x: 2 x and 3 x = x = 2 c and x = 3 z for certain c, z Z = 2 appears in the prime factorization of x and 3 appears in the prime factorization of x = the prime factorization of x is of the form x = 2 3 further prime factors = x = 6 further prime factors = 6 is a factor of x = 6 x (this is what we had to show) Proof of II. By the assumption 6 x 6 x = x = 6 c for certain c Z, = x = 2 3 c ( because 6 = 2 3), = x = 2 3 c and x = 3 2 c, = Z Z 2 is a factor of x and 3 is a factor of x, = 2 x and 3 x (this is what we had to show). Generalisation: Let p and q be unequal primes. Then p x and q x if and only if (pq) x. 39.4. Let a be an positive integer, and p a prime. Prove that p a if and only if the prime factorization of a contains p (or in other words: p a if and only if p appears in the prime factorization of a). We have to prove two statements: I. If p x, then p appears in the prime factorization of a II. If p appears in the prime factorization of a, then p x. Proof of I. By the assumption p x: 2

p x = x = p n for some n N, ( n is positive, because a is positive by the assumption) n N = n = p 1 p 2 p r is the prime factorization of n. (this follows form the Fundamental Theorem of Arithmetic ) = x = p p 1 p 2 p r n is the prime factorization of x (all numbers in this multiplication are prime, thus Fundamental Theorem of Arithmetic provides, x = p p 1 p 2 p r is the (one and only) prime factorization of x) = p appears in the prime factorization of a ( this is what we had to show). Proof of II. If p appears in the prime factorization a = p 1 p i 1 p i p i+1 p r of a, then p = p i for some 1 i r. Therefore implies p x. x = p i (p 1 p i 1 p i+1 p r ) p (Example. The prime p = 4 appears in the prime factorization of a = 2 p 1 p 2 p 3 4 p 4 61, p 5 because p = p 4. Therefore a = 4 ( 2 61 ) implies that 4 is a divisor p p 1 p 2 p 3 p 5 of a) 39.5. Let a, b N, and p is a prime. If p (a b), then p a or p b. Proof. Since a, b N, by the Fundamental Theorem of Arithmetic there is (up to order) unique list of primes (p 1, p 2,..., p r ) such that a = p 1 p 2 p r, and unique list of primes (t 1, t 2,..., t m ) such that b = t 1 t 2 t m. Therefore a b = p 1 p 2 p r t 1 t 2 t m is the prime factorization of ab (because all numbers in this product are primes). The assumption p (a b) implies that p appears in the prime factorization of a b. We have 3

a b = p 1 p 2 p r t 1 t 2 t m = p further prime factors. Since the the prime factorization of a b is (up to order) unique, we have p = p i for some i {1,..., r} or p = t j for some j {1,..., m}. If p = p i, i.e. p appears in the prime factorization of a, then p a (statement 39.4). If p p i for all i {1,..., r}, then p = t j for some j. In this case p b, because p appears in the prime factorization of b. 1. Let n N, and let p be a prime. Show that the following statements are true (1) p appears an even number (or zero) of times in the prime factorization of n 2. Proof. Let n = p 1 p 1 p 1 p 2 p 2 p 2 n 1 -times n 2 -times p m p m p m n m-times the prime factorization of n, where p 1, p 2,..., p r are pairwise different (i.e. p i p j if i j). Example: In the prime factorization of n = 112185655942 112185655942 = 2 2 2 23 23 41 41 41 41 41 we have m = 4, because p 1 = 2, p 2 =, p 3 = 23, p 4 = 41 are pairwise different primes, and n 1 = 3, n 2 = 4, n 3 = 2, n 4 = 5, because p 1 = 2 appears n 1 = 3 times in the prime factorization of n, p 2 = appears n 2 = 4 times in the prime factorization of n, p 3 = 23 appears n 3 = 2 times in the prime factorization of n, p 4 = 41 appears n 4 = 5 times in the prime factorization of n. Then n 2 = p 1 p 1 p 2 p 2 p m p m p 1 p 1 p 2 p 2 p m p }{{ m } n 1 -times n 2 -times n m-times n 1 -times n 2 -times n m-times = p 1 p 1 p 2 p 2 p m p }{{ m } 2n 1 -times 2n 2 -times 2n m-times is the prime factorization of n 2. If p p i for all i {1, 2,..., r}, then p appears 0 times in the prime factorization of n 2. If p = p i, then p appears 2 n i times be 4

in the prime factorization of n. Since 2 n i is even, we showed what we had to show. (2) p appears an odd number of times in the prime factorization of m = p n 2. Proof. From (1) we know that p appears even number (or zero) of times in the prime factorization of n 2. If p appears 0 times in the prime factorization of n 2 (i.e. p don t appears in the prime factorization of n 2 ), then p appears 1 time in the prime factorization of m = p n 2. If p appears 2 k times in the prime factorization of n 2, then p appears 2 k + 1 times in the prime factorization of m = p n 2. Since 1 as well as 2 k + 1 are odd, we showed what we had to show. Let n = 1 19 19 4 4 4, then n 2 = 1 1 19 19 19 19 4 4 4 4 4 4 the prime factorization of n 2, because all numbers in this product are prime. Thus 1 appears 3 times in the prime factorization of 1 n 2, 19 appears 5 times in the prime factorization of 19 n 2, 4 appears times in the prime factorization of 4 n 2, p appears 1 time in the prime factorization of p n 2 if p 1, 19, 4. 2. Prove the following statements. (1) There are no numbers a, b such that a b =. This is: For all numbers a, b, we have a b. This statement is logically equivalent to the statement If a b =, then a N or b N. We will show that if a b =, then a 2 has two prime factorizations. In the first prime factorization of a 2 the prime appears an even number of times, and in the second prime factorization 5

of a 2 the prime appears an odd number of times. By the Fundamental Theorem of Arithmetic this is not possible if a 2 is a number. This implies that a 2 N and therefore a N (because if a N, then a 2 N). Proof. Assume a b =, we have a b = = a2 b 2 = = a 2 = b 2 = appears an even number of times in the prime factorization of a 2 (Statement 1(1)) and appears an odd number of times in the prime factorization of b 2 = a 2 (Statement 1(2)) = a 2 can t be a number by the Fundamental Theorem of Arithmetic. = a can t be a number (2) There are no numbers a, b such that a b = 23. This is: For all numbers a, b, we have a b 23. Proof. Assume a b = 23, we have a b = 23 = a2 b 2 = 23 = a 2 = 23 b 2 = the prime 23 appears an even number of times in the prime factorization of a 2 (Statement 1(1)) and the prime 23 appears an odd number of times in the prime factorization of 23 b 2 = a 2 (Statement 1(2)) = a 2 can t be a number by the Fundamental Theorem of Arithmetic. = a can t be a number (3) Let p be a prime. There are no numbers a, b such that a b = p. 6