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.

I always thought<br />

convolution was<br />

what happens to<br />

my brain when 1<br />

try to do a proof.<br />

7.4 SPECIAL GENERATING FUNCTIONS 339<br />

Thus, <strong>for</strong> example, the case n = 1 of (7.51) should not be regarded as the<br />

power series ,&,O(zn/n!){, l,}/(z), but rather as<br />

z<br />

ln(1 + 2)<br />

= -t(-z)“oll(n-l) = 1 +~z-~zz+... .<br />

II20<br />

Identities (7.53), (7.551, (7.54), and (7.56) are “double generating functions”<br />

or “super generating functions” because they have the <strong>for</strong>m G (w, z) =<br />

t,,, Sm,n~“‘2~. The coefficient of wm is a generating function in the variable<br />

z; the coefficient of 2” is a generating function in the variable w.<br />

7.5 CONVOLUTIONS<br />

The convolution of two given sequences (fo, fl , . . ) = (f,,) and<br />

(SOlSl,. . .) = (gn) is the sequence (f0g0, fog1 + flg0, . . .) = (xkfkgn k).<br />

We have observed in Sections 5.4 and 7.2 that convolution of sequences corresponds<br />

to multiplication of their generating functions. This fact makes it<br />

easy to evaluate many sums that would otherwise be difficult to handle.<br />

Example 1: A Fibonacci convolution.<br />

For example, let’s try to evaluate ~~=, FkFn~-k in closed <strong>for</strong>m. This is<br />

the convolution of (F,) with itself, so the sum must be the coefficient of 2”<br />

in F(z)', where F(z) is the generating function <strong>for</strong> (F,). All we have to do is<br />

figure out the value of this coefficient.<br />

The generating function F(z) is z/( 1 -z-z’), a quotient of polynomials; so<br />

the general expansion theorem <strong>for</strong> rational functions tells us that the answer<br />

can be obtained from a partial fraction representation. We can use the general<br />

expansion theorem (7.30) and grind away; or we can use the fact that<br />

Instead of expressing the answer in terms of C$ and $i, let’s try <strong>for</strong> a closed<br />

<strong>for</strong>m in terms of Fibonacci numbers. Recalling that Q + $ = 1, we have<br />

$“+$” = [z”l j& + &J<br />

( 2- (Q+$)z<br />

= Lz"' (1 - ($z)( 1 _ qjz) = VI<br />

2-z<br />

l-Z-22<br />

= 2F,+, -F,.

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

Saved successfully!

Ooh no, something went wrong!