NUMERICAL CALCULATION OF THE DENSITY OF PRIME NUMBERS WITH A GIVEN LEAST PRIMITIVE ROOT



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

ON GALOIS REALIZATIONS OF THE 2-COVERABLE SYMMETRIC AND ALTERNATING GROUPS

ON FIBONACCI NUMBERS WITH FEW PRIME DIVISORS

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

CONTRIBUTIONS TO ZERO SUM PROBLEMS

The sum of digits of polynomial values in arithmetic progressions

Number Theory. Proof. Suppose otherwise. Then there would be a finite number n of primes, which we may

PRIME FACTORS OF CONSECUTIVE INTEGERS

Homework until Test #2

Quotient Rings and Field Extensions

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

MATHEMATICAL INDUCTION. Mathematical Induction. This is a powerful method to prove properties of positive integers.

U.C. Berkeley CS276: Cryptography Handout 0.1 Luca Trevisan January, Notes on Algebra

Theorem3.1.1 Thedivisionalgorithm;theorem2.2.1insection2.2 If m, n Z and n is a positive

Solutions for Practice problems on proofs

On the largest prime factor of the Mersenne numbers

FACTORING POLYNOMIALS IN THE RING OF FORMAL POWER SERIES OVER Z

THE NUMBER OF REPRESENTATIONS OF n OF THE FORM n = x 2 2 y, x > 0, y 0

ALGEBRAIC APPROACH TO COMPOSITE INTEGER FACTORIZATION

On continued fractions of the square root of prime numbers

Introduction to Finite Fields (cont.)

Doug Ravenel. October 15, 2008

Revised Version of Chapter 23. We learned long ago how to solve linear congruences. ax c (mod m)

On the largest prime factor of x 2 1

Math 319 Problem Set #3 Solution 21 February 2002

QUADRATIC RECIPROCITY IN CHARACTERISTIC 2

A simple criterion on degree sequences of graphs

AMBIGUOUS CLASSES IN QUADRATIC FIELDS

Integer roots of quadratic and cubic polynomials with integer coefficients

Primality - Factorization

Computing exponents modulo a number: Repeated squaring

Prime numbers and prime polynomials. Paul Pollack Dartmouth College

= = 3 4, Now assume that P (k) is true for some fixed k 2. This means that

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

On some Formulae for Ramanujan s tau Function

Math 55: Discrete Mathematics

EMBEDDING DEGREE OF HYPERELLIPTIC CURVES WITH COMPLEX MULTIPLICATION

Modern Algebra Lecture Notes: Rings and fields set 4 (Revision 2)

FACTORING CERTAIN INFINITE ABELIAN GROUPS BY DISTORTED CYCLIC SUBSETS

Irreducibility criteria for compositions and multiplicative convolutions of polynomials with integer coefficients

SYSTEMS OF PYTHAGOREAN TRIPLES. Acknowledgements. I would like to thank Professor Laura Schueller for advising and guiding me

Introduction. Appendix D Mathematical Induction D1

Prime power degree representations of the symmetric and alternating groups

RECURSIVE ENUMERATION OF PYTHAGOREAN TRIPLES

Math 55: Discrete Mathematics

P. Jeyanthi and N. Angel Benseera

Least Prime Primitive Roots

IB Math Research Problem

MATH 289 PROBLEM SET 4: NUMBER THEORY

Continued Fractions and the Euclidean Algorithm

Congruence properties of binary partition functions

CHAPTER SIX IRREDUCIBILITY AND FACTORIZATION 1. BASIC DIVISIBILITY THEORY

The Chinese Remainder Theorem

ODD PERFECT NUMBERS HAVE AT LEAST NINE DISTINCT PRIME FACTORS

2 Primality and Compositeness Tests

Lecture 13 - Basic Number Theory.

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

Our Primitive Roots. Chris Lyons

I. GROUPS: BASIC DEFINITIONS AND EXAMPLES

Factoring polynomials over finite fields

Prime Numbers and Irreducible Polynomials

Cyclotomic Extensions

