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

Similar documents
Arithmetic Statistics Lecture 1

Prime and Perfect Numbers

SQUARE PATTERNS AND INFINITUDE OF PRIMES

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

Sifting the Primes. Gihan Marasingha University of Oxford

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

WXML Final Report: Primality of Polynomials

Prime Number Theory and the Riemann Zeta-Function

MATH 25 CLASS 8 NOTES, OCT

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.

IRREDUCIBILITY TESTS IN F p [T ]

Elementary Number Theory

Primes and Factorization

Math 259: Introduction to Analytic Number Theory The Selberg (quadratic) sieve and some applications

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

Chapter 1. Introduction to prime number theory. 1.1 The Prime Number Theorem

Section X.55. Cyclotomic Extensions

PRIME NUMBERS YANKI LEKILI

Divisibility. 1.1 Foundations

Chapter 12: Ruler and compass constructions

Table of Contents. 2013, Pearson Education, Inc.

All About Numbers Definitions and Properties

On the Cardinality of Mersenne Primes

Probabilistic Aspects of the Integer-Polynomial Analogy

A PROBLEM ON THE CONJECTURE CONCERNING THE DISTRIBUTION OF GENERALIZED FERMAT PRIME NUMBERS (A NEW METHOD FOR THE SEARCH FOR LARGE PRIMES)

Flat primes and thin primes

UNIQUE-PERIOD PRIMES. Chris K. Caldwell 5856 Harry Daniels Road Rives, Tennessee

Here is another characterization of prime numbers.

The 98th Mathematics Colloquium Prague November 8, Random number theory. Carl Pomerance, Dartmouth College

Proof of Infinite Number of Triplet Primes. Stephen Marshall. 28 May Abstract

The Prime Number Theorem

On Randomness of Goldbach Sequences

Proofs of the infinitude of primes

Part II. Number Theory. Year

CHAPTER 1 REAL NUMBERS KEY POINTS

Analytic. Number Theory. Exploring the Anatomy of Integers. Jean-Marie. De Koninck. Florian Luca. ffk li? Graduate Studies.

The first dynamical system

Contest Number Theory

Why is the Riemann Hypothesis Important?

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

New evidence for the infinitude of some prime constellations

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

Riemann s Zeta Function and the Prime Number Theorem

SUMS OF SQUARES WUSHI GOLDRING

On the Composite Terms in Sequence Generated from Mersenne-type Recurrence Relations

A DO-IT-YOURSELF INTRODUCTION TO NUMBER THEORY. James T. Cross

Week 2: Sequences and Series

Contradictions in some primes conjectures

Chapter 1. Introduction to prime number theory. 1.1 The Prime Number Theorem

Calculus II : Prime suspect

Primality testing: variations on a theme of Lucas. Carl Pomerance, Dartmouth College Hanover, New Hampshire, USA

Intermediate Math Circles March 6, 2013 Number Theory I

MATHEMATICS 6180, SPRING 2017 SOME MOTIVATIONAL PROBLEMS IN NUMBER THEORY. p k

The Prime Number Theorem

The Riemann Hypothesis

Lucas Lehmer primality test - Wikipedia, the free encyclopedia

Pseudoprime Statistics to 10 19

A proof of strong Goldbach conjecture and twin prime conjecture

ECEN 5022 Cryptography

Number Theory and Algebraic Equations. Odile Marie-Thérèse Pons

CHAPTER 6. Prime Numbers. Definition and Fundamental Results

Big doings with small g a p s

MATH 361: NUMBER THEORY FOURTH LECTURE

Primality testing: then and now

Introduction to Number Theory

ON THE PRIMALITY OF n! ± 1 AND p ± 1

, p 1 < p 2 < < p l primes.

EULER S THEOREM KEITH CONRAD

CHMC: Finite Fields 9/23/17

Gauss and Riemann versus elementary mathematics

Fermat s Last Theorem for Regular Primes

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

Math 200 University of Connecticut

Lecture 7: More Arithmetic and Fun With Primes

