Counting Primes whose Sum of Digits is Prime



Similar documents
The sum of digits of polynomial values in arithmetic progressions

On the largest prime factor of x 2 1

HOMEWORK 5 SOLUTIONS. n!f n (1) lim. ln x n! + xn x. 1 = G n 1 (x). (2) k + 1 n. (n 1)!

On the largest prime factor of the Mersenne numbers

On the number-theoretic functions ν(n) and Ω(n)

Math 115 Spring 2011 Written Homework 5 Solutions

x a x 2 (1 + x 2 ) n.

The Goldberg Rao Algorithm for the Maximum Flow Problem

FACTORING POLYNOMIALS IN THE RING OF FORMAL POWER SERIES OVER Z

Every Positive Integer is the Sum of Four Squares! (and other exciting problems)

Arrangements of Stars on the American Flag

k, then n = p2α 1 1 pα k

Continued Fractions and the Euclidean Algorithm

CONTRIBUTIONS TO ZERO SUM PROBLEMS

MATH 4330/5330, Fourier Analysis Section 11, The Discrete Fourier Transform

Note on some explicit formulae for twin prime counting function

CHAPTER SIX IRREDUCIBILITY AND FACTORIZATION 1. BASIC DIVISIBILITY THEORY

THE BANACH CONTRACTION PRINCIPLE. Contents

Primality - Factorization

About the inverse football pool problem for 9 games 1

Lecture 13 - Basic Number Theory.

Math 55: Discrete Mathematics

Some practice problems for midterm 2

SCORE SETS IN ORIENTED GRAPHS

I. GROUPS: BASIC DEFINITIONS AND EXAMPLES

ON FIBONACCI NUMBERS WITH FEW PRIME DIVISORS

SEQUENCES OF MAXIMAL DEGREE VERTICES IN GRAPHS. Nickolay Khadzhiivanov, Nedyalko Nenov

Introduction to Finite Fields (cont.)

The Heat Equation. Lectures INF2320 p. 1/88

F. ABTAHI and M. ZARRIN. (Communicated by J. Goldstein)

Gambling Systems and Multiplication-Invariant Measures

MATH 425, PRACTICE FINAL EXAM SOLUTIONS.

PRIME FACTORS OF CONSECUTIVE INTEGERS

SECTION 10-2 Mathematical Induction

Erdos and the Twin Prime Conjecture: Elementary Approaches to Characterizing the Differences of Primes

Mean value theorems for long Dirichlet polynomials and tails of Dirichlet series

MATH 289 PROBLEM SET 4: NUMBER THEORY

Homework until Test #2

I. Pointwise convergence

International Journal of Information Technology, Modeling and Computing (IJITMC) Vol.1, No.3,August 2013

FACTORING LARGE NUMBERS, A GREAT WAY TO SPEND A BIRTHDAY

Elementary Number Theory

CHAPTER 3. Methods of Proofs. 1. Logical Arguments and Formal Proofs

Prime numbers and prime polynomials. Paul Pollack Dartmouth College

10.2 Series and Convergence

A REMARK ON ALMOST MOORE DIGRAPHS OF DEGREE THREE. 1. Introduction and Preliminaries

CHAPTER 5. Number Theory. 1. Integers and Division. Discussion

Powers of Two in Generalized Fibonacci Sequences

3. Mathematical Induction

Sign changes of Hecke eigenvalues of Siegel cusp forms of degree 2

A simple criterion on degree sequences of graphs

ON SEQUENTIAL CONTINUITY OF COMPOSITION MAPPING. 0. Introduction

Prime Numbers and Irreducible Polynomials

An example of a computable

Introduction. Appendix D Mathematical Induction D1

A Study on the Necessary Conditions for Odd Perfect Numbers

arxiv:math/ v1 [math.co] 21 Feb 2002

Undergraduate Notes in Mathematics. Arkansas Tech University Department of Mathematics

A Binary Recursive Gcd Algorithm

Basic Proof Techniques

Solutions for Practice problems on proofs

CURVES WHOSE SECANT DEGREE IS ONE IN POSITIVE CHARACTERISTIC. 1. Introduction

INDISTINGUISHABILITY OF ABSOLUTELY CONTINUOUS AND SINGULAR DISTRIBUTIONS

5 Double Integrals over Rectangular Regions

