



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Student name: Student ID:
MATH 61 (Butler) Midterm II, 12 November 2008
This test is closed book and closed notes, with the exception that you are allowed one 812 ′′× 11 ′′^ page of handwritten notes. No calculator is allowed for this test. For full credit show all of your work (legibly!), unless otherwise specified. Each problem is worth 10 points.
We can draw out 36 balls and not have what we need by drawing six balls in each of six colors. So 36 balls cannot guarantee a solution.
If we draw out 37 balls then we group them by colors. If there are seven or more colors then we must have seven balls no two of which are the same color. If there are six or fewer then by the pigeon hole principle some color grouping must have at least seven balls. Either way we have an acceptable situation and so 37 is enough to guarantee a solution.
(i) We can only move one disc at a time.
(ii) We can never put a larger disc over a smaller disc.
(iii) We can not move a disc directly from A to C or from C to A.
So for example, if n = 1 we now need two moves to transfer from pole A to pole C, first move from A to B and second move from B to C.
(a) Let Rn be the minimal number of moves needed to move all n discs from pole A to pole C. Set up a recurrence for Rn, explain your reasoning behind the recurrence.
Proceeding as in the tower of Hanoi problem we think about how to move a stack of n discs. We can break it into the following five steps:
Adding it up we have
Rn = Rn− 1 + 1 + Rn− 1 + 1 + Rn− 1 = 3Rn− 1 + 2.
(b) Solve the recurrence in part (a).
This is a constant coefficient linear nonhomogeneous recurrence relation. Substituting Rn = an + B we get that
an+1 + B = 3(an + B) + 2 = 3ab + (3B + 2).
Choosing B = −1 this will reduce it to an+1 = 3an which has solutions of the form an = C 3 n. So we have that Rn = C 3 n^ − 1. Since R 1 = 2 = 3C − 1 we see that C = 1 and so Rn = 3n^ − 1.
an = 2
√ (an− 1 + an− 2 )(an− 1 − an− 2 ) for n ≥ 2 ,
with initial conditions a 0 = 1, a 1 = 2.
We first square both sides to get
a^2 n = 4(an− 1 + an− 2 )(an− 1 − an− 2 ) = 4a^2 n− 1 − 4 a^2 n− 2.
Substitute bn = a^2 n to turn this into the linear homogeneous recursion
bn = 4bn− 1 − 4 bn− 2.
This becomes r^2 − 4 r + 4 = 0 or (r − 2)^2 = 0 so that we have repeated roots 2 , 2. So we have that
a^2 n = bn = A 2 n^ + Bn 2 n^ or an =
A 2 n^ + Bn 2 n.
Initial conditions give us 1 =
A so that A = 1 and 2 =
2 + 2B so that B = 2. Thus our final solution is
an =
√ (n + 1)2n.
(a) Find a walk that starts and ends at vertex 1 of length 11 so that each edge in the graph is used at least once.
One such path is (1, 5 , 5 , 1 , 2 , 6 , 3 , 4 , 1 , 3 , 2 , 1).
(b) Explain why 11 is the smallest number of edges needed to find a walk that starts and ends at vertex 1 and uses each edge at least once.
There are 9 edges. So we only need to show that two of the edges must be used twice. Since we must go to 5 and return from 5 the edge connecting 1 and 5 must be used twice. Consider the vertex 2, this has degree 3 and so we must visit it more than once (a first visit can only use two of the three edges). After a second visit we will have used four edges incident to 2 but there are only three edges so one edge must be used twice.