SUBGROUPS OF CYCLIC GROUPS. 1. Introduction In a group G, we denote the (cyclic) group of powers of some g G by

n k=1 k=0 1/k! = e. Example 6.4. The series 1/k 2 converges in R. Indeed, if s n = n then k=1 1/k, then s 2n s n = 1 n

CS 103X: Discrete Structures Homework Assignment 3 Solutions

Sample Induction Proofs

Breaking The Code. Ryan Lowe. Ryan Lowe is currently a Ball State senior with a double major in Computer Science and Mathematics and

Factoring & Primality

Sequence of Numbers. Mun Chou, Fong QED Education Scientific Malaysia

Cryptography and Network Security Chapter 8

How To Prove The Dirichlet Unit Theorem

3.6 The Real Zeros of a Polynomial Function

Stirling s formula, n-spheres and the Gamma Function

Some Problems of Second-Order Rational Difference Equations with Quadratic Terms

All trees contain a large induced subgraph having all degrees 1 (mod k)

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

Is n a Prime Number? Manindra Agrawal. March 27, 2006, Delft. IIT Kanpur

SECRET sharing schemes were introduced by Blakley [5]

Integer Factorization using the Quadratic Sieve

FACTORING AFTER DEDEKIND

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

Counting Primes whose Sum of Digits is Prime

Algebraic and Transcendental Numbers

minimal polyonomial Example

How To Factorize Of Finite Abelian Groups By A Cyclic Subset Of A Finite Group

Some applications of LLL

ECE 842 Report Implementation of Elliptic Curve Cryptography

New Hash Function Construction for Textual and Geometric Data Retrieval

Continued Fractions. Darren C. Collins

MATH 4552 Cubic equations and Cardano s formulae

1 if 1 x 0 1 if 0 x 1

NEW DIGITAL SIGNATURE PROTOCOL BASED ON ELLIPTIC CURVES

Math 453: Elementary Number Theory Definitions and Theorems

5.1 Radical Notation and Rational Exponents

FACTORING. n = fall in the arithmetic sequence

ELEMENTARY PROBLEMS AND SOLUTIONS

THE SEARCH FOR AURIFEUILLIAN-LIKE FACTORIZATIONS

Transcription:

MATHEMATICS OF COMPUTATION Volume 71, Number 240, Pages 1781 1797 S 0025-5718(01)01382-5 Article electronically published on November 28, 2001 NUMERICAL CALCULATION OF THE DENSITY OF PRIME NUMBERS WITH A GIVEN LEAST PRIMITIVE ROOT A. PASZKIEWICZ AND A. SCHINZEL Abstract. In this paper the densities D(i) ofprimenumbersp having the least primitive root g(p) =i, wherei is equal to one of the initial positive integers less than 32, have been numerically calculated. The computations were carried out under the assumption of the Generalised Riemann Hypothesis. The results of these computations were compared with the results of numerical frequency estimations. 1. An outline of the method of computation Let g(p) denote the least primitive root modulo p and D(i) the density of prime numbers with the least primitive root equal to i, thatis D(i) = lim x π(x) 1 In [3] Elliott and Murata gave the formula p x g(p)=i 1. (1) D(i) = ( 1) M 1 A M, M where M runs over all the subsets of the set {2, 3,...,i} containing i. Here A M denotes the conjectural density of primes p such that each a i M is a primitive root modulo p, expressed by the formula in Lemma 11.5, page 140 of Matthews [4]: A M = (2) (1 c(p)) ω(a)f(a), p a G(a 1,...,a n) where M = {a 1,...,a n } and G(a 1,...,a n } is the set of squarefree integers of the form a = κ(a ε1 1,...,aεn n ) 1(mod 4), ε i =0, 1, ω(a) =( 1) i εi and κ(b) isthe squarefree part of the number b f(b) =µ(b) p b c(p) 1 c(p). Here c(p) is the natural density of the set of primes {q : q 1(mod p), q a 1,...,a n, and at least one of the numbers a 1,...,a n is a pth power residue modulo q}. Received by the editor November 29, 1999 and, in revised form, December 26, 2000. 2000 Mathematics Subject Classification. Primary 11Y16; Secondary 11A07, 11M26. Key words and phrases. Prime, generators, primitive roots, extended Riemann hypothesis. 1781 c 2001 American Mathematical Society

