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.

9.4 TWO ASYMPTOTIC TRICKS 455<br />

“We may not be big, Since Llgnj ! grows faster than any power of n, this minuscule error is overbut<br />

we’re small.” whelmed by X,(n) == O(nP3). The error that comes from the original tail,<br />

is smaller yet.<br />

Finally, it’s easy to sum t k20 bk(n) in closed <strong>for</strong>m, and we have obtained<br />

the desired asymptotic <strong>for</strong>mula:<br />

ln(n + 2k)<br />

t k’<br />

k20 ’<br />

e2 e4<br />

= elnnt---+0<br />

n<br />

The method we’ve used makes it clear that, in fact,<br />

k20<br />

ln(n + 2k)<br />

k!<br />

m-1<br />

= elnn+ ~(-l)k+l&+O(-&)j<br />

k=l<br />

(w%)<br />

(9.66)<br />

<strong>for</strong> any fixed m > 0. (This is a truncation of a series that diverges <strong>for</strong> all<br />

fixed n if we let m -+ co.)<br />

There’s only one flaw in our solution: We were too cautious. We derived<br />

(9.64) on the iassumption that k < [lgn], but exercise 53 proves that<br />

the stated estimate is actually valid <strong>for</strong> all values of k. If we had known<br />

the stronger general result, we wouldn’t have had to use the two-tail trick;<br />

we could have gone directly to the final <strong>for</strong>mula! But later we’ll encounter<br />

problems where exchange of tails is the only decent approach available.<br />

9.5 EULER’S SUMMATION FORMULA<br />

And now <strong>for</strong> our next trick-which is, in fact, the last important<br />

technique that will be discussed in this book-we turn to a general method of<br />

approximating sums that was first published by Leonhard Euler [82] in 1732.<br />

(The idea is sometimes also associated with the name of Colin Maclaurin,<br />

a professor of <strong>mathematics</strong> at Edinburgh who discovered it independently a<br />

short time later [211, page 3051.)<br />

Here’s the <strong>for</strong>mula:<br />

x f(k) = 1” f(x)dx + L$f+‘)(x)ib + R , , b67)<br />

a

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

Saved successfully!

Ooh no, something went wrong!