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.

544 ANSWERS TO EXERCISES<br />

7.24 ntk,+...+k,rn kl . . . k,/m = Fz,+l + FznPl - 2. (Consider the<br />

coefficient [znmll &ln(l/(l -G(z))), where G(z) =z/(l -z)~.)<br />

7.25 The generating function is P(z)/(l - z'~), where P(z) = z + 2z2 +<br />

. . + (m - 1 )z+’ = ((m - 1 )z”‘+’ - mz”’ + z)/( 1 - 2)‘. The denominator<br />

is Q(z) = 1 - zm = (1 - cu’z)(l - w'z)...(l - cumm’z). By the rational<br />

expansion theorem <strong>for</strong> distinct roots, we obtain<br />

nmodm =zp + mg s .<br />

k=l<br />

7.26 (1 - z - z2)5(z) = F(z) leads to 5, = (2(n + l)F, + nF,+1)/5 as in<br />

equation (7.60).<br />

7.27 Each oriented cycle pattern begins with 8 or z or a 2 x k cycle (<strong>for</strong><br />

some k 3 2) oriented in one of two ways. Hence<br />

Qn = Qn-I + Qn-2 +2Qnm 2 +2Qnp3 +...+ZQo<br />

<strong>for</strong> n 3 2; Qo = QI = 1. The generating function is there<strong>for</strong>e<br />

Q(z) = zQ(z) +z'Q(z) +2z'Q(z)/(l -z)+l<br />

= l/(1-z-z2-222/(1-z))<br />

(1 -z)<br />

= (l-2z-2z2+23)<br />

a2/5<br />

=jqq+ c2/5 + 2/5<br />

l-+2z l+z'<br />

and Q,, = (+2n+2 + +~~2nP2 + 2(-1)“)/5 = (($‘l+l - $n+1)/&)2 = Fi,,.<br />

7.28 In general if A(z) = (1 + z + ... + zmp' )B(z), we have A, + A,,, +<br />

A rf2m + “’ = B(1) <strong>for</strong> 0 < r < m. In this case m = 10 and B(z) =<br />

(1+z+~~~+z9)(1+z2+z4+z6+z8)(1+z5).<br />

7.29 F(z)+ F(z)'+ F(z)~ +. . . =z/(l-z-z2-z)=(l/(l-(l+&)z)-<br />

(l/(1 - (1 - vmlJ8, so the answer is ((1 + fi)" - (1 - fi)n)/J8.<br />

7.30 XL=, (2”nm’,Pk) (anbnPk/(l -olz)k+anPkbn/(l -@z)~), by exercise 5.39.<br />

7.31 The dgf is

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

Saved successfully!

Ooh no, something went wrong!