Cryptography. Number Theory with AN INTRODUCTION TO. James S. Kraft. Lawrence C. Washington. CRC Press

Fundamentals of Pure Mathematics - Problem Sheet

Summary Slides for MATH 342 June 25, 2018

Theorem 1.1 (Prime Number Theorem, Hadamard, de la Vallée Poussin, 1896). let π(x) denote the number of primes x. Then x as x. log x.

Primes, Polynomials, Progressions. B.Sury Indian Statistical Institute Bangalore NISER Bhubaneshwar February 15, 2016

A Simple Counterexample to Havil s Reformulation of the Riemann Hypothesis

Lecture 11 - Basic Number Theory.

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

Rassias Conjecture. For any prime p with p>2therearetwoprimesp 1, p 2, with p 1 <p 2 such that p = p 1 + p 2 +1 p 1 . (1)

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

How important is this hypothesis?

Generalizing the Hardy-Littlewood Method for Primes

The New Book of Prime Number Records

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

A prospect proof of the Goldbach s conjecture

12.2 Existence proofs: examples

TAYLOR POLYNOMIALS DARYL DEFORD

Primality testing: then and now

A Generalization of Wilson s Theorem

Many proofs that the primes are infinite J. Marshall Ash 1 and T. Kyle Petersen

Factoring Polynomials. Review and extend factoring skills. LEARN ABOUT the Math. Mai claims that, for any natural number n, the function

THE CONGRUENT NUMBER PROBLEM

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

Cool Results on Primes

Subtraction games. Chapter The Bachet game

Introduction: Pythagorean Triplets

Transcription:

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

Two quotes about prime numbers Mathematicians have tried in vain to this day to discover some order in the sequence of prime numbers, and we have reason to believe that it is a mystery into which the human mind will never penetrate. L. Euler (75) Although the prime numbers are rigidly determined, they somehow feel like experimental data. T. Gowers (2002) 2

Lists of primes There are infinitely many of them: 2, 3, 5, 7,, 3, 7, 9, 23, 29,3, 37, 4, 43,47,53,... But are there infinitely many primes of special forms? (Mersenne) 2 n : 3, 7, 3, 27, 89,...? (43rd example was found on Dec. 5, 2005.) (Fermat) 2 2n + : 3, 5, 7, 257, 65537. No more known. (Dirichlet) 20n + 9: 29, 89, 09, 49, 229,.... (Euler) n 2 + : 2, 5, 7, 37, 0,...? twin primes: (3, 5), (5, 7), (, 3), (7, 9),(29,3),...? 3

Relevance of Mersenne and Fermat primes A perfect number is an integer equal to the sum of its proper factors: 6 = + 2 + 3, 28 = + 2 + 4 + 7 + 4. Theorem. (Euler) The even perfect numbers are the numbers 2 n (2 n ), where 2 n is prime. Odd perfect numbers are not expected to exist. Visit http://www.mersenne.org/ and help find more Mersenne primes. Theorem. (Gauss) A regular polygon with d sides can be constructed using an unmarked straightedge and a compass if and only if d = 2 r p p 2... p m, where r 0 and the p i s are distinct Fermat primes. Example. Using an unmarked straightedge and compass, a regular 9-gon can t be constructed and a regular 7-gon can be constructed. 4

Open questions about prime values of polynomials Show there are infinitely many primes of the form n 2 +. For any polynomial f(t), decide when f(n) should be prime for infinitely many integers n and quantify this. Show there are infinitely many twin primes. For two polynomials f(t) and g(t), decide when f(n) and g(n) are simultaneously prime for infinitely many n and quantify this. We are not looking for a formula for all primes or a formula whose values are only primes. (A non-constant polynomial will not take only prime values.) We are looking at prime values of polynomials, asking whether prime values occur infinitely often and, if so, how often. 5

