10.12.2012 Views

Prime Numbers

Prime Numbers

Prime Numbers

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

4.4 Gauss and Jacobi sums 199<br />

Note that the definition of χp,q and of l imply that<br />

G(p, q) pw(p) up ≡ ζ l(p,q)<br />

p<br />

= ζ l(q)<br />

p<br />

= χp,q(g l(q)<br />

q )=χp,q(l) (modr)<br />

for every pair of primes p, q with q|F, p|q − 1. Thus, from (4.22) and Lemma<br />

4.4.2,<br />

χp,q(r) =χp,q(r) bp ≡ G(p, q) (rp−1 −1)bp = G(p, q) p w(p) upap<br />

and so by Lemma 4.4.3 we have<br />

≡ χp,q(l) ap = χp,q(l a )(modr),<br />

χp,q(r) =χp,q(l a ).<br />

The product of the characters χp,q for p prime, p|I and p|q − 1, is a character<br />

χq of order <br />

p|q−1 p = q − 1, as q − 1|I and I is squarefree. But a character<br />

mod q of order q − 1 is one-to-one on Zq (see Exercise 4.24), so as<br />

χq(r) = <br />

χp,q(r) = <br />

χp,q(l a )=χq(l a ),<br />

p|q−1<br />

p|q−1<br />

we have r ≡ l a (mod q). As this holds for each prime q|F and F is squarefree, it<br />

follows that (4.23) holds. This completes the proof of correctness of Algorithm<br />

4.4.5.<br />

It is clear that the running time is bounded by a fixed power of I, sothe<br />

running time assertion follows immediately from Theorem 4.3.5. ✷<br />

With some extra work one can extend the Gauss sums primality test to the<br />

case where I is not assumed squarefree. This extra degree of freedom allows<br />

for a speedier test. In addition, there are speed-ups that use randomness, thus<br />

eschewing the deterministic aspect of the test. For a reasonably fast version<br />

of the Gauss sums primality test, one might consult the new paper [Schoof<br />

2004].<br />

4.4.2 Jacobi sums test<br />

We have just mentioned some ways that the Gauss sums test can be improved<br />

in practice, but the principal way is to not use Gauss sums! Rather, as with<br />

the original test of Adleman, Pomerance and Rumely, Jacobi sums are used.<br />

The Gauss sums G(p, q) are in the ring Z[ζp,ζq]. Doing arithmetic in this ring<br />

modulo n requires dealing with vectors with (p − 1)(q − 1) coordinates, with<br />

each coordinate being a residue modulo n. It is likely in practice that we can<br />

take the primes p to be very small, say less than ln n. But the primes q can<br />

be somewhat larger, as large as (ln n) c ln ln ln n . The Jacobi sums J(p, q) that<br />

we shall presently introduce lie in the much smaller ring Z[ζp], and so doing<br />

arithmetic with them is much speedier.<br />

Recall the character χp,q from Section 4.4.1, where p, q areprimeswith<br />

p|q − 1. We shall suppose that p is an odd prime. Let b = b(p) be the least

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

Saved successfully!

Ooh no, something went wrong!