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.

178 BINOMIAL COEFFICIENTS<br />

some data <strong>for</strong> checking our results. Here are the nonzero terms and their sums<br />

<strong>for</strong> the first four values of rt.<br />

n Qll<br />

0 (2 =1 =1<br />

’ (3 - (3 =1-l =o<br />

2 (i) - (;) + (i) = 1 - 3 + 1 = -1<br />

3 @-((:)+($)-(;;)+(;)=l-7+15-lO+l= 0<br />

We’d better not try the next case, n = 4; the chances of making an arithmetic<br />

error are too high. (Computing terms like (‘4’) and (‘:) by hand, let alone<br />

combining them with the others, is worthwhile only if we’re desperate.)<br />

So the pattern starts out 1, 0, -1, 0. Even if we knew the next term or<br />

two, the closed <strong>for</strong>m wouldn’t be obvious. But if we could find and prove a<br />

recurrence <strong>for</strong> Q,, we’d probably be able to guess and prove its closed <strong>for</strong>m.<br />

To find a recurrence, we need to relate Qn to Q,--1 (or to Qsmaiier vaiues); but<br />

to do this we need to relate a term like (12:J13), which arises when n = 7 and<br />

k = 13, to terms like (“,;“). This doesn’t look promising; we don’t know<br />

any neat relations between entries in Pascal’s triangle that are 64 rows apart.<br />

The addition <strong>for</strong>mula, our main tool <strong>for</strong> induction proofs, only relates entries<br />

that are one row apart.<br />

But this leads us to a key observation: There’s no need to deal with<br />

entries that are 2”-’ rows apart. The variable n never appears by itself, it’s<br />

always in the context 2”. So the 2n is a red herring! If we replace 2” by m, Oh, the sneakiness<br />

all we need to do is find a closed <strong>for</strong>m <strong>for</strong> the more general (but easier) sum of the instructor<br />

who set that exam.<br />

integer m 3 0;<br />

then we’ll also have a closed <strong>for</strong>m <strong>for</strong> Q,, = Rz~. And there’s a good chance<br />

that the addition <strong>for</strong>mula will give us a recurrence <strong>for</strong> the sequence R,.<br />

Values of R, <strong>for</strong> small m can be read from Table 155, if we alternately<br />

add and subtract values that appear in a southwest-to-northeast diagonal.<br />

The results are:<br />

There seems to be a lot of cancellation going on.<br />

Let’s look now at the <strong>for</strong>mula <strong>for</strong> R, and see if it defines a recurrence.<br />

Our strategy is to apply the addition <strong>for</strong>mula (5.8) and to find sums that

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

Saved successfully!

Ooh no, something went wrong!