Why does this matter? ) Mallory s answer: it s there. 2) Decimal expansions: the decimal expansion of any fraction is eventually periodic. 3 6 7 7 =.333333333333333333333333... =.66666666666666666666666... =. 42857 }{{} 428574285742857... period 6 =. 05882352947647 }{{} 0588235... period 6 For prime p, the decimal expansion of /p has period length dividing p. Example. 7, 7, 9, 23, 29, 47, 59, 6, 97,...? Is the period length p infinitely often? If 20n + 9 and 40n + 9 are simultaneously prime infinitely often then the answer is YES. (Other explanations are possible.) 6

Why does this matter? 3) Finding Pythagorean triples (a 2 + b 2 = c 2 ) is the same as solving x 2 + y 2 = in fractions (e.g., (3/5) 2 + (4/5) 2 = ). Is there a solution in fractions to quadratic equations like x 2 + 3y 2 0z 2 = 4? There is an algorithm to settle this question, but the proof that it works depends on knowing certain polynomials are prime infinitely often. 4) In 994, Thomas Nicely discovered a bug in the Pentium processor s floating point division. For instance, the Pentium chip produced the following results: 550500 = 8.66600093 (it s really 8.6666597). 2949 ( ) 495835 495835 345727 = 256. 345727 It was a public relations nightmare for Intel. How did Nicely find the bug? He wasn t searching for it, but was studying problems related to the frequency of twin primes. The Pentium chip incorrectly computed the reciprocals of the twin primes 82463370244 and 824633702443. 7

Asymptotic estimates Set π(x) = #{n x : n is prime}. It is unreasonable to ask for an exact formula for π(x), but there is an elementary asymptotic formula for π(x). Call two (eventually) positive functions f(x) and g(x) asymptotic when f(x) g(x) as x. We then write f(x) g(x). Examples. x 2 + 7x x 2, 4x2 + 3x + sinx 2x. Exercise. If f(x) g(x) and n f(n) = then n xf(n) n x g(n). Example. Since n+ n t 2 dt = n 2 + n + 3 n2, n xn 2 n x n+ n t 2 dt = [x]+ t 2 dt ([x] + )3 3 x3 3. 8

Prime number theorem Theorem. (Hadamard, de la Vallée Poussin, 896) π(x) x log x, where log is the natural logarithm. x n+ x Since log x dt 2 log t and n number theorem is equivalent to π(x) 2 n x dt log t, the prime log n log n. x 0 4 0 5 0 6 0 7 0 8 π(x) 229 9592 78498 664579 576455 x log x 085 8685 72382 620420 542868 Ratio.3.04.084.07.06 π(x) 229 9592 78498 664579 576455 245 9629 78627 66498 5762209 log n 2 n x Ratio.9863.9960.9983.9994.9998 9

Counting and comparing Set π T2 +(x) = #{n x : n 2 + is prime}, π twin (x) = #{n x : n and n + 2 are prime}. x 0 4 0 5 0 6 0 7 0 8 π(x) 229 9592 78498 664579 576455 π T 2 +(x) 84 6656 540 456362 39548 π twin (x) 205 224 869 58980 44032 π T 2 +(x) π(x) π twin (x) π(x).6842.6939.6893.6866.6863.668.276.040.0887.0764 Is π T 2 +(x) Kπ(x) for a constant K.68? It appears that π twin (x) has a slower order of growth than π(x). How much slower? 0

A probabilistic viewpoint The prime number theorem says π(x) If we heuristically set x log x 2 n x log n. Prob(n prime) = log n then the number of primes up to x can be counted asymptotically by adding up the probabilities. Probability is not a notion of mathematics, but of philosophy or physics. G. H. Hardy, J. E. Littlewood (923)

From asymptotics to probability The provable estimates #{n x : n is prime} x log x 2 n x log n, #{n x : n is even} x 2 n x 2, #{n x : n = } x n x 2 n suggest the heuristics Prob(n is prime) = log n, Prob(n is even) = 2, Prob(n = ) = 2 n. 2

Estimating π T 2 +(x) with probabilities If we believe Prob(n is prime) = log n then it seems reasonable to set so we expect Prob(n 2 + is prime) = log(n 2 + ), π T 2 +(x) = #{n x : n 2 + is prime} = Prob(n 2 + is prime) = n x n x 2 n x 2 log(n 2 + ) x log x. 2 log n But our data suggested π T 2 +(x) C x where C.68. log x Maybe we would find C.5 if we waited longer? 3

