Prime Numbers

Prime Numbers Prime Numbers

thales.doa.fmph.uniba.sk
from thales.doa.fmph.uniba.sk More from this publisher
10.12.2012 Views

3.9 Research problems 171 3.50. The closing theme of the chapter, analytic prime-counting, involves the Riemann zeta function in a certain way. Pursuant to Exercise 1.60, consider the following research path, whereby we use information about the zeta function within, rather than to the right of, the critical strip. Start with the Riemann–von Mangoldt formula, closely reminiscent of (1.23) and involving the π∗ function in (3.25): π ∗ (x) =li0(x) − li0(x ρ ∞ dt ) − ln 2 + x t(t2 − 1) ln t , ρ observing the computational cautions of Exercise 1.36 such as the need to employ Ei for reliable results. The zeros ρ here are the Riemann critical zeros, and one may replace the sum with twice a sum over real parts. The research problem then is: Find a computationally rapid algorithm to estimate π(x) extremely accurately using a collection of Riemann critical zeros. It is known that with a few zeros, say, one may actually compute π(x) as the integer-valued staircase that it is, at least up to some x depending on how many zeros are employed. A hard extension to this problem is then: Given x, how far does one have to go up the critical line with ρ values to compute a numerical approximation—call it πa(x)—in order to have π(n) =⌊πa(n +1/2)⌋ hold exactly for every integer n ∈ [2,x]? We certainly expect on theoretical grounds that one must need at least O( √ x) values of ρ, but the idea here is to have an analytically precise function πa(x) foragiven range on x. References on the use of Riemann critical zeros for prime-counting are [Riesel and Göhl 1970] and [Borwein et al. 2000].

Chapter 4 PRIMALITY PROVING In Chapter 3 we discussed probabilistic methods for quickly recognizing composite numbers. If a number is not declared composite by such a test, it is either prime, or we have been unlucky in our attempt to prove the number composite. Since we do not expect to witness inordinate strings of bad luck, after a while we become convinced that the number is prime. We do not, however, have a proof; rather, we have a conjecture substantiated by numerical experiments. This chapter is devoted to the topic of how one might actually prove that a number is prime. Note that primality proving via elliptic curves is discussed in Section 7.6. 4.1 The n − 1 test Small numbers can be tested for primality by trial division, but for larger numbers there are better methods (10 12 is a possible size threshold, but this depends on the specific computing machinery used). One of these better methods is based on the same theorem as the simplest of all of the pseudoprimality tests, namely, Fermat’s little theorem (Theorem 3.4.1). Known as the n − 1 test, the method somewhat surprisingly suggests that we try our hand at factoring not n, but n − 1. 4.1.1 The Lucas theorem and Pepin test We begin with an idea of E. Lucas, from 1876. Theorem 4.1.1 (Lucas theorem). If a, n are integers with n>1, and a n−1 ≡ 1(modn), buta (n−1)/q ≡ 1(modn) for every prime q|n − 1, (4.1) then n is prime. Proof. The first condition in (4.1) implies that the order of a in Z ∗ n is a divisor of n − 1, while the second condition implies that the order of a is not a proper divisor of n − 1; that is, it is equal to n − 1. But the order of a is also a divisor of ϕ(n), by the Euler theorem (see (2.2)), so n − 1 ≤ ϕ(n). But if n is composite and has the prime factor p, then both p and n are integers in {1, 2,...,n} that are not coprime to n, so from the definition of Euler’s totient function ϕ(n), we have ϕ(n) ≤ n − 2. This is incompatible with n − 1 ≤ ϕ(n), so it must be the case that n is prime. ✷

Chapter 4<br />

PRIMALITY PROVING<br />

In Chapter 3 we discussed probabilistic methods for quickly recognizing<br />

composite numbers. If a number is not declared composite by such a test,<br />

it is either prime, or we have been unlucky in our attempt to prove the<br />

number composite. Since we do not expect to witness inordinate strings of<br />

bad luck, after a while we become convinced that the number is prime. We<br />

do not, however, have a proof; rather, we have a conjecture substantiated by<br />

numerical experiments. This chapter is devoted to the topic of how one might<br />

actually prove that a number is prime. Note that primality proving via elliptic<br />

curves is discussed in Section 7.6.<br />

4.1 The n − 1 test<br />

Small numbers can be tested for primality by trial division, but for larger<br />

numbers there are better methods (10 12 is a possible size threshold, but<br />

this depends on the specific computing machinery used). One of these<br />

better methods is based on the same theorem as the simplest of all of<br />

the pseudoprimality tests, namely, Fermat’s little theorem (Theorem 3.4.1).<br />

Known as the n − 1 test, the method somewhat surprisingly suggests that we<br />

try our hand at factoring not n, but n − 1.<br />

4.1.1 The Lucas theorem and Pepin test<br />

We begin with an idea of E. Lucas, from 1876.<br />

Theorem 4.1.1 (Lucas theorem). If a, n are integers with n>1, and<br />

a n−1 ≡ 1(modn), buta (n−1)/q ≡ 1(modn) for every prime q|n − 1, (4.1)<br />

then n is prime.<br />

Proof. The first condition in (4.1) implies that the order of a in Z ∗ n is a<br />

divisor of n − 1, while the second condition implies that the order of a is not<br />

a proper divisor of n − 1; that is, it is equal to n − 1. But the order of a is also<br />

a divisor of ϕ(n), by the Euler theorem (see (2.2)), so n − 1 ≤ ϕ(n). But if<br />

n is composite and has the prime factor p, then both p and n are integers in<br />

{1, 2,...,n} that are not coprime to n, so from the definition of Euler’s totient<br />

function ϕ(n), we have ϕ(n) ≤ n − 2. This is incompatible with n − 1 ≤ ϕ(n),<br />

so it must be the case that n is prime. ✷

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!