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.

216 Chapter 4 PRIMALITY PROVING<br />

so that A has order r by our hypothesis. Then, there is some integer k such<br />

that for all nonnegative integers j, i,<br />

j<br />

N<br />

(x − 1) ≡ A j x − 1(modx r i<br />

P<br />

− b), (x − 1) ≡ A ik x − x (mod x r − b),<br />

where we view these as polynomials in K[x]. This follows in exactly the same<br />

way as in the proof of Theorem 4.5.7, and further we get that<br />

(x − 1) P i (N/P ) j<br />

≡ A ik+j(1−k) x − 1(modx r − b).<br />

If E is the order of x − 1inK[x]/(x r − b), then E ≥ 2 r − 1bythesame<br />

argument as before. But again as before, there are different pairs of integers<br />

i1,j1 and i2,j2 with Ul := P il (N/P) jl ∈ [1,N √ r]forl =1, 2andU1 ≡ U2<br />

(mod E). This forces U1 = U2, andson is a power of p (since N is a power<br />

of n and P is a power of p).<br />

The reader is invited to observe the remarkable similarity of Theorem 4.3.3<br />

to Theorem 4.5.8, where I,F,g of the former theorem correspond to d, r, b,<br />

respectively, in the latter.<br />

We may use Theorem 4.5.8 as the basis of a fast random algorithm that<br />

is expected to supply primes with proofs that they are primes:<br />

Algorithm 4.5.9 (Quartic-time variant of AKS test). We are given an integer<br />

n>1. This random algorithm attempts to decide whether n is prime or<br />

composite, and it decides this issue correctly whenever it terminates.<br />

1. [Setup]<br />

If n is a square or higher power, return “n is composite”;<br />

Find a pair r, d of positive integers with rd2 minimal such that r|nd − 1<br />

and d2 lg 2 n

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

Saved successfully!

Ooh no, something went wrong!