

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The solutions to the math 213, section x1 midterm exam held in spring 2006. It includes the solutions to six problems covering topics such as probability calculations, recurrences, generating functions, and power series expansions.
Typology: Exams
1 / 3
This page cannot be seen from the preview
Don't miss anything!


Suppose you roll 4 ordinary dice. Determine the following probabilities:
Solution: By the complement trick, this is 1 − P (no 6 in 4 rolls), i.e., 1 − (5/6)^4.
Solution: This is given by the binomial distribution:
Solution: This is a birthday-type probability:
Consider the recurrence an = − 2 nan− 1.
Solution: By iteration,
an = − 2 nan− 1 = (−2)^2 n(n − 1)an− 2 = · · · = (−2)nn(n − 1)... 2 · 1 a 0 = (−2)nn!.
Let an denote the number of ways to climb n stairs if stairs can be climbed 2 or 3 at a time. Set up a recurrence for an; be sure to clearly explain how each term in this relation arises.
Solution: Consider the last step when climbing n stairs. If this is a 2-stair step, your position before taking this step is at the end of n − 2 stairs, and there are an− 2 ways to reach this position. If it is a 3-stair step, your position before taking the step is at the end of n − 3 stairs, and there are an− 3 ways to reach this position. Since these are the only possibilities for the last step, the sum of these two counts gives the total number of ways to climb n stairs, i.e., we have the recurrence an = an− 2 + an− 3.
Solution: The associated characteristic equation is r^2 − 6 r + 9 = 0, which has a double root at r = 3. Thus, the general solution is of the form an = α 13 n^ + α 2 n 3 n^.
Solution: The nonhomogeneous term is 28n, so we seek a solution of the form (∗) an = An + B with constants A and B. Substituting (∗) into the recurrence, we get
An + B = 6(A(n − 1) + B) − 9(A(n − 2) + B) + 28n = n(− 3 A + 28) + (12A − 3 B).
Equating coefficients of n and of 1 (i.e., the constant terms) on both sides, we get the equations A = − 3 A + 28 and B = 12A − 3 B, so A = 7 and B = 3A = 21. Thus, a particular solution is an = 7n + 21.
x 1 + x 2 + x 3 + x 4 = r,
where x 1 , x 2 , x 3 are arbitrary nonnegative integers, and x 4 is a nonnegative multiple of 10 (i.e., the possible values of x 4 are 0, 10 , 20 ,... ). Simplify your formula as much as possible, e.g., by evaluating power series in closed form.
Solution: There are four factors contributing to G(x), one for each of the four variables. The factors corresponding to x 1 , x 2 , x 3 are (1 + x + x^2 + · · · ) = (1 − x)−^1 each, and the factor corresponding to x 4 is 1 + x^10 + x^20 + · · · = (1 − x^10 )−^1. Thus, G(x) = (1 − x)−^3 (1 − x^10 )−^1.
Solution: Expanding the factors (1 − x)−^3 and (1 − x^10 )−^1 gives
G(x) =
k=
3 + k − 1 k
xk
1 + x^10 + x^20 +...
a 15 is the coefficient of x^15 in the above series, i.e.,
a 15 =
Find the coefficient of x^10 in the power series expansions of the following functions. (Your answer can be left in “raw” form.)
1 + 2x