1782 A. PASZKIEWICZ AND A. SCHINZEL Formula (2) is based on the assumption that if a εi 1,...,aεn n = b2,thens = i ε i is even. If S is odd, then A M =0. Thereisafactor1/2 n missing in (1.4) page 114 of Matthews [4], and this error is repeated in the paper of Elliott and Murata. In [3] Elliott and Murata derived formulas for the density of prime numbers whose least primitive roots are the initial natural numbers 2, 3, 5, 6and7. They are as follows: D(2) =, D(3) = 1 2, D(5) = 20 19 1 200 91 2 + 500 439 3, D(6) = 1 282 91 2 + 1000 439 3, ( D(7) = 1 4+ 9 91 + 5 ) ( 2 + 6+ 183 281 439 + 4826 67585 + 147193 ) 3 29669815 1 = p 2 ( 3+ 1107 2131 + 71825 1290197 + 26503425 2749409807 where the initial i (i =1, 2, 3, 4) are ( 1 2 = p 2 3 = p 2 4 = p 2 ( 1 ( 1 ( 1 1 p(p 1) ), Artin s constant, 2 p(p 1) + 1 p 2 (p 1) ), ) 4, 3 p(p 1) + 3 p 2 (p 1) 1 p 3 (p 1) ), 4 p(p 1) + 6 p 2 (p 1) 4 p 3 (p 1) + 1 p 4 (p 1) The calculation of the successive values of D(i) is illustrated with an example for i = 10. According to (1), D(10) = ( 1) M 1 A M, M where M runs over all the subsets of the set {2, 3, 5, 6, 7, 10} containing 10 (from the set of all natural numbers 10, we remove the powers 1, 4, 8, 9, which can never be least primitive roots). Observe that if M contains a, b and ab, thena M =0, because if a, b are primitive roots for p, thenab is not. Therefore, D(10) = A {10} A {2,10} A {3,10} A {5,10} A {6,10} A {7,10} + A {2,3,10} + A {2,6,10} + A {2,7,10} + A {3,5,10} + A {3,6,10} + A {3,7,10} + A {5,6,10} + A {5,7,10} + A {6,7,10} A {2,3,7,10} A {2,6,7,10} A {3,5,7,10} A {3,6,7,10} A {5,6,7,10} A {3,5,6,10} + A {3,5,6,7,10}. Now, for each of the 22 sets M, listed above we calculate c(p),whichwedenoteby c(p, M) in order to avoid ambiguity. So, if the elements a 1,...,a n,ofthesetm are ).

CALCULATION OF THE DENSITY OF PRIME NUMBERS 1783 multiplicatively independent (that is they do not satisfy any relation of the form a α1 1 aα2 2 aαn n =1,whereα i (i =1, 2,...,n) are integers not all equal to 0), then ( c(p, M) = 1 ( 1 1 1 ) ) M (3) ; p 1 p hence, (1 c(p, M)) = M. p 2 The assumption of the multiplicative independence of the elements holds for all the sets listed above except for {3, 5, 6, 10} and {3, 5, 6, 7, 10} (we have 3 5 1 6 1 10 = 1). In order to apply Matthews s formula (2) we compute the sum S(M) = 1 ε 1=0 a=κ(a ε 1 1 a εn n ) 1 ε n=0 1(mod 4) ( 1) i εi f( a,m), where the additional argument of the function f was added in order to avoid ambiguity, e.g., for M = {10},S(M)=f(1,M)=1, for M = {2, 10},S(M)=f(1,M)+f(5,M)=1 c(5,m) 1 c(5,m) =1 9 91 = 82 91. The first summand corresponds to the choice ε 1 = ε 2 = 0; the second to the choice ε 1 = ε 2 = 1, etc. The calculation of the values of the coefficients A M for the remaining sets M proceeds similarly up to the set M = {5, 6, 7, 10} inclusive. For M = {5, 6, 7, 10} we have S(M) =f(1,m) f(5,m)+f(21,m) f(105,m) =1+ c(5,m) 1 c(5,m) + c(3,m) 1 c(3,m) c(7,m) 1 c(7,m) + c(5,m) 1 c(5,m) c(3,m) 1 c(3,m) c(7,m) 1 c(7,m). The first summand corresponds to the choice ε 1 = ε 2 = ε 3 = ε 4 = 0; the second to the choice ε 1 =1,ε 2 = ε 3 = ε 4 =0;thethirdtoε 1 = ε 2 = ε 3 = ε 4 =1;andthe fourth to ε 1 =0,ε 2 = ε 3 = ε 4 =1. It remains to consider two special sets M 1 = {3, 5, 6, 10} and M 2 = {3, 5, 6, 7, 10}. For these sets the formula (3) is not valid and is replaced with 4 c(p, M 1 )= p(p 1) 6 p 2 (p 1) + 3 p 3 (p 1), S(M 1 )=2f(1,M 1 ) 2f(5,M 1 )=2+2 c(5,m 1) 1 c(5,m 1 ).

