10.12.2012 Views

Prime Numbers

Prime Numbers

Prime Numbers

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

210 Chapter 4 PRIMALITY PROVING<br />

Say we take d = ⌊lg 2 n⌋ + 1 and run this last algorithm on a large number<br />

n. Ifn is prime, then the algorithm will produce an irreducible polynomial<br />

with degree in [d, 4d]. If n is composite, either the algorithm will produce a<br />

polynomial with degree in [d, 4d] and for which (4.27) and (4.28) both hold,<br />

or the algorithm will crash. In this latter case, the number n will have been<br />

proved composite. Finally, if the algorithm succeeds in finding a polynomial<br />

for which (4.27) and (4.28) hold, then one can proceed to check (4.29) for the<br />

requisite values of a, taking time Õ(d3/2 ln 3 n)= Õ(ln6 n), and so deciding<br />

within this time bound whether n is prime or composite.<br />

So the polynomial construction from [Lenstra and Pomerance 2005] plus<br />

Theorem 4.5.4 gives a deterministic primality test for n with bit operation<br />

count bounded by Õ(ln6 n). This polynomial construction method is too<br />

complicated to be completely described in this book, but we would like to<br />

present some of the essential elements. As with many ideas in our subject, the<br />

story begins with Gauss.<br />

While still a teenager, Gauss described a set of natural numbers n for<br />

which a regular n-gon is constructible with a Euclidean straight-edge and<br />

compass, and conjectured that his set was exhaustive (and he was right, as<br />

proved by P. Wantzel in 1836). The set of Gauss is precisely the integers n ≥ 3<br />

for which ϕ(n) is a power of 2 (also see the discussion in Section 1.3.2). We<br />

are interested here not so much in this beautiful theorem itself, but rather<br />

its proof. Key to the argument are what are now called Gaussian periods.<br />

Suppose r is a prime number, and let ζr = e 2πi/r ,sothatζr is a primitive<br />

r-throotof1.Letd be a positive divisor of r − 1andlet<br />

S = {1 ≤ j ≤ r : j (r−1)/d ≡ 1(modr)}<br />

be the subgroup of d-th powers modulo r. We define the Gaussian period<br />

ηr,d = <br />

ζ j r.<br />

Thus, ηr,d is a sum of some of the r-th roots of 1. It has the property<br />

that Q(ηr,d) is the (unique) subfield of Q(ζr) ofdegreed over Q. In fact,<br />

ηr,d is the trace of ζr to this subfield. We are especially interested in the<br />

minimal polynomial fr,d for ηr,d over Q. This polynomial is monic with integer<br />

coefficients, it has degree d, and it is irreducible over Q. We may explicitly<br />

exhibit the polynomial fr,d as follows. Let w be a residue modulo r such that<br />

the order of w (r−1)/d is d. For example, any primitive root w modulo r has<br />

this property, but there are many other examples as well. Then the cosets<br />

S,wS,...,w d−1 S are disjoint and cover Z ∗ r. The conjugates of ηr,d over Q are<br />

the various sums <br />

j∈w i S ζj r, and we have<br />

j∈S<br />

d−1 <br />

<br />

fr,d(x) = x − <br />

i=0<br />

j∈w i S<br />

As a monic polynomial of degree d in Z[x], when reduced modulo a prime<br />

p, fr,d remains a polynomial of degree d. But is it irreducible in Zp[x]? Not<br />

ζ j r<br />

<br />

.

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

Saved successfully!

Ooh no, something went wrong!