MATH 25 CLASS 8 NOTES, OCT

Similar documents
Prime Numbers. Prime Numbers. Ramesh Sreekantan ISI, Bangalore. December 1, 2014

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

p = This is small enough that its primality is easily verified by trial division. A candidate prime above 1000 p of the form p U + 1 is

Primality Proofs. Geoffrey Exoo Department of Mathematics and Computer Science Indiana State University Terre Haute, IN

FERMAT S TEST KEITH CONRAD

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

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

CHAPTER 6. Prime Numbers. Definition and Fundamental Results

On the Cardinality of Mersenne Primes

LARGE PRIME NUMBERS. In sum, Fermat pseudoprimes are reasonable candidates to be prime.

What do we actually know about prime numbers distribution?

Math 31 Lesson Plan. Day 2: Sets; Binary Operations. Elizabeth Gillaspy. September 23, 2011

Prime and Perfect Numbers

The Riemann Hypothesis

Heuristics for Prime Statistics Brown Univ. Feb. 11, K. Conrad, UConn

Chapter 1. Number of special form. 1.1 Introduction(Marin Mersenne) 1.2 The perfect number. See the book.

SQUARE PATTERNS AND INFINITUDE OF PRIMES

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

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

THE SOLOVAY STRASSEN TEST

Math Real Analysis

Number Theory. Jason Filippou UMCP. ason Filippou UMCP)Number Theory History & Definitions / 1

The poetry of mathematics

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

Ma/CS 6a Class 4: Primality Testing

Junior Villafana. Math 301. Dr. Meredith. Odd Perfect Numbers

Modular Arithmetic Instructor: Marizza Bailey Name:

Applied Cryptography and Computer Security CSE 664 Spring 2017

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

C.T.Chong National University of Singapore

HOW TO WRITE PROOFS. Dr. Min Ru, University of Houston

LARGE PRIME NUMBERS (32, 42; 4) (32, 24; 2) (32, 20; 1) ( 105, 20; 0).

Fermat s Little Theorem. Fermat s little theorem is a statement about primes that nearly characterizes them.

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?

Fermat s Last Theorem for Regular Primes

Math 31 Lesson Plan. Day 5: Intro to Groups. Elizabeth Gillaspy. September 28, 2011

NUMBERS It s the numbers that count

Introduction: Pythagorean Triplets

Basics of Proofs. 1 The Basics. 2 Proof Strategies. 2.1 Understand What s Going On

Introduction to Basic Proof Techniques Mathew A. Johnson

= 5 2 and = 13 2 and = (1) = 10 2 and = 15 2 and = 25 2

Direct Proof and Counterexample I:Introduction

#26: Number Theory, Part I: Divisibility

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

Direct Proof and Counterexample I:Introduction. Copyright Cengage Learning. All rights reserved.

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

PRIME NUMBERS YANKI LEKILI

You separate binary numbers into columns in a similar fashion. 2 5 = 32

Elementary Number Theory

Primality Testing. 1 Introduction. 2 Brief Chronology of Primality Testing. CS265/CME309, Fall Instructor: Gregory Valiant

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

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

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

1 Overview and revision

The New Largest Known Prime is 2 p 1 With p = Who Cares? Sam Wagstaff Computer Sciences and Mathematics.

Ma/CS 6a Class 4: Primality Testing

3 The language of proof

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

The Prime Number Theorem

Euler s, Fermat s and Wilson s Theorems

SUMS OF SQUARES WUSHI GOLDRING

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

Applied Cryptography and Computer Security CSE 664 Spring 2018

MATH10040: Chapter 0 Mathematics, Logic and Reasoning

Introducing Proof 1. hsn.uk.net. Contents

Intermediate Math Circles March 6, 2013 Number Theory I

ASSIGNMENT 1 SOLUTIONS

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

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

Example 2: Student work M ATHS COURSEWORK. Mathematics SL and HL teacher support material 1. Proving Euler s Totient Theorem

1 Recommended Reading 1. 2 Public Key/Private Key Cryptography Overview RSA Algorithm... 2

Sums and products: What we still don t know about addition and multiplication

What we still don t know about addition and multiplication. Carl Pomerance, Dartmouth College Hanover, New Hampshire, USA

