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.

5.4 GENERATING FUNCTIONS 199<br />

interesting. But when n is even, say n = 2, we get a nontrivial sum that’s<br />

different from Vandermonde’s convolution:<br />

(ii)(;)-(;)(;)+(;)(;) =2(i)-r’= -?.<br />

So (5.55) checks out fine when n = 2. It turns out that (5.30) is a special case<br />

of our new identity (5.55).<br />

Binomial coefficients also show up in some other generating functions,<br />

most notably the following important identities in which the lower index<br />

stays fixed and the upper index varies:<br />

lfyou have a highlighter<br />

pen, these<br />

1<br />

(1 -Z)n+'<br />

= t(nn+k)zk,<br />

k>O<br />

integern30<br />

two equations have<br />

got to be marked. Zk , integer n 3 0.<br />

(5.56)<br />

(5.57)<br />

The second identity here is just the first one multiplied by zn, that is, “shifted<br />

right” by n places. The first identity is just a special case of the binomial<br />

theorem in slight disguise: If we expand (1 - z)-~-’ by (5.13), the coefficient<br />

of zk is (-“,-‘)(-l)“, which can be rewritten as (kl”) or (n:k) by negating<br />

the upper index. These special cases are worth noting explicitly, because they<br />

arise so frequently in applications.<br />

When n = 0 we get a special case of a special case, the geometric series:<br />

1<br />

- zz<br />

1-z<br />

1 +z+z2 +z3 + . . . = X2".<br />

This is the generating function <strong>for</strong> the sequence (1 , 1 , 1, . . . ), and it is especially<br />

useful because the convolution of any other sequence with this one is<br />

the sequence of sums: When bk = 1 <strong>for</strong> all k, (5.54) reduces to<br />

cn = g ak.<br />

k=O<br />

There<strong>for</strong>e if A(z) is the generating function <strong>for</strong> the summands (ao, al , a2, . ),<br />

then A(z)/(l -2) is the generating function <strong>for</strong> the sums (CO,CI ,cz,. . .).<br />

The problem of derangements, which we solved by inversion in connection<br />

with hats and football fans, can be resolved with generating functions in an<br />

interesting way. The basic recurrence<br />

n! = x 0 L (n-k)i<br />

k<br />

k>O

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

Saved successfully!

Ooh no, something went wrong!