1784 A. PASZKIEWICZ AND A. SCHINZEL The first summand corresponds to the choice ε 1 = ε 3 = ε 4 = ε 2 ; the second to the choice ε 1 = ε 3 = ε 4 ε 2 : 5 c(p, M 2 )= p(p 1) 10 p 2 (p 1) + 9 p 3 (p 1) 3 p 4 (p 1) ; S(M 2 )=2f(1,M 2 ) 2f(5,M 2 )+2f(21,M 2 ) 2f(105,M 2 ) =2+2 c(5,m 2) 1 c(5,m 2 ) +2 c(3,m 2) 1 c(3,m 2 ) c(7,m 2 ) 1 c(7,m 2 ) +2 c(3,m 2) 1 c(3,m 2 ) c(5,m 2 ) 1 c(5,m 2 ) c(7,m 2 ) 1 c(7,m 2 ). The first summand corresponds to the choice ε 1 = ε 3 = ε 3, ε 4 = ε 1 + ε 3, ε 5 = ε 3 ; the second to the chioce ε 1 = ε 3 ε 2, ε 4 = ε 1 + ε 3, ε 5 = ε 3 ; the third to the choice ε 2 = ε 3 ε 1, ε 4 = ε 1 + ε 3, ε 5 = ε 3 ; the fourth to the choice ε 1 = ε 2 ε 3, ε 4 = ε 1 + ε 3, ε 5 = ε 3. Proceeding in this way, we can calculate densities D(i) for any positive integer i. Beyond i = 10, the derivation of formulas for D(i) ceases to make sense due to their length. However, the use of a computer makes it possible to extend the computations to some extent. In this paper, by designing an algorithm corresponding to the computational process described above, we computed the values of D(i) for all positive integers i<32, which are not powers of integers. 2. Results of numerical computations The following numerical investigations were carried out: The densities D(i) ofprimenumbersp having the least primitive root g(p) equal to i were calculated; the results are illustrated in Table 3. For every prime number p<4 10 10, the value of its least primitive root was determined. The computed densities of prime numbers with given least primitive roots were compared with numerical frequency estimates; the respective values are shown side by side in Table 3. The graphs of densities D(i) for initial values of i were prepared and tabulated with step equal to 10 9, the behaviour of the frequencies of prime numbers with a given least primitive root are illustrated in Figures 1 24. From the figures it may be concluded that the densities D(i) are very stable. Oscillations have limited amplitude and a tendency to damp out. A graph of the average value of the least primitive root of prime numbers not exceeding 4 10 10 was prepared (Figure 25) and tabulated with a step equal to 10 9 (Table 1). The growth rate of the least primitive root of a prime number was numerically investigated (see Table 2). The value g(p) of the least primitive root of a prime number p is well majorised by a second degree polynomial of the natural logarithm of p, which agrees with the conjecture by E. Bach [1] about the least primitive prime roots modulo a prime number. All computations were performed with the aid of more than ten desktop IBM PC computers from Pentium 100 to Pentium III 500 during their idle time. The computations lasted approximately one year. The computational procedures (with some small exceptions) were written in a high level language in order to minimise the risk of programming error. Most of the results were verified using popular

