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.

7 EXERCISES 361<br />

25 Let m 3 2 be an integer. What is a closed <strong>for</strong>m <strong>for</strong> the generating<br />

function of the sequence (n mod m), as a function of z and m? Use<br />

this generating function to express ‘n mod m’ in terms of the complex<br />

number w = eilniirn. (For example, when m = 2 we have w = -1 and<br />

nmod2= i -5(-l)“.)<br />

26 The second-order Fibonacci numbers (5,) are defined by the recurrence<br />

50 = 0; 51 = 1;<br />

5, = 5n-I + 54 + F, , <strong>for</strong> n > 1.<br />

Express 5, in terms of the usual Fibonacci numbers F, and F,+r .<br />

27 A 2 x n domino tiling can also be regarded as a way to draw n disjoint<br />

lines in a 2 x n array of points:<br />

If we superimpose two such patterns, we get a set of cycles, since every<br />

point is touched by two lines. For example, if the lines above are<br />

combined with ,the lines<br />

the result is<br />

The same set of cycles is also obtained by combining<br />

I I z z :I I I with 1 - - 1 - -<br />

- - --’<br />

But we get a unique way to reconstruct the original patterns from the<br />

superimposed ones if we assign orientations to the vertical lines by using<br />

arrows that go alternately up/down/up/down/. . . in the first pattern and<br />

alternately down/up/down/up/. . in the second. For example,<br />

The number of such oriented cycle patterns must there<strong>for</strong>e be Tz = Fi,, ,<br />

and we should be able to prove this via algebra. Let Q,, be the number<br />

of oriented 2 x n cycle patterns. Find a recurrence <strong>for</strong> Qn, solve it with<br />

generating functions, and deduce algebraically that Qn = Fi,, .<br />

28 The coefficients of A(z) in (7.89) satisfy A,+A,+ro+A,+20+Ar+30 = 100<br />

<strong>for</strong> 0 < r < 10. Find a “simple” explanation <strong>for</strong> this.

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

Saved successfully!

Ooh no, something went wrong!