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.

9.7 Exercises 531<br />

adjustment step. Study the phenomenon raised in the text after the algorithm,<br />

namely, that of reduced error in the balanced option. There exist some<br />

numerical studies of this, together with some theoretical conjectures (see<br />

[Crandall and Fagin 1994], [Crandall et al. 1999] and references therein), but<br />

very little is known in the way of error bounds that are both rigorous and<br />

pragmatic.<br />

9.56. Show that if p =2 q − 1withq odd and x ∈{0,...,p − 1}, then<br />

x 2 mod p can be calculated using two size-(q/2) multiplies. Hint: Represent<br />

x = a + b2 (q+1)/2 and relate the result of squaring x to the numbers<br />

(a + b)(a +2b) and(a − b)(a − 2b).<br />

This interesting procedure gives nothing really new—because we already know<br />

that squaring (in the grammar-school range) is about half as complex as<br />

multiplication—but the method here is a different way to get the speed<br />

doubling, and furthermore does not involve microscopic intervention into the<br />

squaring loops as discussed for equation (9.3).<br />

9.57. Do there always exist primes p1,...,pr required in Algorithm 9.5.20,<br />

and how does one find them?<br />

9.58. Prove, as suggested by the statement of Algorithm 9.5.20, that any<br />

convolution element of x × y in that algorithm is indeed bounded by NM 2 .<br />

For application to large-integer multiplication, can one invoke balanced<br />

representation ideas, that is, considering any integer (mod p) as lying in<br />

[−(p +1)/2, (p − 1)/2], to lower the bounding requirements, hence possibly<br />

reducing the set of CRT primes?<br />

9.59. For the discrete, prime-based transform (9.33) in cases where g has a<br />

square root, h 2 = g, answer precisely: What is a closed form for the transform<br />

element Xk if the input signal is defined x = h j2 , j = 0,...,p − 1?<br />

Noting the peculiar simplicity of the Xk, find an analogous signal x having<br />

N elements in the complex domain, for which the usual, complex-valued FFT<br />

has a convenient property for the magnitudes |Xk|. (Such a signal is called<br />

a “chirp” signal and has high value in testing FFT routines, which must, of<br />

course, exhibit a numerical manifestation of the special magnitude property.)<br />

9.60. For the Mersenne prime p =2 127 − 1, exhibit an explicit primitive<br />

64-th root of unity a + bi in F ∗ p 2.<br />

9.61. Show that if a + bi is a primitive root of maximum order p 2 − 1inF ∗ p 2<br />

(with p ≡ 3 (mod 4), so that “i” exists), then a 2 +b 2 must be a primitive root<br />

of maximum order p − 1inF ∗ p. Is the converse true?<br />

Give some Mersenne primes p =2 q − 1 for which 6 + i is a primitive root<br />

in F ∗ p 2.<br />

9.62. Prove that the DGT integer convolution Algorithm 9.5.22 works.

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

Saved successfully!

Ooh no, something went wrong!