Math 5330 Spring Notes Prime Numbers

Similar documents
MATH 2710: NOTES FOR ANALYSIS

MATH342 Practice Exam

CERIAS Tech Report The period of the Bell numbers modulo a prime by Peter Montgomery, Sangil Nahm, Samuel Wagstaff Jr Center for Education

Sets of Real Numbers

Elementary Proof That There are Infinitely Many Primes p such that p 1 is a Perfect Square (Landau's Fourth Problem)

ERRATA AND SUPPLEMENTARY MATERIAL FOR A FRIENDLY INTRODUCTION TO NUMBER THEORY FOURTH EDITION

PRIME NUMBERS YANKI LEKILI

Math 104B: Number Theory II (Winter 2012)

The Euler Phi Function

Math 4400/6400 Homework #8 solutions. 1. Let P be an odd integer (not necessarily prime). Show that modulo 2,

Chapter 7 Rational and Irrational Numbers

Mersenne and Fermat Numbers

A CONCRETE EXAMPLE OF PRIME BEHAVIOR IN QUADRATIC FIELDS. 1. Abstract

MA3H1 TOPICS IN NUMBER THEORY PART III

MATH 3240Q Introduction to Number Theory Homework 7

MATH 361: NUMBER THEORY EIGHTH LECTURE

MATH 250: THE DISTRIBUTION OF PRIMES. ζ(s) = n s,

Factorability in the ring Z[ 5]

Quadratic Reciprocity. As in the previous notes, we consider the Legendre Symbol, defined by

1 Integers and the Euclidean algorithm

Practice Final Solutions

HENSEL S LEMMA KEITH CONRAD

ANALYTIC NUMBER THEORY AND DIRICHLET S THEOREM

Series Handout A. 1. Determine which of the following sums are geometric. If the sum is geometric, express the sum in closed form.

By Evan Chen OTIS, Internal Use

Intermediate Math Circles March 6, 2013 Number Theory I

19th Bay Area Mathematical Olympiad. Problems and Solutions. February 28, 2017

Elementary Analysis in Q p

Number Theory Naoki Sato

Primes and Factorization

π(x) π( x) = x<n x gcd(n,p)=1 The sum can be extended to all n x, except that now the number 1 is included in the sum, so π(x) π( x)+1 = n x

Quadratic Residues, Quadratic Reciprocity. 2 4 So we may as well start with x 2 a mod p. p 1 1 mod p a 2 ±1 mod p

Chapter 2 Arithmetic Functions and Dirichlet Series.

Here is another characterization of prime numbers.

Representing Integers as the Sum of Two Squares in the Ring Z n

NUMBER SYSTEMS. Number theory is the study of the integers. We denote the set of integers by Z:

MA3H1 Topics in Number Theory. Samir Siksek

DIRICHLET S THEOREM ON PRIMES IN ARITHMETIC PROGRESSIONS. 1. Introduction

RESEARCH STATEMENT THOMAS WRIGHT

A LLT-like test for proving the primality of Fermat numbers.

The Hasse Minkowski Theorem Lee Dicker University of Minnesota, REU Summer 2001

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

DIRICHLET S THEOREM ABOUT PRIMES IN ARITHMETIC PROGRESSIONS. Contents. 1. Dirichlet s theorem on arithmetic progressions

MATH 361: NUMBER THEORY THIRD LECTURE

MAS 4203 Number Theory. M. Yotov

Real Analysis 1 Fall Homework 3. a n.

Quadratic Reciprocity

MATH 371 Class notes/outline September 24, 2013

March 4, :21 WSPC/INSTRUCTION FILE FLSpaper2011

Pretest (Optional) Use as an additional pacing tool to guide instruction. August 21

Exploring Primes with DERIVE

The Arm Prime Factors Decomposition

Applications of the course to Number Theory

Aliquot sums of Fibonacci numbers

Maths 4 Number Theory Notes 2012 Chris Smyth, University of Edinburgh ed.ac.uk

Algebraic number theory LTCC Solutions to Problem Sheet 2

GOOD MODELS FOR CUBIC SURFACES. 1. Introduction

Introductory Number Theory

arxiv: v2 [math.ho] 24 Nov 2014

Almost 4000 years ago, Babylonians had discovered the following approximation to. x 2 dy 2 =1, (5.0.2)

Prime and Perfect Numbers

Public Key Cryptosystems RSA

x 2 a mod m. has a solution. Theorem 13.2 (Euler s Criterion). Let p be an odd prime. The congruence x 2 1 mod p,

Pythagorean triples and sums of squares

Math 261 Exam 2. November 7, The use of notes and books is NOT allowed.

arxiv: v1 [math.nt] 4 Nov 2015

Math in the News: Mersenne Primes

Practice Final Solutions

Characteristics of Fibonacci-type Sequences

A Curious Property of the Decimal Expansion of Reciprocals of Primes

Intrinsic Approximation on Cantor-like Sets, a Problem of Mahler

Discrete Structures Lecture Primes and Greatest Common Divisor

Elementary factoring algorithms

Dirichlet s Theorem on Arithmetic Progressions

RECIPROCITY LAWS JEREMY BOOHER

On the Square-free Numbers in Shifted Primes Zerui Tan The High School Attached to The Hunan Normal University November 29, 204 Abstract For a fixed o

Math 229: Introduction to Analytic Number Theory Elementary approaches II: the Euler product

Elementary Number Theory

Elliptic Curves Spring 2015 Problem Set #1 Due: 02/13/2015

Applicable Analysis and Discrete Mathematics available online at HENSEL CODES OF SQUARE ROOTS OF P-ADIC NUMBERS

Why Proofs? Proof Techniques. Theorems. Other True Things. Proper Proof Technique. How To Construct A Proof. By Chuck Cusack

01. Simplest example phenomena

#A45 INTEGERS 12 (2012) SUPERCONGRUENCES FOR A TRUNCATED HYPERGEOMETRIC SERIES

LARGE GAPS BETWEEN CONSECUTIVE PRIME NUMBERS CONTAINING SQUARE-FREE NUMBERS AND PERFECT POWERS OF PRIME NUMBERS

Exam 2 Solutions. In class questions

2 Asymptotic density and Dirichlet density

1. INTRODUCTION. Fn 2 = F j F j+1 (1.1)

2 Asymptotic density and Dirichlet density

ON THE LEAST SIGNIFICANT p ADIC DIGITS OF CERTAIN LUCAS NUMBERS

Analysis of some entrance probabilities for killed birth-death processes

Analytic number theory and quadratic reciprocity

f(r) = a d n) d + + a0 = 0