CALCULATION OF THE DENSITY OF PRIME NUMBERS 1785 numerical packages, e.g., MAPLE, GP/PARI. The verification required more time than the actual computations. For checking the number of primes generated, we used Mapes s algorithm, which was found to be the most computationally effective within the range of computations performed. 0,373965 0,373960 0,373955 0,373950 0,373945 0,373940 0,373935 0,373930 0,373925 0,373920 0,373915 Figure 1. The density D(2) of prime numbers with the least primitive root equal to 2 0,226620 0,226615 0,226610 0,226605 0,226600 0,226595 0,226590 0,226585 0,226580 0,226575 Figure 2. The density D(3) of prime numbers with the least primitive root equal to 3

1786 A. PASZKIEWICZ AND A. SCHINZEL 0,139085 0,139080 0,139075 0,139070 0,139065 0,139060 0,139055 0,139050 0,139045 0,139040 Figure 3. The density D(5) of prime numbers with the least primitive root equal to 5 0,055905 0,055900 0,055895 0,055890 0,055885 0,055880 0,055875 0,055870 0,055865 0,055860 0,055855 Figure 4. The density D(6) of prime numbers with the least primitive root equal to 6 0,068720 0,068715 0,068710 0,068705 0,068700 0,068695 Figure 5. The density D(7) of prime numbers with the least primitive root equal to 7

CALCULATION OF THE DENSITY OF PRIME NUMBERS 1787 0,023084 0,023082 0,023080 0,023078 0,023076 0,023074 0,023072 0,023070 0,023068 0,023066 Figure 6. The density D(10) of prime numbers with the least primitive root equal to 10 0,037260 0,037255 0,037250 0,037245 0,037240 0,037235 0,037230 0,037225 0,037220 Figure 7. The density D(11) of prime numbers with the least primitive root equal to 11 0,003285 0,003280 0,003275 0,003270 0,003265 0,003260 0,003255 0,003250 Figure 8. The density D(12) of prime numbers with the least primitive root equal to 12

1788 A. PASZKIEWICZ AND A. SCHINZEL 0,023245 0,023240 0,023235 0,023230 0,023225 0,023220 0,023215 0,023210 0,023205 0,023200 Figure 9. The density D(13) of prime numbers with the least primitive root equal to 13 0,008273 0,008272 0,008271 0,008270 0,008269 0,008268 0,008267 0,008266 0,008265 0,008264 0,008263 Figure 10. The density D(14) of prime numbers with the least primitive root equal to 14 0,004208 0,004206 0,004204 0,004202 0,004200 0,004198 0,004196 0,004194 Figure 11. The density D(15) of prime numbers with the least primitive root equal to 15

CALCULATION OF THE DENSITY OF PRIME NUMBERS 1789 0,011575 0,011570 0,011565 0,011560 0,011555 0,011550 Figure 12. The density D(17) of prime numbers with the least primitive root equal to 17 0,000406 0,000404 0,000402 0,000400 0,000398 0,000396 0,000394 Figure 13. The density D(18) of prime numbers with the least primitive root equal to 18 0,007600 0,007595 0,007590 0,007585 0,007580 0,007575 0,007570 0,007565 Figure 14. The density D(19) of prime numbers with the least primitive root equal to 19

1790 A. PASZKIEWICZ AND A. SCHINZEL 0,0001690fl 0,0001685fl 0,0001680fl 0,0001675fl 0,0001670fl 0,0001665fl 0,0001660fl 0,0001655 Figure 15. The density D(20) of prime numbers with the least primitive root equal to 20 0,001603 0,001602 0,001601 0,001600 0,001599 0,001598 0,001597 0,001596 Figure 16. The density D(21) of prime numbers with the least primitive root equal to 21 0,002462 0,002461 0,002460 0,002459 0,002458 0,002457 0,002456 0,002455 0,002454 0,002453 0,002452 Figure 17. The density D(22) of prime numbers with the least primitive root equal to 22