Chapter 2. Divisibility. 2.1 Common Divisors

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?

Math 412: Number Theory Lecture 3: Prime Decomposition of

Theoretical Cryptography, Lecture 13

Appendix G: Mathematical Induction

35 Chapter CHAPTER 4: Mathematical Proof

Paper Topics Due: May 9, 2019

Lecture 7. January 15, Since this is an Effective Number Theory school, we should list some effective results. x < π(x) holds for all x 67.

NUMBER THEORY. Anwitaman DATTA SCSE, NTU Singapore CX4024. CRYPTOGRAPHY & NETWORK SECURITY 2018, Anwitaman DATTA

PRIMALITY TEST FOR FERMAT NUMBERS USING QUARTIC RECURRENCE EQUATION. Predrag Terzic Podgorica, Montenegro

Discrete Structures Lecture Primes and Greatest Common Divisor

Lucas Lehmer primality test - Wikipedia, the free encyclopedia

9.4. Mathematical Induction. Introduction. What you should learn. Why you should learn it

Factoring. Number Theory # 2

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

SECTION 9.2: ARITHMETIC SEQUENCES and PARTIAL SUMS

Mathematics of Public Key Cryptography

Senior Math Circles Cryptography and Number Theory Week 2

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

5.4 Continuity: Preliminary Notions

Seunghee Ye Ma 8: Week 1 Notes September 29, 2016

What is proof? Lesson 1

Exam 2 Solutions. In class questions

Winter Camp 2009 Number Theory Tips and Tricks

Algorithms CMSC Homework set #1 due January 14, 2015

5 + 9(10) + 3(100) + 0(1000) + 2(10000) =

Transcription:

MATH 25 CLASS 8 NOTES, OCT 7 20 Contents. Prime number races 2. Special kinds of prime numbers: Fermat and Mersenne numbers 2 3. Fermat numbers 3. Prime number races We proved that there were infinitely many primes of the form 4k + 3, and we said that there were infinitely many primes of the form 4k +, and that we would give a proof of this fact later in this class. Recall that π(x) is the number of primes less than or equal to x; let π(x; q, a) be the number of primes less than or equal to x of the form qk + a. Based on what we talked about last class, this function is only interesting when gcd(a, q) =. Dirichlet s Theorem can be rephrased as saying that lim x π(x; q, a) = when gcd(q, a) =. On the other hand, the prime number theorem says that π(x) x/ log x. A slight modification of the proof of the PNT can yield an analogous asymptotic result for primes in arithmetic progression: if gcd(q, a) =, then π(x; q, a) x φ(q) log x, where φ(q) is the Euler-totient function, a function we will carefully study in a few weeks. φ(q) is equal to the number of integers a with a q which are relatively prime to q; for instance, φ(4) = 2, φ(6) = 2, φ(8) = 4. The previous theorem says that, at least asymptotically speaking, each particular arithmetic progression qk + a gets its fair share of the primes. Or does they? After all, the above result only says something about asymptotic density, which is a first-order approximation to the size of functions. If one were to actually look at a plot of the number of primes of the form 4k + vs 4k + 3, the first feature that would jump out is that π(x; 4, 3) > π(x; 4, ) for the entire time, at least if x is not too large. The fact that π(x; 4, 3) > π(x; 4, ) for most values of x is called Chebyshev s bias, after the Russian mathematician who first observed this phenomenon. However, π(x; 4, 3) is not ahead the entire time. As a matter of fact, in the early 20th century, J.E. Littlewood proved that π(x; 4, ) beats π(x; 4, 3) for an infinite number of x, despite the data for small x suggesting otherwise. However, perhaps π(x; 4, 3) beats π(x; 4, ) for most x? It was initially conjectured that the fraction of such numbers x has density. However, this was later proven to be false. One can then ask, does this fraction have a limit as x? Well, it was also proven, under a conjecture known as the