Numbers and functions. Introduction to Vojta s analogy

Factor Rings and their decompositions in the Eisenstein integers Ring Z [ω]

Mobius Functions, Legendre Symbols, and Discriminants

Excerpt from "Intermediate Algebra" 2014 AoPS Inc.

MATH 371 Class notes/outline October 15, 2013

Notes: Pythagorean Triples

0.6 Factoring 73. As always, the reader is encouraged to multiply out (3

Fall 2017 Test II review problems

Transcription:

Math 5330 Sring 208 Notes Prime Numbers The study of rime numbers is as old as mathematics itself. This set of notes has a bunch of facts about rimes, or related to rimes. Much of this stuff is old dating back 2-3000 years. We start with ossibly the most imortant question about rimes: how many are there? We have an ancient method for calculating lists of rimes, which is still unbelievable good. It is called the Sieve of Erotosthenes. The idea is as follows: Form an array of numbers, 2, 3,.... Ignore because it is a unit. Circle 2, and cross out every subsequent multile of 2. Suose that the last number in your array is n. Reeat the following until you circle a number greater than? n : Find the next number not crossed off, circle it, and cross off every subsequent multile. Once a number greater than? n is circled, dont cross off any additional numbers, just circle the remaining numbers not crossed off, they will all be rime. For examle, to find all rimes less than 00 takes 4 stes: 2 3 4 5 6 7 8 9 0 2 22 23 24 25 26 27 28 29 30 4 42 43 44 45 46 47 48 49 50 6 62 63 64 65 66 67 68 69 70 8 82 83 84 85 86 87 88 89 90 2 3 4 5 6 7 8 9 20 3 32 33 34 35 36 37 38 39 40 5 52 53 54 55 56 57 58 59 60 7 72 73 74 75 76 77 78 79 80 9 92 93 94 95 96 97 98 99 00 2 3 4 5 6 7 8 9 0 2 22 23 24 25 26 27 28 29 30 4 42 43 44 45 46 47 48 49 50 6 62 63 64 65 66 67 68 69 70 8 82 83 84 85 86 87 88 89 90 2 3 4 5 6 7 8 9 20 3 32 33 34 35 36 37 38 39 40 5 52 53 54 55 56 57 58 59 60 7 72 73 74 75 76 77 78 79 80 9 92 93 94 95 96 97 98 99 00 2 3 4 5 6 7 8 9 0 2 22 23 24 25 26 27 28 29 30 4 42 43 44 45 46 47 48 49 50 6 62 63 64 65 66 67 68 69 70 8 82 83 84 85 86 87 88 89 90 2 3 4 5 6 7 8 9 20 3 32 33 34 35 36 37 38 39 40 5 52 53 54 55 56 57 58 59 60 7 72 73 74 75 76 77 78 79 80 9 92 93 94 95 96 97 98 99 00 2 3 4 5 6 7 8 9 0 2 22 23 24 25 26 27 28 29 30 4 42 43 44 45 46 47 48 49 50 6 62 63 64 65 66 67 68 69 70 8 82 83 84 85 86 87 88 89 90 2 3 4 5 6 7 8 9 20 3 32 33 34 35 36 37 38 39 40 5 52 53 54 55 56 57 58 59 60 7 72 73 74 75 76 77 78 79 80 9 92 93 94 95 96 97 98 99 00

2 3 4 5 6 7 8 9 0 2 22 23 24 25 26 27 28 29 30 4 42 43 44 45 46 47 48 49 50 6 62 63 64 65 66 67 68 69 70 8 82 83 84 85 86 87 88 89 90 2 3 4 5 6 7 8 9 20 3 32 33 34 35 36 37 38 39 40 5 52 53 54 55 56 57 58 59 60 7 72 73 74 75 76 77 78 79 80 9 92 93 94 95 96 97 98 99 00 This algorithm is very fast. Ive heard it said that if you are writing a rogram that makes use of all rimes less than,000,000 it is faster to use the sieve of Erotosthenes than to read in a reexisting file of rimes. One thing that makes the algorithm so fast is that we can sto sieving once we reach? n. The reason for this is the following theorem. Theorem If n is not rime, then n has a rime divisor ď? n. Proof: Let n be comosite and let q be a rime divisor of n, so n qn{qq. If q ď? n, then let q, in the theorem. Otherwise, n{q ă? n, so let be any rime divisor of n{q. As a consequence of this theorem, we have the following factoring technique: To factor a number n, try dividing n in turn by the rimes 2, 3, 5,.... We continue until a rime gets larger than the square root of the unfactored art. For examle, suose we wish to factor 286740. We divide by 2 until an odd number results: 286740 2 2 32685. The unfactored art is not divisible by 3, but it is by 5, so we have 286740 2 2 5 64337. Continuing, we have 286740 2 2 5 7 2 33 2 2 5 7 2 3 0. Note that after dividing by 3 to leave an unfactored art of 0, we can sto because 0 ă 3 2. This means that 0 must be rime. At this oint, we have a good way to find all small rimes, and a reasonable algorithm for factoring small numbers. We still have not answered the question of how many rimes there are. Consider following table: range -00 000-00 0 4 0 4 ` 00 0 5 0 5 ` 00 0 6 0 7 rime count 25 6 6 6 2 This table gives the number of rimes in ranges of 00 consecutive integers. Based on the table, one might exect that the number of rimes is finite and that there is some largest rime. However, this is not the case. The following is a result due to Euclid: Theorem 2 There are infinitely many rimes. Proof: Suose not, and let t2, 3,..., k u be a comlete list of rimes. Let M be the number M 2 3 5 k `. (M is one greater than the roduct of all rimes.) When M is divided by 2 or 3 or... or k, the remainder will be. Thus, M is not divisible by any of the rimes Page 2

in our list. But the Fundamental Theorem says M is divisible by some rime. This contradicts the assumtion that our list was comlete, which comletes the roof of the theorem. Given the first k rimes, we can define the number M k 2 3 k `. The first several are M 3, M 2 7, M 3 3, M 4 2. These first ones are rimes and it is a common conjecture by students that M k is always rime. But this is not the case: M 6 3003 59 509. It turns out that rimes are fairly common. We give a name to the number of rimes u to some bound: πnq the number of rimes ď n. For examle, π00q 25 because there are 25 rimes less than 00. In 793 at the age of 5, Gauss made the following conjecture about how common rime numbers are: πxq «ż x 2 lntq dt. This integral has a name, it is called lixq, the logarithmic integral. In 896, this conjecture was roved roughly simultaneously by Hadamard and de la Vallée Poussin. The exact statement of the result is this: Theorem 3 (The Prime Number Theorem or PNT) πxq lim xñ8 lixq. It turns out that lixq «x, so we usually say πxq «x lnxq htt://mathworld.wolfram.com/primenumbertheorem.html. Here is a grah from lnxq Page 3

The following table also gives a feel for how good these aroximations are. n n πnq lnnq linq 000 68 45 77,000,000 78,498 72,382 78,626,000,000,000 50,847,478 48,254,942 50,849,234 It took about 00 years to rove the Prime Number Theorem because it took that long to develo the necessary results in Comlex Analysis. What does the field of analysis have to do with rime numbers? To give a feel, here is a second roof that there are infinitely many rimes, making use of analysis. This roof will also show how logarithms might enter into the icture, and how many different areas of mathematics seem to be related to number theory. Our actual theorem is the following: The sum ÿ 2 ` 3 ` 5 ` 7 ` ` diverges. This shows there are infinitely many rimes because any finite sum would converge. Moreover, it shows that rimes must be fairly common, much more common than squares, 8ÿ because the sum of the recirocals of the squares, n converges. In fact, ÿ 8 2 n π2 2 6. n n This isn t relevant, just an interesting fact. Our roof is indirect, and is essentially due to Euler. What he did was to first consider the roduct ź ` ` ` 2 `. 3 ďn For examle, when n 0, the roduct is ` 2 ` 2 ` ` 2 3 ` 3 ` ` 2 5 ` 5 ` ` 2 7 ` 7 `. 2 If we were to multily this out, the sum would be ` 2 ` 3 ` 4 ` 5 ` 6 ` 7 ` 8 ` 9 ` 0 ` 2 ` 4 ` 5 ` 6 ` 8 `. The denominators are those divisible by 2 s, 3 s, 5 s, and 7 s. For examle, to get 8 we multily the terms 2 from the first roduct, from the second, and the s from the third 32 and fourth roducts. In articular, ź ďn ` ` ` 2 ` ą 3 nÿ k k ą ln n. Page 4

The reason nÿ k k ż ą ln n is that the sum can be aroximated by the integral dx. In x ż n dx, we get the x 2 ` 3 ` 4 ` 5 ` 6 ` 7 ` ż 9 8 ą dx ln9q. That is, the x articular, if we use uer rectangles to estimate the area of lnnq sum. For examle, below, ` sum is actually larger than lnn ` q, but lnnq looks a little simler. Now the sum is a geometric series with sum have ź ` ` ` 2 ` 3 ďn. Putting the ieces together so far, we ą ln n. Next, we take the logarithm of this to convert the roduct to a sum giving ÿ ln ą ln ln n. ďn 2 3 4 5 6 7 8 9 To get to the sum of the recirocals of the rimes, we could use the MacLauran exansion: ln xq x ` x2 2 ` x3 3 ` but it works out better to use the formula ln xq ď x ` x2 x 2, for 0 ď x ă. A grah will show this is true. Alternatively, if you let fxq x ` x2 ` ln xq, x2 Page 5

then f0q 0 and f xq ą 0 for all 0 ă x ă, so fxq starts at 0 and increases. We have ln ln n ă ÿ ln ď ÿ f ÿ ` ÿ 2. ďn ďn ďn ďn One last trick: ÿ ďn 8 2 ď ÿ k 2 k 2 3 4. 8ÿ It isn t imortant that k 2 3, only that it is some finite number, but it is hard to 4 k 2 ass u a nice formula. To see this summation is correct, we use artial fractions: k 2 2 k, k ` so 8ÿ 8 k 2 ÿ 2 k k ` k 2 2 3 ` 2 4 ` 3 5 ` 4 6 ` 5 ` ` 3 2 2 4. k 2 Putting everything together, n ln n ă ÿ ďn ` 3 4 or ÿ ďn ą ln ln n 3 4. Since ln ln n Ñ 8 as n Ñ 8, the sum of the recirocals of the rimes diverges. Perfect numbers A number is called a erfect number if it equals the sum of its roer divisors (or if the sum of all the divisors is twice the number.) The first several erfect numbers are 6 ` 2 ` 3 28 ` 2 ` 4 ` 7 ` 4 496 ` 2 ` 4 ` 8 ` 6 ` 3 ` 62 ` 24 ` 248 892 ` 2 ` 4 ` 8 ` 6 ` 32 ` 64 ` 27 ` 254 ` 508 ` 06 ` 2032 ` 4064. Looking at the rime factorizations of these numbers, we have 6 2 3, 28 2 2 7, 496 2 4 3, 892 2 6 27. This might lead us to guess that erfect numbers always have the Page 6

form 2 k for some rime number. We can say more: If n 2 k, then the factors of n are, 2, 2 2,..., 2 k,, 2, 2 2,..., 2 k. These consist of two geometric sequences, and their sum is 2 k` q ` 2 k` q. On the other hand, we want the sum to be 2n 2 k`. For this to be the case, we need 2 k` q ` 2 k` q 2 k` Ñ 2 k` 0, or 2 k`. This means we can t use any k and, they must be linked. In articular, we can only use rimes that are one less than a ower of 2. The mathematician Mersenne looked into this in some deth. Let Mnq 2 n. We call such numbers Mersenne numbers. If Mnq is rime, we refer to it as a Mersenne rime. We have roven the following. Theorem 4 If 2 n is rime, then m 2 n is a erfect number. Do all erfect numbers have the form 2 n where 2 n? We don t know. Here is a artial answer, however. Theorem 5 (Euler) If m is a erfect number and m is even, then m 2 n 2 n q where 2 n is rime. Proof: Let m be an even erfect number, and suose that m 2 k Q where Q is odd. Suose the sum of the divisors of Q is S. Then the sum of the divisors of m is S ` 2 ` 2 2 ` ` 2 k q S2 k` q. You should convince yourself that the sum, indeed, looks like this. It is not quite obvious. As above, we want the sum to be 2m so 2m S2 k` q. Solving for S, S 2m 2k` 2 k` Q 2 k` Q ` Q 2 k`. Q But S is the sum of all the divisor of Q and Q and are both divisors of Q. This 2 k` means that Q cannot have any other divisors and the only way this could haen is if Q is Q rime, and 2 k` giving Q 2k`. This comletes the roof. Some obvious questions: Question : Are there any odd erfect numbers? Question 2: Are there infinitely many erfect numbers? No one knows the answers to these questions, though there is strong circumstantial evidence that there are infinitely many erfect numbers. The second question could be osed in terms of Mersenne rimes: are there infinitely many Mersenne rimes? Again, it is thought that the answer is yes. What does it take for a Mersenne number to be a Mersenne rime? Here is a table of the first several Mersenne numbers. n 2 3 4 5 6 7 8 9 0 2 n 3 7 5 3 63 27 255 5 023 Page 7

A attern resents itself: only rime numbers n can give rise to rimes (in articular, 5 7 73.) In fact, Mersenne numbers have a multilicative roerty: If m n then Mmq Mnq. For examle, 7 M3q divides M9q. This is not too hard to rove: If n km then 2 n 2 km 2 m q k 2 m q2 mk q ` 2 mk 2q ` ` 2 m ` q, so 2 n has 2 m as a factor. Unfortunately, even for rimes,, 2 need not be rime. For examle, 2 2047 23 89. As of February 208 there are 50 known rimes for which 2 is rime. these are: 2, 3, 5, 7, 3 the ones known to the Greeks, 7, 9, 3, 6 discovered before the 20th century, 89, 07, 27, 52, 607, 279, 2203, 228, 327 discovered before 960, 4253, 4423, 9689, 994, 23, 9937, 270, 23209, 44497 discovered before 980, 86243, 0503, 32049, 2609 found in the 980 s, 756839, 859433, 257787, 398269, 297622, 302377, 6972593 found in the 990 s, 3,466,97 (200), 20,996,0 (2003), 24,036,583 (2004), 25,964,95, 30,402,457 (2005), 32,582,657 (2006), 43,2,609, 37,56,667 found in August, Setember, 2008, 42,643,80 found in Aril, 2009, 57,885,6 found January 25, 203, 74,207,28 found in January, 206. 77,232,97 found in January, 208. It is known that 2 42,643,80 is the 46 th Merseene rime. Also, all exonents u to 76,872,9 have been checked at least once so it is highly likely that 2 74,207,28 is the 49 th Mersenne rime and that 2 77,232,97 is the 50 th Mersenne rime Page 8

The following is an algorithm to check if a number 2 is a Mersenne rime. It is called the Lucas-Lehmer test. Set U 4. for i from 3 to do relace U by U 2 2 mod 2 q at the end of the loo, if U 0, then 2 is rime, otherwise, 2 is comosite. For examle, if 9, we have U 4 Ñ 4 Ñ 94 Ñ 37634 Ñ 28767 Ñ 50066 Ñ 386344 Ñ 32356 Ñ 28526 Ñ 50440 Ñ 03469 Ñ 47706 Ñ 30747 Ñ 382989 Ñ 275842 Ñ 85226 Ñ 523263 Ñ 0, so 2 9 is a Mersenne rime. However, when 23, we have U 4 Ñ 4 Ñ 94 Ñ 37634 Ñ 703978 Ñ 7033660 Ñ 74629 Ñ 7643358 Ñ 379743 Ñ 2694768 Ñ 763525 Ñ 48258 Ñ 700400 Ñ 53454 Ñ 5888805 Ñ 40622 Ñ 43243 Ñ 704324 Ñ 2756392 Ñ 280050 Ñ 6563009 Ñ 607895 0 so 2 23 is not a Mersenne rime. Page 9