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.

340 GENERATING FUNCTIONS<br />

F(z)' = i x (n + 1 )(;!F,+r -F,,)2- ; x F,+I .zn ,<br />

7x30 Tl30<br />

and we have the answer we seek:<br />

if<br />

k=O<br />

FkFn-k = 2nF,+ 1--(n+l)F,<br />

5<br />

(7.60)<br />

For example, when n = 3 this <strong>for</strong>mula gives F,JF~ + FlF2 + FzFl + F~F,J =<br />

0+ 1 +1 +0 =2 on the left and (6F4 -4F3)/5 � = (18-8)/5 =2 on the right.<br />

Example 2: Harmonic convolutions.<br />

The efficiency of a certain <strong>computer</strong> method called “samplesort” depends<br />

on the value of the sum<br />

integers m,n 3 0.<br />

Exercise 5.58 obtains the value of this sum by a somewhat intricate double<br />

induction, using summation factors. It’s much easier to realize that Tm,n is<br />

just the nth term in the convolution of ((i), (A), (i), . . .) with (0, $, i, . . .).<br />

Both sequences have simple generating functions in Table 321:<br />

There<strong>for</strong>e, by (7.43),<br />

T<br />

zm<br />

zn = --.<br />

(1 -z)nl+l '<br />

m<br />

xg = ln&.<br />

n>O<br />

1 1 1<br />

m,n = [z”l (, _“,,,,l In 1-z = 'z"-"' (1 -Z)m+l I n -<br />

= U-k’-LJ nnm .<br />

( ><br />

In fact, there are many more sums that boil down to this same sort of<br />

convolution, because we have<br />

1 1<br />

(1 -z)'+s+2 In-<br />

<strong>for</strong> all T and s. Equating coefficients of 2” gives the general identity<br />

; (‘:“) (s+nl;k)IH,+d-&)<br />

= (r+s+n,L+l)(H.+s+n+~ -H,+,+I) (7.61)

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

Saved successfully!

Ooh no, something went wrong!