Sample Induction Proofs

Normal distribution. ) 2 /2σ. 2π σ

PYTHAGOREAN TRIPLES M. SUNIL R. KOSWATTA HARPER COLLEGE, ILLINOIS

CONTINUED FRACTIONS AND PELL S EQUATION. Contents 1. Continued Fractions 1 2. Solution to Pell s Equation 9 References 12

RECURSIVE ENUMERATION OF PYTHAGOREAN TRIPLES

Notes on metric spaces

1. Let X and Y be normed spaces and let T B(X, Y ).

Mathematical Induction. Lecture 10-11

No: Bilkent University. Monotonic Extension. Farhad Husseinov. Discussion Papers. Department of Economics

Efficiency and the Cramér-Rao Inequality

Math 461 Fall 2006 Test 2 Solutions

Properties of BMO functions whose reciprocals are also BMO

Math 120 Final Exam Practice Problems, Form: A

Prime power degree representations of the symmetric and alternating groups

Continued Fractions. Darren C. Collins

Page 331, 38.4 Suppose a is a positive integer and p is a prime. Prove that p a if and only if the prime factorization of a contains p.

arxiv: v1 [math.pr] 5 Dec 2011

Limit theorems for the longest run

TAKE-AWAY GAMES. ALLEN J. SCHWENK California Institute of Technology, Pasadena, California INTRODUCTION

6.2 Permutations continued

Algebraic and Transcendental Numbers

The cyclotomic polynomials

Notes from Week 1: Algorithms for sequential prediction

How To Prove The Dirichlet Unit Theorem

Mean Ramsey-Turán numbers

MATH10212 Linear Algebra. Systems of Linear Equations. Definition. An n-dimensional vector is a row or a column of n numbers (or letters): a 1.

Math 319 Problem Set #3 Solution 21 February 2002

MATH10040 Chapter 2: Prime and relatively prime numbers

Notes on Factoring. MA 206 Kurt Bryan

Finding Carmichael numbers

Transcription:

2 3 47 6 23 Journal of Integer Sequences, Vol. 5 (202), Article 2.2.2 Counting Primes whose Sum of Digits is Prime Glyn Harman Department of Mathematics Royal Holloway, University of London Egham Surrey TW20 0EX United Kingdom g.harman@rhul.ac.uk Astract Motivated y recent work of Drmota, Mauduit and Rivat, we discuss the possiility of counting the numer of primes up to x whose sum of digits is also prime. We show that, although this is not possile unless we assume a hypothesis on the distriution of primes stronger than what is implied y the Riemann hypothesis, we can estalish a Mertens-type result. That is, we otain a formula for the numer of such primes p up to x weighted with a factor /p. Indeed, we can iterate the method and count primes with the sum of digits a prime whose sum of digits is a prime, and so on. Introduction Thanks to the revolutionary work of Mauduit and Rivat [7], in particular as developed in [2], our knowledge of the distriution of primes with constraints on their sum of digits has undergone a sustantial expansion in recent years. The question of counting the numer of primes up to x, whose sum of digits in ase is also prime, would have een considered far too difficult ten years ago in view of the difficulty in restricting the sum of digits function when its variale is prime. In this paper we discuss this question, showing that it is still impossily difficult at present, ut this is now a result of our lack of knowledge concerning the distriution of primes in short intervals, and no longer caused y the prolems of restricting the sum of digits function. However, we are ale to prove a Mertens-type result on counting

