next up previous
Next: About this document

 COS 341, November 5, 1997

Handout Nomver 12

Midterm Solutions

Problem 1 There are four ways to cut off three corners of the board. Whether the resulting board can be covered perfectly does not depend on which way one chooses (any one can be rotated into another). Thus, it suffices to prove it for any particular choice of three corners.

Label the 81 cells as cell-(i,j) with tex2html_wrap_inline106 , with the SW-corner cell as the origin cell-(0,0). We show that if cut off all the four corners except cell-(8,8), the resulting board cannot be covered perfectly.

Color the cells with three colors 0,1,2, with cell-(i,j) in color tex2html_wrap_inline116 . Then there are exactly 27 cells of each color. If we cut off the three corners cells-(0,0), (0, 8), (8,0), the resulting board will have 26 cells of color 0, 27 cells of color 1, and 25 cells of color 2. Since each trimino must occupy one cell of each color, this board cannot be covered perfectly. Problem 2 From binomial theorem,

displaymath88

Let tex2html_wrap_inline134 . Then

equation33

(a) The sought-after answer is by (1) equal to

displaymath89

(b) Let A be the answer. Let g(x) = xf(x). Then from (1)

displaymath90

and hence

displaymath91

Thus,

eqnarray44

Now by definition

eqnarray51

This, together with (2), implies

displaymath92

Problem 3 Solution 1 (a) From the recurrence, tex2html_wrap_inline140 . Let tex2html_wrap_inline142 for tex2html_wrap_inline144 . Then tex2html_wrap_inline146 , and for n>1 we have the recurrence tex2html_wrap_inline150 . This leads to

displaymath93

It follows that for tex2html_wrap_inline144 we have tex2html_wrap_inline154 . (b) From the recurrence, tex2html_wrap_inline156 , and tex2html_wrap_inline158 . The recurrence gives for n>0

displaymath94

Let tex2html_wrap_inline162 for tex2html_wrap_inline144 . Then tex2html_wrap_inline166 , and for tex2html_wrap_inline168 we have the recurrence tex2html_wrap_inline170 . This leads to

eqnarray73

It follows that for tex2html_wrap_inline168 we have tex2html_wrap_inline174 .

Solution 2 (a) Calculate the first few tex2html_wrap_inline176 , and see a pattern tex2html_wrap_inline178 . Conjecture that tex2html_wrap_inline180 for tex2html_wrap_inline144 , and then prove by induction as follows. The base case n=1 is clearly true since we have calculated tex2html_wrap_inline186 . For the inductive step let m>1 and assume that we have proved tex2html_wrap_inline180 for all tex2html_wrap_inline192 . Then the recurrence gives tex2html_wrap_inline194 . This completes the induction.

(b) Calculate the first few tex2html_wrap_inline176 , and see a pattern tex2html_wrap_inline198 . Conjecture that tex2html_wrap_inline200 for tex2html_wrap_inline168 , and then prove by induction as follows. The base case n=2 is clearly true since we have calculated tex2html_wrap_inline206 . For the inductive step let m>2 and assume that we have proved tex2html_wrap_inline200 for all tex2html_wrap_inline212 . Then the recurrence gives tex2html_wrap_inline214 . This completes the induction.




next up previous
Next: About this document

Andrew Yao
Tue Nov 4 19:44:16 EST 1997