

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
Problem solutions for homework 10 in the discrete mathematical structures course offered by cs173 at the university of california, berkeley, in the fall 2006 semester. The problems cover various topics such as combinatorics, probability, and number theory.
Typology: Assignments
1 / 2
This page cannot be seen from the preview
Don't miss anything!


CS173: Discrete Mathematical Structures Fall 2006
Due: 8am, November 21, 2006 November 14, 2006 Cinda Heeren
(10 points) How many solutions are there to the equation
x 1 + x 2 + x 3 + x 4 + x 5 + x 6 = 29
where xi, i = 1, 2 , 3 , 4 , 5 , 6 , is a nonnegative integer such that
a) xi > 1 for i = 1, 2 , 3 , 4 , 5 , 6?
b) x 1 ≥ 1 , x 2 ≥ 2 , x 3 ≥ 3 , x 4 ≥ 4 , x 5 ≥ 5 , and x 6 ≥ 6?
c) x 1 ≤ 5?
d) x 1 < 8 and x 2 > 8?
a) (3 points) How many different strings can be made from the letters in M ISSISSIP P I, using all the letters? b) (4 points) How many different strings can be made from the letters in M ISSISSIP P I, using all the letters and having no consecutive Ss?
c) (3 points) How many ways are there to travel in xyzw space from the origin (0, 0 , 0 , 0) to the point (4, 3 , 5 , 4) by taking steps one unit in the positive x, positive y, positive z, or positive w direction?
(10 points) What is the probability of these events when we randomly select a permutation of the 26 lowercase letters of the English alphabet?
a) a is the first letter of the permutation and z is the last letter.
b) y and z are not next to each other in the permutation. (Hint: it might be easier to first think of the probability of y and z being next to each other.) c) a and z are separated by at least 23 letters in the permutation. (Hint: list all possible configurations and then figure out how many permutations each configuration can have. For example, a♦^24 z is a possible configuration) d) z is somewhere in between a and b in the permutation.
(10 points) Assume that the probability a child is a boy is 0.51 and that the sexes of children born into a family are independent. What is the probability that a family of five children has
a) exactly three boys?
b) at least one boy?
c) at least one girl?
d) all children of the same sex?
(10 points) What is the expected sum of the numbers that appear when three fair dice are rolled? (Hint: Note that the expectation of a sum is the sum of the expectations.)