Fixing the prime heuristic, I When counting π T2 +(x) = #{n x : n 2 + is prime}, we should take into account that we are looking only at numbers of the form n 2 +. The heuristic formula Prob(n 2 + is prime) = log(n 2 + ) came from thinking of the numbers n 2 + as part of the whole set of positive integers. But integers of the form n 2 +, considered collectively, have different divisibility properties than all integers. These numbers begin as 2, 5, 0, 7, 26, 37, 50, 65, 82, 0, 22, 45, 70,.... They alternate even and odd, like all integers, but where are the multiples of 3? There are none: (3k) 2 + = 3(3k 2 ) +, (3k + ) 2 + = 3(3k 2 + 2k) + 2, (3k + 2) 2 + = 3(3k 2 + 4k + ) + 2. 4

Fixing the prime heuristic, II A random integer n has probability /5 of being a multiple of 5, but the sequence of numbers n 2 + contains multiples of 5 twice as often: 2,5,0, 7, 26, 37,50,65, 82, 0, 22,45,70,.... So n 2 + is more likely to be prime than n due to the effect of 3 and less likely to be prime than n due to the effect of 5. The effect of 2 on primality of n and n 2 + is the same. Let s quantify these local effects coming from divisibility of numbers by 2, by 3, by 5, and so on. Heuristic: Prob(n 2 + prime) = C log(n 2 + ), where C is a constant that accounts for divisibility features of the sequence n 2 + by comparison with divisibility features of all integers n ( conditional probability ). What is C??? 5

Determining the constant C Prob(n 2 + prime) = C log(n 2 + ) For each prime p, whether or not n 2 + is divisible by p only depends on whether or not r 2 + is divisible by p, where r is the remainder when n is divided by p. Example. 3 2 + = 0 is divisible by 5 and (5k + 3) 2 + = 5(5k 2 + 6k) + 0 is divisible by 5. Example. 2 + = 2 is not divisible by 5 and (5k + ) 2 + = 5(5k 2 + 2k) + 2 is not divisible by 5. For each prime p, let ω(p) be the number of remainders 0 r p such that r 2 + is divisible by p. Example. At 2, 0 2 + = and 2 + = 2, so ω(2) =. ω(2) =, ω(3) = 0, ω(5) = 2, ω(7) = 0, ω() = 0, ω(3) = 2 The probability that n is not divisible by p is /p and the probability that n 2 + is not divisible by p is ω(p)/p. Set C = p ( ) ω(p)/p /p = /2 /2 /3 2/5 /5. 6

A conjecture for primality of n 2 + It is proposed that or in simpler terms π T 2 +(x) n x C log(n 2 + ), π T 2 +(x) C 2 x log x, where C = p ω(p)/p /p.3728346, C 2.6864067. In the table, Approx. comes from the summation up to x. x π T2 +(x) Approx. Ratio 0 2 9 22.4.849 0 3 2 23.6.906 0 4 84 857.0.98 0 5 6656 66.6.007 0 6 540 53972..003 0 7 456362 456406..000 7

General conjecture Let f(t) be an irreducible polynomial with integer coefficients. Set and for primes p set π f (x) = #{n x : f(n) is prime} ω f (p) = #{0 r p : f(r) is divisible by p}. Heuristic: Prob( f(n) is prime) = C(f) log f(n), where C(f) accounts for non-divisibility features of the sequence of numbers f(n): C(f) = p ω f (p)/p. /p Conjecture. (Hardy Littlewood, Bateman Horn) For an irreducible polynomial f(t) with C(f) > 0, π f (x)? n x C(f) log f(n) C(f) deg f x log x. 8