primes whose sum of digits is prime. Throughout this paper the letters p and q are reserved for prime variales. In 874 Mertens proved that p = log log X + A + O((log x) ), for a certain constant A (see [, p. 56]). In this paper we will otain analogues of this result for primes whose sum of digits written in ase ( 2) are also prime. For revity we shall write this set as P. If r r n = a k k, 0 a k, then we put σ (n) = k=0 for the sum of digits function in ase. In fact we shall e ale to iterate our working and estalish Mertens-type theorems for primes elonging to sets defined as follows: P () = P, P (j) = {p P : σ (p) P (j ) }, j = 2, 3... We write log x for the logarithm to ase, log x for the natural logarithm, and define L j (x) inductively y k=0 L (x) = max(, log x), L j (x) = L (L j (x)) for j 2. Our starting point will e a remarkale theorem of Drmota, Mauduit and Rivat [2]. Before stating the result precisely we need the following notation: s = 2 2, µ = 2 ( ), S(k,x) = {p x : σ (p) = k}. As usual we write φ(n) for Euler s totient function, and π(x) for the numer of primes up to x. We recall the prime numer theorem in the form π(x) = x ( ) x log x + O. () (log x) 2 Theorem (Drmota/Mauduit/Rivat). We have, uniformly for all integers k 0 with (k, ) =, S(k,x) = ( π(x) exp ( (k µ ) log x) 2 ( ) ) + O (log x) 2 +ǫ, (2) φ( ) 2πs log x 2s log x where ǫ > 0 is aritrary ut fixed. Since σ (p) p (mod ), for all ut the finitely many primes p satisfying (p, ) > we have (σ (p), ) =, and this leads to the ( )/φ( ) factor appearing frequently. From the aove result we can deduce some very interesting corollaries. Clearly, (2) shows that every sufficiently large integer is the sum of digits of a prime numer. So, in particular, there are infinitely many primes whose sum of digits is also prime. Also, every sufficiently large prime is the sum of digits of another prime which in turn is the sum of digits of another prime, and so on. We use Theorem to otain a Mertens-type result as follows. 2 a k

Theorem 2. Let 2 e an integer and X 2. Then we have p P p = φ( ) L 3(X) + O(). (3) In fact we shall use Theorem 2 as the first step in an inductive argument to estalish the following more general result for the sets P (j). Theorem 3. Let,j 2 e integers and X 2. Then we have ( ) j p = L j+2(x) + O(). (4) φ( ) p P (j) As a final application of Theorem we leave the following for the reader to prove. Theorem 4. Write P for the set of primes in P which have a prime numer of digits. Then L 2 (p) = p φ( ) L 3(X) + O(). p P 2 The prolem of the unweighted sum In this section we riefly consider the sum π(x) =. p P First we note the following result of Kátai [5]. Lemma 5. For every positive integer k we have σ (p) µ log x k k x(log x) k/2. p<x Now, even assuming the Riemann hypothesis and the pair correlation conjecture [3] we cannot prove that every interval I y = [y y 2(log y) 3,y+y 2(log y) 3] contains a prime numer. Suppose that I y contains no primes, and choose X so that y = µ log X. Then Theorem cannot supply an asymptotic formula for π (X), and y Lemma 5 with k = 3A π (X) A X XL (X)(L 2 (X)) A for every positive integer A. This shows that no asymptotic formula is possile unless a stronger result than can e otained on the Riemann hypothesis is assumed, for clearly π (X) should e of size X(L (X)L 2 (X)). We state here a hypothetical result to illustrate what we mean. 3

Theorem 6. Suppose that there exists a positive function f(x) 0 such that for all large x every interval of the form [x,x + x 2f(x)] contains f(x)x 2( + o())(log x) primes. Then π(x) X φ( ) L (X)L 2 (X). (5) The proof of this result is straightforward. By Lemma 5 we need only count primes whose sum of digits is q with q µ log x < (log x) 2 3. (6) Applying Theorem we need to estimate exp ( (q µ ) log x) 2. 2s log x (6) Breaking the summation range into shorter ranges of the form [y,y + y 2f(y)] and then comparing a sum with an integral we otain + o() ( ) t 2 exp dt = + o() 2s π log log(µ log x) 2s log x log(µ log x) x, which quickly estalishes the result. We remark that the hypothesis of Theorem 6 is almost always true unconditionally in the following sense. The method of Heath-Brown [4] shows that, given ǫ > 0, there exists η > 0 such that for all integers y [Y, 2Y ), with at most Y 3 4 +ǫ exceptions, every suinterval [z,z + z 2 η ] of [y Y 2 +ǫ,y + Y 2 +ǫ ] contains z 2 η ( + O((log z) ))(log z) primes. For these non-exceptional y and with X chosen to satisfy y = µ log X we then have (5). Indeed, we can otain the expected asymptotic formula for X on quite long ranges. We note that we are unale to use the stronger results otainale using a sieve method [6] since we require an asymptotic formula for the numer of primes in an interval rather than upper or lower ounds. 3 Proof of Theorem 2 Lemma 5, together with (2), shows that σ (p) is concentrated near its mean value µ log p, and so enales us to restrict our attention to certain p P with negligile error. We write ( ) M(m) = exp (log )m 7 8, µ(m) = µ m 7 8, ǫ(m) = M(m + ) M(m), δ(m) = (m + ) 7 7 8 m 8, M(m) and put M(m) = [M(m), M(m + )). We note for future reference that ( ) ( ( )) ǫ(m) = O m 8 and ǫ(m) = δ(m) log + O m 8. (7) 4

