Cool Results on Primes

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

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

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

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

Elementary Properties of the Integers

Modular Arithmetic Instructor: Marizza Bailey Name:

#26: Number Theory, Part I: Divisibility

Proof by Contradiction

Math Lecture 18 Notes

Chapter 5. Number Theory. 5.1 Base b representations

MATH10040: Numbers and Functions Homework 1: Solutions

Integer-Valued Polynomials

Intermediate Math Circles February 29, 2012 Linear Diophantine Equations I

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?

1. multiplication is commutative and associative;

Commutative Rings and Fields

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

Math Lecture 23 Notes


Section 0.6: Factoring from Precalculus Prerequisites a.k.a. Chapter 0 by Carl Stitz, PhD, and Jeff Zeager, PhD, is available under a Creative

Lesson 21 Not So Dramatic Quadratics

MATH 2400 LECTURE NOTES: POLYNOMIAL AND RATIONAL FUNCTIONS. Contents 1. Polynomial Functions 1 2. Rational Functions 6

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 =

Divisibility = 16, = 9, = 2, = 5. (Negative!)

Solutions to Assignment 1

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

Intermediate Math Circles March 6, 2013 Number Theory I

Winter Camp 2009 Number Theory Tips and Tricks

Intermediate Math Circles February 26, 2014 Diophantine Equations I

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

. As the binomial coefficients are integers we have that. 2 n(n 1).

Number Theory. Introduction

Introduction: Pythagorean Triplets

Fall 2017 Test II review problems

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

Grade 7/8 Math Circles. Mathematical Thinking

MI 4 Mathematical Induction Name. Mathematical Induction

Writing proofs for MATH 61CM, 61DM Week 1: basic logic, proof by contradiction, proof by induction

Try the assignment f(1) = 2; f(2) = 1; f(3) = 4; f(4) = 3;.

Math Circles - Lesson 2 Linear Diophantine Equations cont.

Mathematics 220 Midterm Practice problems from old exams Page 1 of 8

An Introduction to Proof-based Mathematics Harvard/MIT ESP: Summer HSSP Isabel Vogt

Solutions to Practice Final

PGSS Discrete Math Solutions to Problem Set #4. Note: signifies the end of a problem, and signifies the end of a proof.

What is proof? Lesson 1

Grade 11/12 Math Circles Rational Points on an Elliptic Curves Dr. Carmen Bruni November 11, Lest We Forget

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

MATH CSE20 Homework 5 Due Monday November 4

NAME DATE PERIOD. A negative exponent is the result of repeated division. Extending the pattern below shows that 4 1 = 1 4 or 1. Example: 6 4 = 1 6 4

WORKSHEET ON NUMBERS, MATH 215 FALL. We start our study of numbers with the integers: N = {1, 2, 3,...}

Homework #2 solutions Due: June 15, 2012

Lecture 2. The Euclidean Algorithm and Numbers in Other Bases

Chapter 1 A Survey of Divisibility 14

Deepening Mathematics Instruction for Secondary Teachers: Algebraic Structures

MATH10040: Chapter 0 Mathematics, Logic and Reasoning

Senior Math Circles Cryptography and Number Theory Week 2

Chapter 14: Divisibility and factorization

Math101, Sections 2 and 3, Spring 2008 Review Sheet for Exam #2:

PRIME NUMBERS YANKI LEKILI

MATH10040 Chapter 1: Integers and divisibility

Math 109 HW 9 Solutions

DIVISIBILITY AND GREATEST COMMON DIVISORS

Fibonacci mod k. In this section, we examine the question of which terms of the Fibonacci sequence have a given divisor k.

Clock Arithmetic. 1. If it is 9 o clock and you get out of school in 4 hours, when do you get out of school?

