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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

476 ASYMPTOTIC23<br />

9 Prove (9.22) rigorously by showing that the left side is a subset of the<br />

right side, according to the set-of-functions definition of 0.<br />

10 Prove or disprove: cos O(x) = 1 + 0(x2) <strong>for</strong> all real x.<br />

11 Prove or disprove: 0(x-t y)2 = 0(x2) + O(y2).<br />

12 Prove that<br />

asn-koc.<br />

1 + f + O(np2) = (1 + f)(l + O(nm2)),<br />

13 Evaluate (n + 2 + O(n I))” with relative error O(n ‘).<br />

14 Prove that (n + a)“+P � = nn+pea(l + ol(@ -- tcY)n-’ + O(n2)).<br />

15 Give an asymptotic <strong>for</strong>m.ula <strong>for</strong> the “middle” trinomial coefficient (n3cn),<br />

3 ,<br />

correct to relative error O(n3).<br />

16 Show that if B(l -x) = -B(x) 3 0 <strong>for</strong> 0 < x < i, we have<br />

s<br />

b<br />

B(H) f(x) dx 3 0<br />

a<br />

if we assume also that f”(x) 3 0 <strong>for</strong> a < x c; b.<br />

17 Use generating functions to show that B,(i) = (2’-“’ - l)B,, <strong>for</strong> all<br />

m 3 0.<br />

18 Find tk (2r)(x with relative error O(np’/4), when a > 0.<br />

Homework exercises<br />

19 Use a <strong>computer</strong> to compare the left and right sides of the approximations<br />

in Table 438, when n = 10, z = a = 0.1, and O(f(n)) = O(f(z)) = 0.<br />

20 Prove or disprove the following estimates, as n + 00:<br />

a o( (&J2) = O(lJ;;12)~<br />

b e(‘+oc’/n))z c e + (0(1/n).<br />

c n! = O(((1 - l/n]nn)n).<br />

21 Equation (9.48) gives the nth prime with relative error O(logn))2. Improve<br />

the relative error to O(logn))3 by starting with another term of<br />

(9.31) in (9.46).<br />

22 Improve (9.54) to O(np3).<br />

23 Push the approximation (9.62) further, getting absolute error O(n--3).<br />

Hint: Let g,, = c/(n + 1) (n + 2) + h,; what recurrence does h,, satisfy?

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

Saved successfully!

Ooh no, something went wrong!