Let V e the largest integer with M(V ) < X. Also, write P(m) = {p P : σ (p) = q, q µ(m) < q 2 3 }. We remark that the exponents 7 8, 2 3 aove are chosen as convenient fixed numers etween 2 and (which must satisfy certain inequalities to enale certain sums to converge later) and have no other special significance. From Lemma 5 we can deduce that converges. Hence Now write Q = log X. Then S(X) := p P S(X) = q<q m= p M(m) p P,p/ P(m) p = m V m V q µ(m) <q 2 3 M(m) M(m) p p M(m) p P(m) p M(m) σ (p)=q + O(). + O(). After applications of Theorem with ǫ = /4 and using () this ecomes ( ) ) ǫ(m) (q µ(m))2 exp ( + O(m 4 ). (8) φ( ) q<q m V (log )m 7 8 2πs m 7 2s 8 m 7 8 q µ(m) <q 2 3 Now the O(m 4) term in the aove leads to an error (using m = (q/µ ) 8 7 + O(q 8 7 3)) q<q q 8 7 3 q 7 q q 2 q 2 7 = O(), and so we can concentrate on the main term in (8). By (7) we can replace ǫ(m) with δ(m) log and only incur an error which is O(m 8) times the main term. We can ignore this error as it will prove to e negligile. By using m 7 8 = q/µ + O(q 2 3) we can reduce the sum to (µ /q) 3 2 Σq + O(), φ( ) 2πs with Σ q = m V q µ(m) <q 2 3 q<q δ(m) exp ( µ ) (q µ(m)) 2. 2s q 5

We can identify this as a Riemann sum of an integral and so otain We have thus shown that as required to complete the proof. q/µ +q 2 3 Σ q = exp ( µ ) (q µ x) 2 dx + O() q/µ q 2 3 2s q 2s qπ = + O(). µ 3 2 S(X) = φ( ) q + O() = φ( ) L 3(X) + O() (9) q<q 4 Proof of Theorem 3 We prove Theorem 3 y induction; Theorem 2 is the case j =. Now assume that the case j has een proved. If we follow the working in 3, then in place of (9) we otain p P (j+) p = φ( ) p<y p P (j) p + O() where Y = log X. By the inductive hypothesis we therefore have p P (j+) as required to complete the proof. ( ) j+ p = L j+3(x) + O() φ( ) 5 Acknowledgement I would like to thank the referee for his suggestions and Christian Elsholtz whose e-mail conversation sparked my interest in this topic. References [] H. Davenport, Multiplicative Numer Theory, 2nd edition, revised y H. L. Montgomery, Springer, 980. [2] M. Drmota, C. Mauduit and J. Rivat, Primes with an average sum of digits, Compositio Math. 45 (2009), 27 292. 6

[3] D. Goldston and D. R. Heath-Brown, A note on the difference etween consecutive primes, Math. Ann. 266 (984), 37 320. [4] D. R. Heath-Brown, The differences etween consecutive primes, III, J. London Math. Soc. (2), 20, 77 78. [5] I. Kátai, On the sum of digits of primes, Acta Math. Acad. Sci. Hungar. 30 (977), 69 73. [6] K. Matomäki, Large differences etween consecutive primes, Quart. J. Math. 58 (2007), 489 57. [7] C. Mauduit and J. Rivat, Sur un prolème de Gelfond: la somme des chiffres des nomres premiers, Ann. of Math. 7 (200), 59 646. 200 Mathematics Suject Classification: Primary A63; Secondary N05, N60. Keywords: prime numer, sum of digits, Mertens theorem. (Concerned with sequences A046704, A070027, and A0998.) Received Septemer 6 20; revised version received Decemer 29 20. Pulished in Journal of Integer Sequences, Decemer 30 20. Return to Journal of Integer Sequences home page. 7