2 MATH 25 CLASS 8 NOTES, OCT 7 20 Generalized Riemann Hypothesis, that there is no such limit; ie, the proportion of the time π(x; 4, 3) > π(x; 4, ) has no limit as x! At least, this is true if we weight each number x by the same amount in the count. However, if we use what is known as a logarithmic density, then we have the following result of Rubinstein and Sarnak: Theorem. Assuming two unproven conjectures (the GRH and another conjecture known as Linear Independence), the following is true: log x x X, π(x;4,3)>π(x;4,) x.9959.... This result opened up a small speciality in number theory dedicated to understanding such phenomenon in general. Needless to say, the techniques for the proofs of theorems like these require rather advanced techniques. 2. Special kinds of prime numbers: Fermat and Mersenne numbers Let s consider some special prime numbers. First, we ll look at numbers of the form 2 n, which are called Mersenne numbers. Notice that when n = 2, 3, 5, 7, 2 n = 3, 5, 3, 27, and these are all prime numbers. One might be led to think that 2 p is prime when p is prime from these examples, but actually 2 = 2047 = 23 89 is not a prime number. Nevertheless, it is true that if 2 p is prime, then p is a prime: Proposition. Suppose 2 n is prime. Then n is prime. Proof. We prove the contrapositive. Suppose n is composite; say n = ab, for < a, b < n. Then we can factor 2 n = 2 ab as follows: 2 ab = (2 a )(2 a(b ) + 2 a(b 2) +... + ). Checking that this equation is true is routine algebra. In any case, if < a, b, then 2 a >, and 2 a(b ) +... + > as well. So this factorization shows that 2 n is divisible by some number between, 2 n if n is composite. Part of the reason why Mersenne primes are interesting is because there exists a very rapid test, called the Lucas-Lehmer test, to determine whether a Mersenne number is actually prime. The Internet project GIMPS, which is short for the Great Internet Mersenne Prime Search, is one of the first distributed computing projects which appeared on the Internet in the 990s. All the largest known prime numbers (by far) are Mersenne primes. Let M n = 2 n. Then as of late 200 the largest known Mersenne prime (and the largest known prime) is M 432609, which has almost 3 million digits. This is the 47th known Mersenne prime, although currently it is unknown whether this is the 47th smallest Mersenne prime, since GIMPS has yet to rule out the existence of Mersenne primes under M 432609. Incidentally, the Lucas-Lehmer primality test does not actually tell you any of the factors of M p when it tells you that M p is composite. This might seem to be a drawback, but this is

MATH 25 CLASS 8 NOTES, OCT 7 20 3 an illustration of the general empirical principle that (based on current knowledge) primality testing is much faster than factorization. If you are interested in learning more about and possibly participating in GIMPS, head to their website at www.mersenne.org. In general, it takes about a month to run a primality test on a single candidate. GIMPS statistics There has been a discovery of a new prime about once every two years or so, with the most recent coming in 2009. There are also small cash prizes available for discovering new Mersenne primes, and a $50, 000 prize for the first discoverer of a prime with more than 00 million digits. However, there is very little hope for discovering such a large prime in any reasonable time with current computer hardware. Maybe in another ten or twenty years! The GIMPS webpage statistics indicate that GIMPS is running at about 50 teraflops (50 trillion floating point operations per second, a measure of the computational power of all the computers running GIMPS right now). By way of comparison, the project SETI@Home (which searches for intelligent extraterrestrial life by scanning stars for unusual electromagnetic signals) has about 750 teraflops of capacity, while the largest distributed computing project, Folding@Home, has about 6 petaflops (6,000 teraflops) of computing power. The current top supercomputer in the world, the K Computer in Japan, has peak capacity of about 8 petaflops, while IBM is designing a new supercomputer called Sequoia, which apparently will run at 20 petaflops when finished. So if we unleashed the power of these supercomputers (or if GIMPS just became more popular), then Mersenne primes would probably be discovered more quickly. However, it s probably true that testing Mersenne numbers for primality is not the best use of such expensive computing hardware! By the way, it is unknown whether there actually are infinitely many Mersenne primes. Proving this theoretical fact (as opposed to experimental computations) would be a great breakthrough. 3. Fermat numbers We very briefly looked at numbers of the form 2 n and considered the problem of when they were prime. We found that if 2 n is prime, then n is prime, but for many primes 2 p can be composite. As a matter of fact only 47 such primes have been discovered so far, with p getting as large as 43 million or so. Whether there are infinitely many such primes is still an open question, but distributed computing projects exist to try to find larger and larger such primes. There is a specialized primality test, the Lucas-Lehmer test, for numbers of this form, and we may come back to this near the end of the class. Let us now consider numbers of the form 2 n +, and in particular consider the question of when these numbers are prime. If you calculate the first few instances of this number, you get 2 + = 3, 2 2 + = 5, 2 3 + = 9, 2 4 + = 7, 2 5 + = 33, 2 6 + = 65, 2 7 + = 29,.... The pattern is not obvious, but perhaps one thing which jumps out at us is that 2 n + seems to be composite if n is odd. As a matter of fact, we can prove something slightly better:

