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.

182 Chapter 4 PRIMALITY PROVING<br />

Recall that the polynomials Uk,Vk do not have positive degree; that is, they<br />

are integers.<br />

Definition 4.2.1. With the above notation, if n is a positive integer with<br />

gcd(n, 2b∆) = 1, the rank of appearance of n, denoted by rf (n), is the least<br />

positive integer r with Ur ≡ 0(modn).<br />

This concept sometimes goes by the name “rank of apparition,” but according<br />

to Ribenboim, this is due to a mistranslation of the French apparition. There<br />

is nothing ghostly about the rank of appearance!<br />

It is apparent from the definition (4.13) that (Uk) is a “divisibility<br />

sequence,” that is, if k|j then Uk|Uj. (We allow the possibility that Uk =<br />

Uj = 0.) It follows that if gcd(n, 2b∆) = 1, then Uj ≡ 0(modn) if and only if<br />

j ≡ 0(modrf (n)). On the basis of Theorem 3.6.3 we thus have the following<br />

result:<br />

Theorem 4.2.2. With f,∆ as in (4.12) and p a prime not dividing 2b∆,<br />

we have rf (p)|p − <br />

∆<br />

p .<br />

(Recall the Legendre symbol <br />

·<br />

p from Definition 2.3.2.)<br />

In analogy to Theorem 4.1.3, we have the following result:<br />

Theorem 4.2.3 (Morrison). Let f,∆ be as in (4.12) and let n be a positive<br />

integer with gcd(n, 2b) =1, <br />

∆<br />

n = −1. IfF is a divisor of n +1 and<br />

Un+1 ≡ 0(modn), gcd(U (n+1)/q,n)=1for every prime q|F, (4.14)<br />

then every prime p dividing n satisfies p ≡ <br />

∆<br />

p (mod F ). In particular, if<br />

F> √ n +1 and (4.14) holds, then n is prime.<br />

(Recall the Jacobi symbol ·<br />

n<br />

from Definition 2.3.3.)<br />

Proof. Let p be a prime factor of n. Then (4.14) implies that F divides rf (p).<br />

So, by Theorem 4.2.2, p ≡ <br />

∆<br />

√<br />

p (mod F ). If, in addition, we have F> n +1,<br />

then every prime factor p of n has p ≥ F − 1 > √ n,son is prime. ✷<br />

If Theorem 4.2.3 is to be used in a primality test, we will need to find an<br />

appropriate f in (4.12). As with Algorithm 4.1.7 where a is chosen at random,<br />

we may choose a, b in (4.12) at random. When we start with a prime n, the<br />

expected number of choices until a successful pair is found is not large, as the<br />

following result indicates.<br />

Theorem 4.2.4. Let p be an odd prime and let N be the number of pairs<br />

a, b ∈{0, 1,...,p− 1} such that if f,∆ are given as in (4.12), then <br />

∆<br />

p = −1<br />

and rf (p) =p +1. Then N = 1<br />

2 (p − 1)ϕ(p +1).<br />

We leave the proof as Exercise 4.12. A consequence of Theorem 4.2.4 is that<br />

if n is an odd prime and if a, b are chosen randomly in {0, 1,...,n− 1} with<br />

not both 0, then the expected number of choices until one is found where the

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

Saved successfully!

Ooh no, something went wrong!