09.12.2012 Views

Concrete mathematics : a foundation for computer science

Concrete mathematics : a foundation for computer science

Concrete mathematics : a foundation for computer science

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.

574 ANSWERS TO EXERCISIES<br />

length of the interval of numbers that round to 0. We have /y -01 6 id; also<br />

y-e < Q--i6 andy+c’ > Q-t-:8. There<strong>for</strong>e e+c’ > 6. Andif 6 < min(e, E’),<br />

the rounding does distinguish ij from both y - e and y + 6’. Hence 10Ph” <<br />

l/(k-l)+l/kand 10IPbk 3 l/k; we have bk = log k+O(l). Finally, there<strong>for</strong>e,<br />

Et=, dk = ,& (logk+loglogk+O(l)), which is nlogn+nloglogn+O(n)<br />

by Euler’s summation <strong>for</strong>mula.<br />

9.49 We have H, > lnn+y+ in-’ - &nP2 = f(n), where f(x) is increasing<br />

<strong>for</strong> all x > 0; hence if n 3 ea Y we have H, 3 f(e”-Y) > K. Also H,-, <<br />

Inn + y - in--’ = g(n), where g(x) is increasing <strong>for</strong> all x > 0; hence if<br />

n 6 eaPy we have H,-l $ g(e”--Y) < 01. There<strong>for</strong>e H,-r < OL 6 H, implies<br />

that eaPv+l >n>ea+Y-l. (Sharper results have been obtained by Boas<br />

and Wrench [27].)<br />

9.50 (a) The expected return is ,YlsksN k/(k’HE’) = HN/H~‘, and we<br />

want the asymptotic value to O(N-’ ):<br />

1nN +y+O(N-‘) 6lnlO 6y 361n10 n<br />

n2/6-N-l+O(N-2) = ~n+~~+~~+o(lo-n)*<br />

The coefficient (6 In 1 O)/n2 = 1.3998 says that we expect about 40% profit.<br />

(b) The probability o:f profit is x,, mk-1 such that<br />

3 f(k+ 1)‘.<br />

Now let A(z) = tk>, (z/k)mk. This power series converges <strong>for</strong> all z, because<br />

the terms <strong>for</strong> k > Iz/ are bounded by a geometric series. Also A(n + 1) 3<br />

((n+ l)/n)“‘n 3 f(n+l)‘, hence lim,,,f(n)/A(n) =O.

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

Saved successfully!

Ooh no, something went wrong!