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.

9.7 Exercises 525<br />

two (and thus, mere shifts). The theoretical minimum is, of course, seven<br />

multiplies, but such a nine-mul version has its advantages.<br />

(3) Use Toom–Cook ideas to develop an explicit length-4 negacyclic scheme<br />

that does require only seven multiplies.<br />

(4) Can one use a length-(D > 2) negacyclic to develop a Karatsuba-like<br />

multiply that is asymptotically better than O (ln D) ln 3/ ln 2 ?<br />

(5) Show how to use a Walsh–Hadamard transform to effect a length-16 cyclic<br />

convolution in 43 multiplies [Crandall 1996a]. Though the theoretical<br />

minimum multiply count for this length is 27, the Walsh–Hadamard<br />

scheme has no troublesome constant coefficients. The scheme also appears<br />

to be a kind of bridge between Winograd complexities (linear in N) and<br />

transform-based complexities (N ln N). Indeed, 43 is not even as large as<br />

16 lg 16. Incidentally, the true complexity of the Walsh–Hadamard scheme<br />

is still unknown.<br />

9.40. Prove Theorem 9.5.13 by way of convolution ideas, along the following<br />

lines. Let N =2· 3 · 5 ···pm be a consecutive prime product, and define<br />

rN(n) =#{(a, b) : a + b = n; gcd(a, N) =gcd(b, N) =1;a, b ∈ [1,N − 1]},<br />

that is, rN(n) is the number of representations we wish to bound below. Now<br />

define a length-N signal y by yn =1ifgcd(n, N) = 1, else yn = 0. Define the<br />

cyclic convolution<br />

RN(n) =(y × y)n,<br />

and argue that for n ∈ [0,N − 1],<br />

RN(n) =rN(n)+rN(N + n).<br />

In other words, the cyclic convolution gives us the combined representations<br />

of n and N + n. Next, observe that the Ramanujan sum Y (9.26) is the DFT<br />

of y, sothat<br />

RN(n) = 1<br />

N−1 <br />

N<br />

k=0<br />

Y 2<br />

k e 2πikn/N .<br />

Now prove that R is multiplicative, in the sense that if N = N1N2 with N1,N2<br />

coprime, then RN(n) =RN1(n)RN2(n). Conclude that<br />

RN(n) =ϕ2(N,n),<br />

where ϕ2 is defined in the text after Theorem 9.5.13. So now we have a closed<br />

form for rN(n)+rN(N + n). Note that ϕ2 is positive if n is even. Next, argue<br />

that if a + b = n (i.e., n is representable) then 2N − n is also representable.<br />

Conclude that if rN(n) > 0 for all even n ∈ [N/2+1,N−1], then all sufficiently<br />

large even integers are representable. This means that all we have to show is<br />

that for n even in [N/2+1,N − 1], rN(n + N) is suitably small compared to

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

Saved successfully!

Ooh no, something went wrong!