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.2 The n + 1 test 185<br />

of both n − 1andn + 1, that is, a fully factored divisor of n 2 − 1, may be<br />

combined into one test.<br />

Theorem 4.2.8. Suppose f,∆ are as in (4.12) and n is a positive integer<br />

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

∆<br />

1/3 = −1. Suppose n +1=FR with F>n +1<br />

n<br />

and (4.14) holds. Write R in base F , so that R = r1F + r0, 0 ≤ ri ≤ F − 1.<br />

Then n is prime if and only if neither x2 +r0x−r1 nor x2 +(r0−F )x−r1 −1<br />

has a positive integral root.<br />

Note that in the case Rn,(F + 1)(F 2 − 1) >n,wehave1≤ c, d ≤ F − 1. Note<br />

that<br />

n +1<br />

r1F + r0 = R = = cdF + d − c,<br />

F<br />

so that d − c ≡ r0 (mod F ). It follows that d = c + r0 or d = c + r0 − F ,that<br />

is, d = c + r0 − iF for i = 0 or 1. Thus,<br />

r1F + r0 = c(c + r0 − iF )F + r0 − iF,<br />

so that r1 = c(c + r0 − iF ) − i, which implies that<br />

c 2 +(r0 − iF )c − r1 − i =0.<br />

But then x 2 +(r0 −iF )x−r1 −i has a positive integral root for one of i =0, 1.<br />

This proves one direction.<br />

Suppose now that x 2 +(r0 − iF )x − r1 − i has a positive integral root c for<br />

one of i =0, 1. Undoing the above algebra we see that cF + 1 is a divisor of n.<br />

But n ≡−1(modF ), so n is composite, since the hypotheses imply F>2.<br />

✷<br />

We can improve the n + 1 test further, requiring only F ≥ n 3/10 .The<br />

proof is completely analogous to Theorem 4.1.6, and we leave said proof as<br />

Exercise 4.15.<br />

Theorem 4.2.9. Suppose n ≥ 214 and the hypotheses of Theorem 4.2.8<br />

hold, except that n 3/10 ≤ F ≤ n 1/3 +1. Say the base-F expansion of n +1 is<br />

c3F 3 + c2F 2 + c1F ,andletc4 = c3F + c2. Then n is prime if and only if the<br />

following conditions hold:<br />

(1) (c1 + tF ) 2 − 4t +4c4 is not a square for t integral, |t| ≤5,<br />

(2) with u/v the continued fraction convergent to c1/F such that v is<br />

maximal subject to v < F 2 / √ n and with d = ⌊c4v/F +1/2⌋, the

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

Saved successfully!

Ooh no, something went wrong!