What is known? π f (x)? C(f) deg f x log x, C(f) = p ω f (p)/p /p This conjecture is a theorem (of Dirichlet) when deg f =. There are no examples with deg f > for which it is proved that π f (x). Exercise. Show π f (x) C deg f x log x is equivalent to n-th prime value of f deg f C n log n. For irreducible f(t), C(f) = 0 only when there is a prime p for which f(n) is divisible by p for all n (e.g., f(t) = T 2 T +2 and p = 2: n 2 n+2 is always even). So we believe that when f(t) is irreducible, f(n) is prime for infinitely many n except in the trivial situation that all the numbers f(n) have a common prime factor. 9

Simultaneous primality Let f(t) and g(t) be irred. with integer coefficients. Set π f,g (x) = #{n x : f(n) and g(n) are both prime}. For independently chosen positive integers m and n, Prob(m and n are prime) = log m log n. How often are f(n) and g(n) prime (same n)? Set ω f,g (p) = #{0 r p : f(r) or g(r) is div. by p}, C(f, g) = p ω f,g (p)/p ( /p) 2. Then our heuristic for simultaneous primality is Prob(f(n) and g(n) are prime) = C(f, g) log f(n) log g(n). Conjecture. If C(f, g) > 0, π f,g (x)? n x C(f, g) log f(n) log g(n) C(f, g) (deg f)(deg g) x (log x) 2. 20

Examples Example. Twin primes (f(t) = T, g(t) = T + 2). Then C twin = C(T, T + 2) = 2 p 2 2/p ( /p) 2.32032363. Conjecture. (Hardy Littlewood, 923). π twin (x)? n x C twin (log n)(log(n + 2)) C x twin (log x) 2. This would explain our numerical observation that π twin (x) grows at a slower order than π T2 +(x)? C(T 2 x + ) log x. Example. Prime pairs n and n + 6. Factors in C(T, T + 6) and C twin are equal except at p = 3: C(T, T + 6) = 2C twin. So we expect π T,T+6 (x) 2π twin (x). x 0 4 0 5 0 6 0 7 0 8 π twin (x) 205 224 869 58980 44032 2π twin (x) 40 2448 6338 7960 880624 π T,T+6 (x) 4 2447 6386 7207 879980 2

Multiple primality The probabilistic heuristic can be extended to predict the frequency of simultaneous primality of more than two irreducible polynomials. Example. No triple primes n, n + 2, n + 4 for n > 3 since at least one is a multiple of 3! Example. Pick an integer d. Consider polynomials T + a, T + a 2,...,T + a d where the a i s are different positive integers divisible by no prime up to d. Then the number of n up to x such that n + a,...,n + a d are all x prime should be C for some constant C > 0 (log x) d depending only on the a i s. In particular, this predicts there are arithmetic progressions of prime numbers with arbitrarily long length. The longest known arithmetic progression of prime numbers has length 23: 44546738095860n + 562383760397 for 0 n 22 (Frind, Jobling, Underwood, 2004). Theorem. (Green, Tao, 2004). There are arbitrarily long arithmetic progressions of prime numbers. 22

A final crazy case Example. T and T +. There are not infinitely many prime pairs n and n + : at least one of them is even! The constant C(T, T + ) is 0 too. But the only obstruction is caused by 2. Set n odd = odd part of n. n 2 3 4 5 6 7 8 9 0 n odd 3 5 3 7 9 5 (n + ) odd 3 5 3 7 9 5 Are there infinitely many n such that n odd and (n + ) odd are both prime? Exercise. Formulate a heuristic probability Prob(n odd is prime) = C log n odd for a suitably defined constant C (hint: C ), extend it to simultaneous primality of n odd and (n + ) odd, and make a conjecture for how often n odd and (n+) odd are both prime. 23

References S. Lang, Math Talks for Undergraduates, Springer-Verlag, New York, 999; Chap. P. Ribenboim, The New Book of Prime Number Records, Springer-Verlag, New York, 996; Chap. 6 H. Riesel, Prime Numbers and Computer Methods for Factorization, 2nd ed., Birkhauser, Boston, 994; Chap. 3 W. Narkiewicz, The Development of Prime Number Theory: from Euclid to Hardy and Littlewood, Springer-Verlag, Berlin, 2000; Sect. 6.7 24