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.

220 Chapter 4 PRIMALITY PROVING<br />

have in hand the final Pepin residue, namely,<br />

r =3 (Fn−1)/2 mod Fn.<br />

Say that someone discovers a factor f of Fn, so that we can write<br />

Prove that if we assign<br />

then<br />

Fn = fG.<br />

x =3 f−1 mod Fn,<br />

gcd(r 2 − x, G) =1<br />

implies that the cofactor G is neither a prime nor a prime power. As in Exercise<br />

4.7, the relatively fast (mod Fn) operation is the reason why we interpose said<br />

operation prior to the implicit (mod G) operation in the gcd. All of this shows<br />

the importance of carefully squirreling away one’s Pepin residues, to be used<br />

again in some future season!<br />

4.9. There is an interesting way to find, rigorously, fairly large primes of the<br />

Proth form p = k2 n +1. Prove this theorem of Suyama [Williams 1998], that if<br />

a p of this form divides some Fermat number Fm,andifk2 n−m−2 < 9·2 m+2 +6,<br />

then p is prime.<br />

4.10. Prove the following theorem of Proth: If n>1, 2 k |n−1, 2 k > √ n,and<br />

a (n−1)/2 ≡−1(modn) for some integer a, thenn is prime.<br />

4.11. In the algorithm based on Theorem 4.1.6, one is asked for the integral<br />

roots (if any) of a cubic polynomial with integer coefficients. As an initial<br />

foray, show how to do this efficiently using a Newton method or a divideand-conquer<br />

strategy. Note the simple Algorithm 9.2.11 for design guidance.<br />

Consider the feasibility of rapidly solving even higher-order polynomials for<br />

possible integer roots.<br />

A hint is in order for the simpler case of polynomials x k − a. To generalize<br />

Algorithm 9.2.11 for finding integer k-th roots, say ⌊N 1/k ⌋, consider<br />

In Step [Initialize], replace B(N)/2 → B(N)/k;<br />

In Step [Perform Newton iteration], make the iteration<br />

y = ⌊((k − 1)x + ⌊N/x k−1 ⌋)/k⌋,<br />

or some similar such reduction formula.<br />

4.12. Prove Theorem 4.2.4.<br />

4.13. If the partial factorization (4.2) is found by trial division on n − 1<br />

up to the bound B, then we have the additional information that R’s prime<br />

factors are all >B. Show that if a satisfies (4.3) and also gcd(a F − 1,n)=1,<br />

then every prime factor of n exceeds BF. In particular, if BF ≥ n 1/2 ,thenn<br />

is prime.

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

Saved successfully!

Ooh no, something went wrong!