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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

534 ANSWERS TO EXERCISES<br />

6.62 (a) A,, = &?A,-, -- A,-2 and B, = &B, 1 - B,~~2. Incidentally,<br />

we also have &A, + B, = 2A,+, and fig,, - A,, = 2B, 1. (b) A table of<br />

small values reveals that<br />

\/5F,, n even;<br />

Ln, n odd.<br />

(cl WA,+1 - B,-l/A, = l/(Frn+l + 1) because B,A, - B, rA,+l = &<br />

and A,A,+l = &(Fz,+l + 1). Notice that B,/A,+l = (F,/F,+r)[n even] +<br />

(L,/L,+li[n odd]. (d) Similarly, xi=, 1/(F2kmkl - 1) = (Ao/BI - Al/B2) +<br />

.. + (Anm~l/B, - A,/B,+j ) = 2 - A,/B,+, This quantity can also be<br />

expressed as (5F,/L,+l) [n even] + (L,/F,+, ) [n odd].<br />

6.63 (a) [z]. There are [;‘-:I with n, = n and (n - l)[nk’] with n, < n.<br />

(b) (i). Each permutation pr . . on -1 of 11,. . , n- 1) leads to n permutations<br />

n17t2.. .n, = p1 pj 1 n pj+l . . . on-l pi. If p1 . pn 1 has k excedances,<br />

there are k+ 1 values of j that yield k excedances in 7~17~2 . . . n,; the remaining<br />

n- 1~ k values yield k+ 1. I-lence the total number of ways to get k excedances<br />

innln2...nnis(k+l)(“,‘)+((n-l)-(k-l))(z:;)=(t).<br />

6.64 The denominator of (l’,‘) is 24nPvJini, by the proof in exercise 5.72.<br />

The denominator of [ ,I:‘,] is the same, by (6.44), because ((i)) = 1 and<br />

KS)<br />

is even <strong>for</strong> k > 0.<br />

6.65 This is equivalent to saying that (L)/n! is the probability that we<br />

have 1x1 + + xnJ = k, when xl, , x, are independent random numbers<br />

uni<strong>for</strong>mly distributed between 0 and 1. Let yj = (x1 + . . . + Xj ) mod 1. Then<br />

Yl, f.., y,, are independently and uni<strong>for</strong>mly distributed, and 1x1 +. . . + x,J<br />

is the number of descents in the y’s. The permutation of the y’s is random,<br />

and the probability of k descents is the same as the probability of k ascents.<br />

6.66 We have the general <strong>for</strong>mula<br />

((;)) = E (2nr’){n~~:!iik}(-ll”. <strong>for</strong> n > m > 0,<br />

analogous to (6.38). When m = 2 this equals<br />

((I)) = {n:3}~-(2n+l){n~2}+ (‘“:‘){“:‘}<br />

= ;3n+2 - (2n + 3)2n+’ +i(4nz+6n+3).<br />

6.67 ~n(n+~)(n+l)(2H2n-H,)-&n(10n2+9n-1). (It wouldbenice<br />

to automate the derivation of <strong>for</strong>mulas such as this.)

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

Saved successfully!

Ooh no, something went wrong!