06.03.2017 Views

Mathematics for Computer Science

e9ck2Ar

e9ck2Ar

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

“mcs” — 2017/3/3 — 11:21 — page 700 — #708<br />

700<br />

Chapter 16<br />

Generating Functions<br />

Let T n be the number of different combinations of n mishaps Dan can suffer in one<br />

day. For example, T 3 D 7, because there are seven possible combinations of three<br />

mishaps:<br />

spills 0 1 0 1 1 0 0<br />

falls 0 0 1 1 0 1 0<br />

stubs 3 2 2 1 0 0 1<br />

blurts 0 0 0 0 2 2 2<br />

(a) Express the generating function<br />

as a quotient of polynomials.<br />

T .x/ WWD T 0 C T 1 x C T 2 x 2 C <br />

(b) Put integers in the boxes that make this equation true:<br />

g.x/ D 1 x<br />

C .1 x/<br />

2<br />

(c) Write a closed-<strong>for</strong>m expression <strong>for</strong> T n :<br />

Problems <strong>for</strong> Section 16.4<br />

Practice Problems<br />

Problem 16.13.<br />

Let b, c, a 0 , a 1 , a 2 ,. . . be real numbers such that<br />

a n D b.a n<br />

1 / C c<br />

<strong>for</strong> n 1.<br />

Let G.x/ be the generating function <strong>for</strong> this sequence.<br />

(a) Express the coefficient of x n <strong>for</strong> n 1 in the series expansion of bxG.x/ in<br />

terms of b and a i <strong>for</strong> suitable i.

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

Saved successfully!

Ooh no, something went wrong!