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.

5.8 Research problems 255<br />

5.17. Show that if p is a prime and p ≡ 1 (mod 4), then there is a<br />

probabilistic algorithm to write p as a sum of two squares that is expected<br />

to succeed in polynomial time. In the case that p ≡ 5 (mod 8), show how the<br />

algorithm can be made deterministic. Using the deterministic polynomial-time<br />

method in [Schoof 1985] for taking the square root of −1 modulo p, showhow<br />

in the general case the algorithm can be made deterministic, and still run in<br />

polynomial time.<br />

5.18. Suppose that (a, b, c), (a ′ ,b ′ ,c ′ ) are equivalent quadratic forms, n is<br />

a positive integer, ax 2 + bxy + cy 2 = n, and under the equivalence, x, y gets<br />

taken to x ′ ,y ′ .Letu =2ax + by, u ′ =2a ′ x ′ + b ′ y ′ . Show that uy ′ ≡ u ′ y<br />

(mod 2n).<br />

5.19. Show that if (a, b, c) is a quadratic form, then for each integer b ′ ≡ b<br />

(mod 2a), there is an integer c ′ such that (a, b, c) is equivalent to (a, b ′ ,c ′ ).<br />

5.20. Suppose 〈a, b, c〉 ∈C(D). Prove that 〈a, b, c〉 is the identity 1D in C(D)<br />

ifandonlyif(a, b, c) represents 1. Conclude that 〈a, b, c〉∗〈c, b, a〉 =1D.<br />

5.21. Study, and implement the McKee O(n 1/4+ɛ ) factoring algorithm as<br />

described in [McKee 1999]. The method is probabilistic, and is a kind of<br />

optimization of the celebrated Fermat method.<br />

5.22. On the basis of the Dirichlet class number formula (5.3), derive the<br />

following formulae for π:<br />

π =2 <br />

p>2<br />

<br />

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

−1<br />

=4<br />

p<br />

<br />

<br />

1 −<br />

p>2<br />

(−1)(p−1)/2<br />

−1<br />

.<br />

p<br />

From the mere fact that these formulae are well-defined, prove that there<br />

exist infinitely many primes of each of the forms p =4k + 1 and p =4k +3.<br />

(Compare with Exercise 1.7.) As a computational matter, about how many<br />

primes would you need to attain a reliable value for π to a given number of<br />

decimal places?<br />

5.8 Research problems<br />

5.23. Show that for p = 257, the rho iteration x = x 2 − 1modp has only<br />

three possible cycle lengths, namely 2, 7, 12. For p = 7001, show the iteration<br />

x = x 2 +3modp has only the 8 cycle lengths 3, 4, 6, 7, 19, 28, 36, 67. Find<br />

too the number of distinct connected components in the cycle graphs of these<br />

two iterations. Is it true that the number of distinct cycle lengths, as well as<br />

the number of connected components (which always is at least as large) is<br />

O(ln p)? A similar result has been proved in the case of a random function;<br />

see [Flajolet and Odlyzko 1990].<br />

5.24. If a Pollard-rho iteration be taken not as x = x 2 + a mod N but as<br />

x = x 2K + a mod N,

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

Saved successfully!

Ooh no, something went wrong!