CALCULATION OF THE DENSITY OF PRIME NUMBERS 1791 0,003875 0,003874 0,003873 0,003872 0,003871 0,003870 0,003869 0,003868 Figure 18. The density D(23) of prime numbers with the least primitive root equal to 23 0,0000231 0,0000230 0,0000229 0,0000228 0,0000227 0,0000226 0,0000225 0,0000224 0,0000223 0,0000222 Figure 19. The density D(24) of prime numbers with the least primitive root equal to 24 0,001302 0,001301 0,001300 0,001299 0,001298 0,001297 0,001296 0,001295 0,001294 Figure 20. The density D(26) of prime numbers with the least primitive root equal to 26

1792 A. PASZKIEWICZ AND A. SCHINZEL 0,000152 0,000151 0,000150 0,000149 0,000148 0,000147 0,000146 Figure 21. The density D(28) of prime numbers with the least primitive root equal to 28 0,002207 0,002206 0,002205 0,002204 0,002203 0,002202 Figure 22. The density D(29) of prime numbers with the least primitive root equal to 29 0,0001055 0,0001050 0,0001045 0,0001040 0,0001035 0,0001030 Figure 23. The density D(30) of prime numbers with the least primitive root equal to 30

CALCULATION OF THE DENSITY OF PRIME NUMBERS 1793 0,001483 0,001482 0,001481 0,001480 0,001479 0,001478 0,001477 0,001476 Figure 24. The density D(31) of prime numbers with the least primitive root equal to 31 4,9265 4,9260 4,9255 4,9250 4,9245 4,9240 4,9235 Figure 25. The average value of the least primitive root. The range of computations covers prime numbers less than 4 10 10.

1794 A. PASZKIEWICZ AND A. SCHINZEL Table 1. The average value of the least primitive root 1 π(n 10 9 ) 1 π(n 10 9 ) p<n 10 g(p) 9 n π(n 10 9 ) p<n 10 g(p) 9 n π(n 10 9 ) 1 50847534 4.923965712871 21 924324489 4.925797855823 2 98222287 4.924663401493 22 966358351 4.925832422385 3 144449537 4.925051147795 23 1008309544 4.925843984674 4 189961812 4.925188058325 24 1050186367 4.925846754020 5 234954223 4.925341307870 25 1091987405 4.925855088048 6 279545368 4.925330900136 26 1133717820 4.925866737278 7 323804352 4.925440477091 27 1175385155 4.925842229139 8 367783654 4.925509101064 28 1216987937 4.925879767368 9 411523195 4.925580522868 29 1258528162 4.925900388393 10 455052511 4.925611642211 30 1300005926 4.925903390845 11 498388617 4.925607016827 31 1341430624 4.925932161364 12 541555851 4.925698972831 32 1382799415 4.925928524492 13 584570200 4.925693412013 33 1424115489 4.925920066307 14 627440336 4.925695173988 34 1465374659 4.925939629611 15 670180516 4.925693396312 35 1506589876 4.925939416709 16 712799821 4.925704473484 36 1547756812 4.925945180075 17 755305935 4.925719780025 37 1588873108 4.925950159639 18 797703398 4.925784038089 38 1629945987 4.925942955189 19 840000027 4.925795219053 39 1670972264 4.925921554372 20 882206716 4.925790644287 40 1711955433 4.925920544687

