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.

548 ANSWERS TO EXERCISES<br />

1 + a. Hence p1 = (-b + dm)/Zc = 1 + 4; and this implies that<br />

o = -c, b = -2c, p2 = 1 - fi. The generating function now takes the <strong>for</strong>m<br />

z(m - (r + m)z)<br />

G(z) = (1 -22-z2)(1 -2)<br />

-r + (m + 2r)z r<br />

= 2(1-22-z') +2(1-z!<br />

= mz+ (2m-r)z2 +... ,<br />

where r = d/c. Since g2 is an integer, r is an integer. We also have<br />

9 n= a(1 +Jz)n +a(1 -Jz)n+ tr = [cx(l+Jz)"],<br />

and this can hold only if r = -1, because (1 - a)” alternates in sign as<br />

it approaches zero. Hence (a, b, c, d) = *( 1,2, -1,l). Now we find o( =<br />

i (1 + fi m), which is between 0 and 1 only if 0 < m 6 2. Each of<br />

these values actually gives a solution; the sequences (g,,) are (O,O, 1,3,8,. . .),<br />

(0,1,3,8,20 ,... ), and (0,2,5,13,32 ,... ).<br />

7.49 (a) The denominator of (l/(1 - (1 + fl)z) + l/(1 - (1 - &!)z)) is<br />

1 - 22 - z2; hence a,, = 2a,-l + a,-2 <strong>for</strong> n 3 2. (b) True because a,, is even<br />

and -1 < 1 - d < 0. (c) Let<br />

b, = (!?+!t?)n+(v)n<br />

We would like b, to be odd <strong>for</strong> all n > 0, and -1 < (p - Jsi)/Z < 0. Working<br />

as in part (a), we find bo = 2, bl = p, and b, = pb,~-l + i(q - p2)bn. 2 <strong>for</strong><br />

n 3 2. One satisfactory solution has p = 3 and q = 17.<br />

7.50 Extending the multiplication idea of exercise 22, we have<br />

Q = -+ QAQ + QfjQ + QQdQ +..<br />

Replace each n-gon by znm ‘. This substitution behaves properly under multiplication,<br />

because the pasting operation takes an m-gon and an n-gon into<br />

an (m + n - 2)-gon. Thus the generating function is<br />

Q = 1+zQ2+z2Q3+z3Q4+... = I.+*<br />

1 -zQ<br />

and the quadratic <strong>for</strong>mula gives Q = (1 +z-dl - 6z + z2 ) /2z. The coefficient<br />

of z” -’ in this power series is the number of ways to put nonoverlapping<br />

diagonals into a convex n-gon. These coefficients apparently have no closed Give me Legen<strong>for</strong>m<br />

in terms of other quantities that we have discussed in this book, but ~~~~$~j~~~~ a<br />

their asymptotic behavior is known [173, exercise 2.2.1-121.<br />

closed <strong>for</strong>m.

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

Saved successfully!

Ooh no, something went wrong!