(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-2. Polynomials and Factoring. Section A-2 1

MODEL ANSWERS TO HWK #10

The next sequence of lectures in on the topic of Arithmetic Algorithms. We shall build up to an understanding of the RSA public-key cryptosystem.

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?

Discrete Mathematics and Probability Theory Fall 2018 Alistair Sinclair and Yun Song Note 6

Grade 8 Chapter 7: Rational and Irrational Numbers

Long division for integers

Polynomial Rings. i=0

(3,1) Methods of Proof

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

Math 118: Advanced Number Theory. Samit Dasgupta and Gary Kirby

PYTHAGOREAN TRIPLES KEITH CONRAD

Discrete Mathematics and Probability Theory Summer 2014 James Cook Note 5

Math 319 Problem Set #2 Solution 14 February 2002

Unit 2-1: Factoring and Solving Quadratics. 0. I can add, subtract and multiply polynomial expressions

Lesson 3-2: Solving Linear Systems Algebraically

Notes: Pythagorean Triples

Mathematics 228(Q1), Assignment 2 Solutions

LeLing13: Polynomials and complex numbers. Division of polynomials. Euclides s algorithm and multiple roots. R ecommended exercises: Geoling 15.

SECTION 2.3: LONG AND SYNTHETIC POLYNOMIAL DIVISION

NOTES ON SIMPLE NUMBER THEORY

Quadratic Equations Part I

that if a b (mod m) and c d (mod m), then ac bd (mod m) soyou aren't allowed to use this fact!) A5. (a) Show that a perfect square must leave a remain

Chapter 2. Divisibility. 2.1 Common Divisors

MATHEMATICAL INDUCTION

LESSON 9.1 ROOTS AND RADICALS

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

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

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

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

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

Solution Set 2. Problem 1. [a] + [b] = [a + b] = [b + a] = [b] + [a] ([a] + [b]) + [c] = [a + b] + [c] = [a + b + c] = [a] + [b + c] = [a] + ([b + c])

CH 59 SQUARE ROOTS. Every positive number has two square roots. Ch 59 Square Roots. Introduction

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

2301 Assignment 1 Due Friday 19th March, 2 pm

Transcription:

Cool Results on Primes LA Math Circle (Advanced) January 24, 2016 Recall that last week we learned an algorithm that seemed to magically spit out greatest common divisors, but we weren t quite sure why it did. The algorithm went as follows: Take two integers a and b, divide one by the other with remainder, then divide the divisor by the remainder, then divide the new divisor by the new remainder... Eventually we perform a division with remainder 0, and we look directly above the zero, and we find the greatest common divisor of a and b right there. Example If a = 77, b = 30, then we get 77 = 2 30 + 17 30 = 1 17 + 13 17 = 1 13 + 4 13 = 3 4 + 1 4 = 4 1 + 0 Problem 1 Perform the division algorithm on the following pairs of integers: a = 88, b = 254 a = 107, b = 284 1

a = 65, b = 1035 a = 517, b = 352 a = 1053, b = 51 a = 1012, b = 528 Now it s time to make an important observation. Let s start by rearranging the equations on the first page as follows: 17 = 77 2 30 (1) 13 = 30 1 17 (2) 4 = 17 1 13 (3) 1 = 13 3 4 (4) 2

We can plug equation (3) into equation (4): 1 = 13 3 (17 1 13) = 4 13 3 17 (5) Now we can plug equation (2) into equation (5): 1 = 4 (30 1 17) 3 17 = 4 30 7 17 (6) Finally, if we plug equation (1) into equation (6): 1 = 4 30 7 (77 2 30) = 18 30 7 77 (7) Equation (7) may look uninteresting right now, but it expresses the output d of the Euclidean algorithm in the form d = ax + by, where a, b are the input and x and y are integers. We will see soon that this is actually extremely interesting. Problem 2 Write the output d of the Euclidean algorithm in the form ax+by where a and b are the input (use your work from page 2 to help): a = 88, b = 254 a = 107, b = 284 3

a = 65, b = 1035 a = 517, b = 352 a = 1053, b = 51 a = 1012, b = 528 We will soon use the equation d = ax + by to prove that d is the greatest common divisor of a and b, but first, we will review from last class: Problem 3 Explain why for any integers a and b which aren t zero, the Euclidean algorithm must eventually stop. (Hint: what happens to the remainders at each successive step?) 4

Problem 4 Let s say we pick integers a and b, we do the Euclidean algorithm with them, and it takes 4 steps: a = q b + r b = q 1 r + r 1 r = q 2 r 1 + r 2 r 1 = q 3 r 2 + r 3 r 2 = q 4 r 3 + 0 Prove that r 3 a and r 3 b. (Hint: repeatedly use the fact that if a b and a c, and x, y are integers, then a bx + cy.) Problem 5 If d is the output of the Euclidean algorithm with input a and b, we learned that we can always write d = ax + by for some integers x and y. Use this fact to prove that if e a and e b, then e d. 5

Recall the definition of greatest common divisor: If a, b, and d are integers, we say that d is a greatest common divisor of a and b if: 1. d a and d b 2. If e is any other integer such that e a and e b, then e d. If d is the output of the Euclidean algorithm with input a and b, then problem 4 shows that d satisfies condition 1, and problem 5 shows that d satisfies condition 2. So we did it! Now we know why our mysterious calculations always yield greatest common divisors! Actually, we learned some other things too: 1. Greatest common divisors always exist. Look at the definition of the greatest common divisor - it tells us when a number d is a greatest common divisor of a and b. But it s not obvious that two random integers a and b will actually have a greatest common divisor. You probably very strongly believed that all pairs of integers had greatest common divisors, but now for the very first time, you know it! If that doesn t help you sleep at night, I don t know what will. 2. You can easily (especially with the aid of a computer) find the greatest common divisor of any two integers. 3. If d is the greatest common divisor of a and b, then there are numbers x and y such that d = ax + by. This last discovery is very important from the theoretical point of view. We ll illustrate why by using it to prove some very cool things about primes - the goal of today s class. 6

Problem 6 If p is a prime number and a is a number which is not divisible by p, prove that 1 is a common divisor of a and p. Problem 7 Prove that 1 also satisfies the second condition of being a greatest common divisor of a and p. Problem 8 If p is a prime number and a is a number which is not divisible by p, prove that there are numbers x and y such that ax + py = 1. Problem 9 If p is a prime number and a and b are numbers such that p a but p ab, prove that p b. (Hint: multiply the equation ax + py = 1 on both sides by b.) 7

So, we have arrived at what is easily the most important property of prime numbers: If p is prime, then p ab = p a or p b. Problem 10 Is this true when p is not prime? We can use the fact in the box to prove an interesting fact about prime numbers: their square roots are not rational (rational numbers are fractions a with a, b integers). For a very long time (probably until the 5th century BC), nobody knew that there were any irrational b (= not rational) numbers. This seems reasonable: you probably know π is irrational, but 3.141592653589793238462643383279502884197169 is rational, and is very close to π. Strategy It will help to have a strategy for proving a number is irrational. This strategy is called proof by contradiction: If we want to show the number x is irrational, we will assume it s rational, so we can write x = a, and show that this is actually impossible. b Problem 11 Use the strategy to prove that if x is a rational number and y is an irrational number, then x + y is an irrational number. 8

Problem 12 Use the strategy to prove that 2 is irrational. (Hint: any fraction can be written in the form a where a and b have no b common divisors - that is, as a reduced fraction.) Problem 13 Adapt the argument from problem 10 to show that p is irrational for any prime number p. 9

Next we want to show that any integer n 2 can be written as a product p 1 p 2 p k of prime numbers p 1, p 2,..., p k. Problem 14 Complete the following proof of the fact described above: Suppose toward a contradiction that there are integers 2 which cannot be factored into primes. 2 can be factored into primes (it is a prime itself), so can 3, and 4 = 2 2, and so on. But eventually we must get to a first integer n which cannot be factored into primes - that is, n has no prime factorization, but every number smaller than n does... (Hint: can n be prime? Why or why not? What does this tell us?) 10

As an application of the existence of prime factorizations, we will prove Euclid s theorem that there are infinitely many primes: Problem 15 Complete the following proof that there are infinitely many primes: Suppose toward a contradiction that there are only finitely many primes. Then we can list them out as p 1, p 2,..., p N. Now consider the number p 1 p 2 p N +1. This number has a prime factorization, so in particular, it is divisible by some prime p... 11

To solve problem 13, the existence of a prime factorization was sufficient, but for many problems it s not. For them, we also need to know that this prime factorization is unique. More precisely: If p 1 p 2 p k and q 1 q 2 q l are two prime factorizations of the same number n, then k = l and the list q 1, q 2,..., q l is a rearrangement of the list p 1, p 2,, p k 1. Problem 16 Prove that prime factorizations of integers are unique. (Hint: p 1 p 2 p k = q 1 q 2 q l, so p 1 q 1 q 2 q l. Now from the property in the box on page 8, p 1 q j for some j, so...) 1 For example, 2, 3, 5, 3, 3, 5, 7 is a rearrangement of 3, 3, 3, 7, 5, 5, 2. 12

As a nice illustration of the power of the uniqueness theorem we ve just proven, we can give a slightly simpler proof that 2 is irrational: Suppose otherwise. Then we can write 2 = a b where a = p 1 p 2 p k and b = q 1 q 2 q l. If we multiply both sides of the equation by b and then square both sides, we get 2q 2 1 q 2 2 q 2 l = p 2 1 p 2 2 p 2 k. But 2 appears an odd number of times on the prime factorization on the left, and an even number of times on the prime factorization on the right, a contradiction. Problem 17 Use the argument above to give another proof that p is irrational for any prime p. 13

Problem 18 Repeat the same argument to prove that actually, if n is rational, then n must be a perfect square. (Hint: If n = p e 1 1 pe 2 2 pe k k, where p 1, p 2,..., p k are distinct primes, then it is enough to show that e 1, e 2,..., e k are all even. Why?) Problem 19 Suppose x, y, z, w are nonnegative integers and Find 2x + 3y + 5z + 7w. 2 x 3 y 5 z 7 w = 756. 14

Problem 20 In this problem, we ll give an example of an object which admits factorization into irreducible elements, but this factorization is not unique. The object is the collection of all even integers. We can add, subtract, and multiply even integers, and the result is still an even integer, so we can consider this object as its own number system. Explain why an even integer should be considered irreducible in this number system if it is divisible by 2 only once, and find two distinct factorizations of the number 36 into irreducibles. 15