CALCULATION OF THE DENSITY OF PRIME NUMBERS 1795 Table 2. The growth rate of the least primitive root modulo a prime number. The range of computations covers all prime numbers less than 4 10 10. g(p) p g(p) ln(p) g(p) ln 2 (p) g(p) ln 3 (p) 3 γ g(p) ln(p)(ln ln(p)) 2 3 7 1.541695 0.792274 0.407148 1.953083 5 23 1.594644 0.508578 0.162200 0.685570 6 41 1.615695 0.435078 0.117159 0.527004 7 71 1.642159 0.385241 0.090375 0.438590 19 191 3.617481 0.688745 0.131132 0.738260 21 409 3.492017 0.580675 0.096558 0.609157 23 2161 2.995444 0.390116 0.050807 0.404762 31 5881 3.571641 0.411504 0.047411 0.429429 37 37761 3.510758 0.333119 0.031608 0.355390 38 55441 3.478873 0.318488 0.029157 0.341698 44 71761 3.935213 0.351952 0.031477 0.379080 69 110881 5.939973 0.511352 0.044020 0.554523 73 760321 5.390837 0.398097 0.029398 0.445765 94 5109721 6.085459 0.393966 0.025504 0.455971 97 17551561 5.815119 0.348614 0.020899 0.412241 101 29418841 5.873067 0.341514 0.019858 0.407471 107 33358081 6.176826 0.356571 0.020583 0.426360 111 45024841 6.298685 0.357418 0.020281 0.429585 113 90441961 6.168048 0.336679 0.018377 0.409520 127 184254841 6.673031 0.350624 0.018423 0.431661 137 324013369 6.991117 0.356757 0.018205 0.443395 151 831143041 7.352113 0.357970 0.017429 0.451916 164 1685283601 7.719390 0.363347 0.017102 0.464042 179 6064561441 7.946469 0.352773 0.015660 0.459908 194 7111268641 8.551926 0.376986 0.016618 0.492719 197 9470788801 8.575852 0.373326 0.016251 0.490148 227 28725635761 9.426496 0.391448 0.016255 0.522907

1796 A. PASZKIEWICZ AND A. SCHINZEL Table 3. The frequencies of occurrence of prime numbers with a given least primitive root. D(i) denotes the frequency of prime numbers with the least primitive root equal to i, calculated with the aid of theoretical considerations. 1 i D(i) π(a) p<a,g(p)=i (a=4 10 10 ) 2 0.373955 0.3739585 3 0.226606 0.2266042 5 0.139065 0.1390616 6 0.055881 0.0558824 7 0.068702 0.0687077 10 0.023074 0.0230774 11 0.037238 0.0372384 12 0.003263 0.0032617 13 0.023229 0.0232346 14 0.008270 0.0082698 15 0.004200 0.0042004 17 0.011568 0.0115673 18 0.000404 0.0004047 19 0.007586 0.0075864 20 0.000168 0.0001687 21 0.001600 0.0015989 22 0.002459 0.0024589 23 0.003873 0.0038720 24 0.000022 0.0000227 26 0.001297 0.0012966 28 0.000150 0.0001503 29 0.002203 0.0022049 30 0.000104 0.0001050 31 0.001479 0.0014784 1

CALCULATION OF THE DENSITY OF PRIME NUMBERS 1797 3. Acknowledgments The referee informed us that in the Ph.D. thesis of Bob Buttsworth, University of Queensland 1983 [2], the formula for D(i) is transformed using finite difference methods, into a form which allows one to prove that D(i) is positive if i is not a perfect power, for which we are grateful. The first author was technically supported during computations by the grant of Polish Committee for Scientific Research Nr. 8 T11 D 011 12. References 1. E. Bach, Comments on search procedures for primitive roots, Math. Comp. 66 (1997), 1719 1727. MR 98a:11187 2. R. N. Buttsworth, A general theory of inclusion-exclusion with application to the least primitive root problem, and other density question, Ph.D. Thesis, University of Queensland, Queensland, 1983. 3. P.D.T.A. Elliott, L. Murata, On the average of the least primitive root modulo p, J.London Math. Soc. (2) 56 (1997), 435-454. MR 98m:11094 4. K. R. Matthews, A generalisation of Artin s conjecture for primitive roots, Acta Arith. 29 (1976), 113 146. MR 53:313 Warsaw University of Technology, Institute of Telecommunications, Division of Telecommunications Fundamental, ul. Nowowiejska 15/19, 00-665 Warsaw, Poland E-mail address: anpa@tele.pw.edu.pl Institute of Mathematics, Polish Academy of Sciences, ul. Śniadeckich 8, 00-950 Warsaw, Poland E-mail address: schinzel@impan.gov.pl