Docsity

Midterm Exam 2 Resolution - Basic Discrete Mathematics | MATH 213, Exams of Discrete Mathematics

Toggle sidebar
bg1
Math 213 F1 Midterm Exam 2 Solutions Prof. A.J. Hildebrand
Grading notes
•Exam statistics: The maximal score was 100 points; the median score was 70.
•Score breakdown: The breakdown per problem is as follows: Problem 1: 30 pts (5 each); Problem
2: 15 pts (7+8); Problem 3: 15 pts (7+8); Problem 4: 20 pts (6+6+8); Problem 5: 10 pts. Problem
6: 10 pts.
•Access to online scores: See the course webpage for a link to the online score system, an explanation
of the score display, and an approximate letter grade correspondence for your total score.
•Solutions: Solutions, along with some remarks about common errors, follow below. Check these
solutions first before asking questions about the grading.
Exam Solutions
1. Quickies. For the questions below, just provide the requested answer—no explanation or
justification required.
As always, answers should be left in raw, unevaluated form, involving binomials, factorials, powers,
etc. (such as 10
323). Do not use notations C(n, k) or P(n, k) in your answers.
All of the questions have a simple answer and require virtually no hand computations. Write legibly
and circle or box your answer.
(a) What is the number of 10-element subsets of a 100 element set? 100
10
(b) What is the number of functions from the set {1,2,...,100}to the set {0,1}? 2100
(c) What is the number of 7-letter upper-case words that contain the letter A? 267−257
(d) What is the number of 7-letter upper-case words, whose letters are distinct and occur in alpha-
betically increasing order. (E.g., BDFKSTX is counted, but not BFDKSTX (since F and D are
not in alphabetical order), nor BDDKSTX (since D is repeated).)
Solution: This was worked out in class. There are 26
7ways to choose the 7 letters,
and exactly one way to place them in alphabetical order, so the total count is 26
7
(e) What is the probability that in 10 rolls of an ordinary die exactly 4 sixes come up? 10
4(1/6)4(5/6)6
(f) Given that P(A) = 0.5, P(B) = 0.8, and A⊆B, what is the conditional probability P(A|B)?
Solution: P(A|B) = P(A∩B)/P (B) = P(A)/P (B) = 0.5/0.8
2. (a) Evaluate the sum
100
0+ 2100
1+ 22100
2+· · · + 299 100
99 + 2100100
100.
Solution: By the Binomial Theorem, the given sum is
100
X
k=0
2k100
k= (2 + 1)100 = 3100
(b) Find the coefficient of x10 in 2x+1
x100.
1
pf3
pf4

Partial preview of the text

Download Midterm Exam 2 Resolution - Basic Discrete Mathematics | MATH 213 and more Exams Discrete Mathematics in PDF only on Docsity!

Grading notes

  • Exam statistics: The maximal score was 100 points; the median score was 70.
  • Score breakdown: The breakdown per problem is as follows: Problem 1: 30 pts (5 each); Problem 2: 15 pts (7+8); Problem 3: 15 pts (7+8); Problem 4: 20 pts (6+6+8); Problem 5: 10 pts. Problem 6: 10 pts.
  • Access to online scores: See the course webpage for a link to the online score system, an explanation of the score display, and an approximate letter grade correspondence for your total score.
  • Solutions: Solutions, along with some remarks about common errors, follow below. Check these solutions first before asking questions about the grading.

Exam Solutions

  1. Quickies. For the questions below, just provide the requested answer—no explanation or justification required. As always, answers should be left in raw, unevaluated form, involving binomials, factorials, powers, etc. (such as

3

23 ). Do not use notations C(n, k) or P (n, k) in your answers. All of the questions have a simple answer and require virtually no hand computations. Write legibly and circle or box your answer.

(a) What is the number of 10-element subsets of a 100 element set?

10

(b) What is the number of functions from the set { 1 , 2 ,... , 100 } to the set { 0 , 1 }? 2100

(c) What is the number of 7-letter upper-case words that contain the letter A? 267 − 257 (d) What is the number of 7-letter upper-case words, whose letters are distinct and occur in alpha- betically increasing order. (E.g., BDFKSTX is counted, but not BFDKSTX (since F and D are not in alphabetical order), nor BDDKSTX (since D is repeated).) Solution: This was worked out in class. There are

7

ways to choose the 7 letters, and exactly one way to place them in alphabetical order, so the total count is

7

(e) What is the probability that in 10 rolls of an ordinary die exactly 4 sixes come up?

4

(1/6)^4 (5/6)^6

