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.

is somehow involved. So we steer toward that kind of sum:<br />

we have<br />

G(z) = l+t(n+l)g,M+’<br />

= 1 + t ng, zn+l + x gn zn+’<br />

n<br />

= 1 +z’G’(z)+zG(z).<br />

7.3 SOLVING RECURRENCES 333<br />

Let’s check this equation, using the values of g,, <strong>for</strong> small n. Since<br />

G = 1 +z+2z2 + 6z3 +24z4 + ... ,<br />

G’ = 1+42 +18z2+96z3+-.,<br />

z2G’ zz z2+4z3+18z4+96z5+.-,<br />

zG = z+z2 +2z3 + 6z4 +24z5 + ... ,<br />

1 = 1.<br />

“This will be ouick.”<br />

These three lines add up to G, so we’re fine so far. Incidentally, we often find<br />

it convenient to write ‘G’ instead of ‘G(z)‘; the extra ‘(2)’ just clutters up the<br />

<strong>for</strong>mula when we aren’t changing z.<br />

Step 3 is next, and it’s different from what we’ve done be<strong>for</strong>e because we<br />

have a differential equation to solve. But this is a differential equation that<br />

we can handle with the hypergeometric series techniques of Section 5.6; those<br />

techniques aren’t too bad. (Readers who are unfamiliar with hypergeometrics<br />

needn’t worrv- this will be quick.)<br />

That’s what the<br />

doctor said just<br />

First we must<br />

both sides:<br />

get rid of the constant ‘l’, so we take the derivative of<br />

be<strong>for</strong>e he stuck me<br />

with that needle.<br />

Come to think of it,<br />

“hypergeometric”<br />

sounds a lot like<br />

“hypodermic.”<br />

G’ = @‘G’S zG + 1)’ = (2zG’+z’G”)+(G +zG’)<br />

= z2G”+3zG’+G.<br />

The theory in Chapter 5 tells us to rewrite this using the 4 operator, and we<br />

know from exercise 6.13 that<br />

9G = zG’, B2G = z2G” +zG’.<br />

There<strong>for</strong>e the desired <strong>for</strong>m of the differential equation is<br />

4G = ~9~G+224G+zG = z(9+1)‘G.<br />

According to (5.1og), the solution with go = 1 is the hypergeometric series<br />

F(l,l;;z).

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

Saved successfully!

Ooh no, something went wrong!