




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!





Name:
Student ID:
Midterm #1 Solutions
October 19, 2009
Each problem is worth 20 points. Show your work to the extent you think necessary. Addi- tional scratch paper is available at the front of the room. This is a CLOSED BOOK test. However, you may use one 8 1/2 by 11 inch sheet of paper with hand-written notes (on both sides). You can use a calculator if you wish but it won’t be necessary since answers can be left in unexpanded form, i.e., using! and
(x y
. Good luck!
4 I’s, 2 N’s, 2 S’s, and 9 letters appearing once, thus
( 17 4
i=
i 1
9 times
The complement of “at least one duplicated digit” is “at most zero duplicated digits”. The total number of strings is 10^5 , and the total number of strings with no duplicated digits is 105 , giving the result 105 − 105.
The handing out of notebooks and pens is not related, thus we can solve each part separately. Giving out 12 pens but ensuring that each person gets at least 1 is the same as giving each person 1 right away, and distributing the remaining 6; this is thus bars and stars, and there are (^) ( 6 + 6 − 1 6 − 1
combinations. For the notebooks, the constraint that each girl gets exactly one removes 3 notebooks and 3 people from consideration; thus, again using bars and stars, the number of ways is (^) ( 2 + 3 − 1 3 − 1
Again, these choices did not influence one another, thus the answer is their product: ( 11 5
Guess the answer and prove that it is correct by mathematical induction.
The task is to obtain a closed form expression Ψ(n) =
∑n i=1(2i^ −^ 1). The first few terms are
n 1 2 3 4 Ψ(n) 1 4 9 16
From this, a good guess is
(1) Ψ(n) =
∑^ n
i=
(2i − 1) = n^2.
Note that in class we derived
∑n i=1 i^ =^
(n+ 2
, so
Ψ(n) =
∑^ n
i=
(2i − 1) = 2
∑^ n
i=
i −
∑^ n
i=
1 = n(n + 1) − n = n^2.
Proof of (1). Base case:
∑n i=1(2i^ −^ 1) = 2^ −^ 1 = 1 = 1
Inductive step:
∑n+ i=1 (2i^ −^ 1) =^
∑n i=1(2i^ −^ 1) + (2n^ + 1) =^ n
(^2) + 2n + 1 = (n + 1) (^2).
Scratch paper