(f) Given that P (A) = 0.5, P (B) = 0.8, and A ⊆ B, what is the conditional probability P (A|B)? Solution: P (A|B) = P (A ∩ B)/P (B) = P (A)/P (B) = 0. 5 / 0. 8

  1. (a) Evaluate the sum ( 100 0

+ 2^2

+ · · · + 2^99

+ 2^100

Solution: By the Binomial Theorem, the given sum is

∑^100

k=

2 k

k

= (2 + 1)^100 = 3100

(b) Find the coefficient of x^10 in

2 x + (^1) x

Solution: (This is similar to Problem 5.4:10 from HW 4.) By the binomial theorem ( x +

x

∑^100

k=

(2x)k

x

) 100 −k ( 100 k

∑^100

k=

2 kx^2 k−^100

k

The x^10 term corresponds to k = 55, and its coefficient is 255

  1. Determine the number of ways to arrange the 11 letters of the word MISSISSIPPI under the given conditions. (Note that this word has 4 S’s, 4 I’s, 2 P’s, and 1 M.)

(a) If all 4 I’s must be adjacent (as in MSPIIIIPSMSS). Solution: This is a standard word counting problem that came up in HW 5. The trick is to treat the I-block as a single unit IIII. We then have to count permutations of 4 S’s, 2 P’s, 1 M, and 1 III , a total of 8 symbols. The number of these is

8! 4!2!1!1!

(The numerator, 8!, counts the number of permutations of 8 distinct objects, and the factors 4!, and 2! in the denominator compensate for the repetition of the letters S and P .) Remark: An alternative way to arrive at the correct answer is by filling 8 slots with with 4 S’s, 2 P’s, 1 M, and 1 III , one at a time: There are

4

ways to pick slots for the 4 letters S,

2

ways to pick slots for the 2 letters P ,

1

ways to pick slots for the letter M , and

1

ways to pick the remaining slot for the letter III , This gives a total count of

4

2

1

1

. Expressing the binomial coefficients in terms of factorials and canceling shows that this is the same answer as the one obtained above. (b) If the letters I are not allowed be adjacent. (For example, MISSIISSPPI would not be counted, since it has two adjacent I’s). Solution: This is of the same type as the “win streak” problem discussed in class, or the “men/women in a line” problem from HW 4. There are 4 I’s and 7 other letters. Considering the other letters as separators (“bars”), we have 8 spaces created by these separators in which to place the I’s. There are

4

ways to choose 4 spaces out of these 8 for the 4 I’s. Once the I’s have been placed, we have 7 slots left to fill with the remaining 7 letters. We can do this in (^) 4!2!1!7! ways, by the same argument as above. Hence, the total count is (^) ( 8 4

  1. The following are poker problems. Recall that a card deck consists of 52 cards, split into four equal suits (spades, etc.), of 13 cards each. There are 13 possible kinds of cards (ace, etc.), and a suit contains exactly one of each kind. The following questions concern probabilities for 7-card poker hands, i.e., unordered selections of 7 out of 52 cards.

(a) What is the probability that exactly 2 of the 7 cards are diamonds? Solution: There are

2

ways to choose the 2 diamond cards, and

5

ways to choose 5 cards from the 39 non-diamond cards on the deck. Thus, the probability is ( 13 2

5

7

Your solution must use (a suitable version of) the pigeonhole principle, and must include precise definitions of (i) the “pigeonholes” and (ii) the “pigeons”, along with the counts (“N ”) of pigeons and (“k”) of pigeonholes.

Solution: This is a variation on the “consecutive house number” problem, 5.2:14, from hw 3. Define pigeons and pigeonholes as follows:

  • Pigeons: The numbers in the given set. Count: There are 76 numbers in the set, so N = 76.
  • Pigeonholes: The sets

(1) H 1 = { 1 , 2 , 3 , 4 }, H 2 = { 5 , 6 , 7 , 8 },... , H 25 = { 97 , 98 , 99 , 100 }.

Count: There are 25 such sets, so the number of pigeonholes is k = 25. Since dN/ke = d 76 / 25 e = 4, the generalized pigeonhole principle guarantees that there exists a “pigeonhole” that contains 4 “pigeons”. By the above definition of pigeons and pigeonholes this means one of the sets H 1 ,... , H 25 in (1) contains 4 numbers from the given set, and those 4 numbers must be consecutive, by the definition of the sets Hi. Remarks: (i) In the above application of the pigeonhole principle it is crucial that the pigeonholes be defined precisely as in (1). In particular, the sets must be nonoverlapping in order for the counts to work out. If one were to define the sets as

(1’) { 1 , 2 , 3 , 4 }, { 2 , 3 , 4 , 5 }, { 3 , 4 , 5 , 6 },...

one would end up with a total of 97 sets, and hence 97 pigeonholes. But this is more than the 76 pigeons, so the pigeonhole principle wouldn’t guarantee that some hole contains 4 pigeons. (ii) The number 76 in the problem is best-possible; the statement would be false if 76 were replaced by 75. (An example is the set { 1 , 2 , 3 , 5 , 6 , 7 , 9 , 10 , 11 ,... , 95 , 97 , 98 , 99 } which has 75 elements but no 4 consecutive integers.) In the above argument, the crucial inequality is 76 / 25 > 3. This ensures that some hole has 4 pigeons. With 75 instead of 76, one would have d 75 / 25 e = 3 and the pigeonhole principle would only guarantee that some hole has 3 pigeons, which is not enough. An easy way to convince yourself that an alternate argument cannot possibly be right is to check if it would give the same conclusion when 76 is replaced by 75 (in which case we know the result cannot be true). For example, if the pigeonhole application involves

4

pigeons and 75 pigeonholes, then replacing 76 by 75 would not change the relative numbers of pigeons and pigeonholes.