4 MATH 25 CLASS 8 NOTES, OCT 7 20 Proposition 2 (Proposition 2. of the text). Let n be an integer with n 2. Then 2 n + is composite if n is not a power of 2. (Evidently this condition on n is equivalent to saying that no odd prime divides n.) Proof. Suppose that n is not a power of 2. Then we may write n = 2 k m, for some integer k 0, m an odd number greater than. Let a = 2 2k. Then we may factor 2 n + as follows: 2 2km + = a m + = (a + )(a m a m 2 + a m 3... a + ). Notice that we use the fact that m is odd to ensure that the final term in the expression on the right really is a + as opposed to a. This does show that 2 n + is composite, because a + > (as a matter of fact, a + 3), and a + < a m + because m 3. This proposition tells us that if we want to find primes of the form 2 n +, we should be looking for numbers of the form 2 2n +. These numbers are called Fermat numbers, after Pierre de Fermat, a French lawyer in the 7th century who also happened to be one of the most important mathematicians of the time, who was perhaps the first person to systematically study these numbers. Let s write F n = 2 2n +. The first few Fermat numbers are F 0 = 3, F = 5, F 2 = 7, F 3 = 257, F 4 = 65537. Evidently F 5 is quite large; it is equal to 4294967297. Fermat looked at the beginning of this sequence and it is not too time-consuming to check that 3, 5, 7, 257, 65537 are all prime numbers. On the basis of this evidence, Fermat conjectured that all Fermat numbers are prime. This provides a historical lesson in perhaps not making general conjectures on a small amount of numerical evidence. About a hundred years later, Euler showed that F 5 is composite by exhibiting a factorization of F 5, and every Fermat number past F 5 which has been checked for primality/compositeness has been shown to be composite! As a matter of fact, it is still an open question whether there are either infinitely many prime Fermat numbers or infinitely many composite Fermat numbers. One of these must be true, but we still don t know which one! The general belief is that there are infinitely many composite Fermat numbers, and probably only finitely many prime Fermat numbers, but no one seems to have any real idea how to tackle these problems. Fermat numbers have some interest outside of number theory. As a young man, Gauss proved that a regular n-gon is constructible by straightedge and compass (a type of problem very important in classical Euclidean geometry) if n = 2 k p... p r, where k 0 and the p i are distinct Fermat primes. This condition was later proved to also be necessary; Gauss claimed this but did not give a proof himself (although it is possible he found one but never published it). As a matter of fact, the story is that Gauss discovered the constructibility of a regular 7-gon in his late teens, and it was this discovery which convinced him to become a professional mathematician. We can use Fermat numbers to give a clever proof of the fact that there are infinitely many prime numbers. First we start with the following proposition, still in the flavor of the last two propositions we have proved:

MATH 25 CLASS 8 NOTES, OCT 7 20 5 Proposition 3 (Lemma 2.2 of the text). Let n 0, m > 0. Then F n, F n+m have distinct prime factors; equivalently, gcd(f n, F n+m ) =. Proof. We claim that F n (F n+m 2). Let a = 2 2n. Then F n = a +. Notice that F n+m = 2 2n+m + = (2 2n ) 2m + = a 2m +. Then F n+m 2 = a 2m. But then we may factor a 2m as follows: a 2m = (a + )(a 2m a 2m 2 +... + a ). This time, we are critically using the fact that 2 m is even for this factorization to make sense. In any case, this shows that (a + ) (a 2m ). But then this means that gcd(f n, F n+m ) = gcd(a +, (a 2m ) + 2) = gcd(a +, 2). Because a + is odd, this gcd is equal to, as desired. This shows that there are infinitely many primes, because each Fermat number has prime factors which are distinct from the prime factors of any of the other Fermat numbers, and there are infinitely many Fermat numbers.