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.

562 ANSWERS TO EXERCISES<br />

And since gk,O = 91, mr we must have gk,,, = m+n+2mn. (c) The recurrence<br />

is satisfied when mn > 0, because<br />

sin(2mf l)e = &% (<br />

sin(2m- l)tl<br />

4<br />

+ sin(2mt l)G + sin(2m+3)8 .<br />

2 4 1 ’<br />

this is a consequence of the identity sinjx - y) i- sinjx + y) = 2sin x cosy. So<br />

all that remains is to check t.he boundary conditions.<br />

8.50 (a) Using the hint, we get<br />

3(1 42; (‘f) (;z)Yl -Z)2 k<br />

= 3(1 -z)2F (‘f) (i)kF (ktjp3)zj+k;<br />

now look at the coefficient of z3+‘. (b) H(z) == $ + &z + i J& c~+~z~+~.<br />

(c) Let r = J(1 -2)(9-z). 0 ne can show that (z-3+r)(z-3-r) ~42,<br />

and hence that (r/(1 -2)+2)’ = (13-5z+4r)/(l-z) = (9-H(z))/(l -H(z)).<br />

(d) Evaluating the first derivative at z = 1 shows that Mean(H) = 1. The<br />

second derivative diverges at z = 1, so the variance is infinite.<br />

8.51 (a) Let H,(z) be the pgf <strong>for</strong> your holdings after n rounds of play, with<br />

Ho(z) = z. The distribution <strong>for</strong> n rounds is<br />

H,,+liz) = H,(W) ,<br />

so the result is true by induction (using the amazing identity of the preceding<br />

problem). (b) g,, =H,(O)-H, l(O) =4/n(n$-l)(n+2) =4(n-l)A. The<br />

mean is 2, and the variance is infinite. (c) The expected number of tickets you<br />

buy on the nth round is Mean(H,,) = 1, by exercise 15. So the total expected<br />

number of tickets is infinite. (Thus, you almost surely lose eventually, and you<br />

expect to lose after the second game, yet you also expect to buy an infinite<br />

number of tickets.) (d) Now the pgf after n games is H,(z)‘, and the method<br />

of part (b) yields a mean of 16 - 4x2 z 2.8. (The sum t,,, l/k2 = 7rL/6<br />

shows up here.)<br />

8.52 If w and w’ are events with Pr(w) > Pr(w’), then a sequence of<br />

n independent experiments .will encounter cu more often than w’, with high<br />

probability, because w will occur very nearly nPr(w) times. Consequently,<br />

as n + co, the probability approaches 1 that the median or mode of the

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

Saved successfully!

Ooh no, something went wrong!