Exam 9: Counting and Probability
Consider the set of all strings of 's and 's. For each integer , let
an = the number of strings of length n that do not contain the pattern bb.
Find a recurrence relation for . Explain your answer carefully.
First note that there is one string of length zero that does not contain the pattern bb, namely
ϵ, the null string; there are two strings of length one that do not contain the pattern bb, namely
a and b; and there are three strings of length three that do not contain the pattern bb, namely
aa, ab, and ba. Thus the initial conditions for the recurrence relation are Let be any integer with . Any string of length that does not contain the pattern starts either with an or with a . If it starts with an , this can be followed by any string of 's that does not contain the pattern . There are of these. If the string starts with a , then it must be followed by an and that can be followed by any string of length that does not contain the pattern . There are of these. Therefore, for all integers ,
Given any set of 30 integers, must there be two that have the same remainder when they are divided by 25? Write an answer that would convince a good but skeptical fellow student who has learned the statement of the pigeonhole principle but not seen an application like this
one. Either describe the pigeons, the pigeonholes, and how the pigeons get to the pigeonholes, or describe a function by giving its domain, co-domain, and how elements of the domain are related to elements of the co-domain.
Yes.
Solution 1: There are 25 possible remainders that can be obtained when an integer is divided by 12, namely all the integers from 0 through 24. Apply the pigeonhole principle, thinking of the elements of the set of 30 integers as the pigeons and the possible remainders as the pigeonholes. Each pigeon flies into the pigeonhole that is the remainder obtained when it is divided by 25. Since 30 > 25, the pigeonhole principle says that at least two pigeons must fly into the same pigeonhole. So at least two of the numbers must have the same remainder when divided by 25.
Solution 2: Let be the set of 30 integers and the set of all possible remainders obtained through division by 30 , and consider the function from (the pigeons) to (the pigeonholes) defined by the rule: (= the remainder obtained by the integer division of by 25). Now has 30 elements and has 25 elements (the integers from 0 through 24). Hence by the pigeonhole principle, is not one-to-one: for some integers and with . But this means that and have the same remainder when divided by 25 .
Given any set of 15 integers, must there be two that have the same remainder when divided by
12? Write an answer that would convince a good but skeptical fellow student who has learned the statement of the pigeonhole principle but not seen an application like this one. Either describe the pigeons, the pigeonholes, and how the pigeons get to the pigeonholes, or describe
a function by giving its domain, co-domain, and how elements of the domain are related to elements of the co-domain.
Yes.
Solution 1: There are 12 possible remainders that can be obtained when an integer is divided
by 12, namely 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11. Apply the pigeonhole principle, thinking of the elements of the set of 15 integers as the pigeons and the possible remainders as the pigeonholes. Each pigeon flies into the pigeonhole that is the remainder obtained when it is divided by 12. Since 15 > 12, the pigeonhole principle says that at least two pigeons must fly into the same pigeonhole. So at least two of the numbers must have the same remainder when divided by 12.
Solution 2: Let be the set of fifteen integers and the set of all possible remainders obtained through division by 12, and consider the function from (the pigeons) to (the pigeonholes) defined by the rule: the remainder obtained by the integer division of by 12). Now has 15 elements and has 12 elements , . Hence by the pigeonhole principle, is not one-to-one: for some integers and with . But this means that and have the same remainder when divided by 12 .
The binomial theorem states that for any real numbers a and b, for any integer .
Use this theorem to compute
The binomial theorem states that for any real numbers a and b,
Use this theorem to show that for any integer
If five integers are chosen from the set {1, 2, 3, 4, 5, 6, 7, 8}, must there be at least two integers with the property that the larger minus the smaller is 2? Write an answer that would convince a good but skeptical fellow student who has learned the statement of the pigeonhole principle
but not seen an application like this one. Either describe the pigeons, the pigeonholes, and how the pigeons get to the pigeonholes, or describe a function by giving its domain, co-domain, and how elements of the domain are related to elements of the co-domain.
In a certain discrete math class, three quizzes were given. Out of the 30 students in the class: 15 scored 12 or above on quiz #1,
12 scored 12 or above on quiz #2,
18 scored 12 or above on quiz #3,
7 scored 12 or above on quizzes and ,
11 scored 12 or above on quizzes and ,
8 scored 12 or above on quizzes #2 and #3,
4 scored 12 or above on quizzes , #2, and #3.
(a) How many scored 12 or above on at least one quiz?
(b) How many scored 12 or above on quizzes 1 and 2 but not 3?
A screening test for a certain disease is used in a large population of people of whom 1 in 1000 actually have the disease. Suppose that the false positive rate is 1% and the false negative rate is 0.5%. Thus a person who has the disease tests positive for it 99.5% of the time, and a person who does not have the disease tests negative for it 99% of the time.
(a) What is the probability that a randomly chosen person who tests positive for the disease actually has the disease?
(b) What is the probability that a randomly chosen person who tests negative for the disease actually has the disease?
In a certain state, license plates each consist of 2 letters followed by 3 digits.
(a) How many different license plates are there?
(b) How many different license plates are there that have no repeated letters or digits?
Let , and be events in a sample space such that . Suppose that , and . Find each of the following.
(a)
(b)
(c)
Let T be the set {3, 4, 5, 6, 7, 8, 9, 10} and suppose five integers are chosen from T. Must two of these integers have the property that the difference of the larger minus the smaller equals 2? Why or why not? Write an answer that would convince a good but skeptical fellow student who has learned the statement of the pigeonhole principle but not seen an application like this one. Either describe the pigeons, the pigeonholes, and how the pigeons get to the pigeonholes, or describe a function by giving its domain, co-domain, and how elements of the domain are related to elements of the co-domain.
Suppose there are three routes from Byrne Hall to McGaw Hall and five routes from McGaw Hall to Monroe Hall. How many ways is it possible to travel from Byrne Hall to Monroe Hall by way of McGaw Hall?
An urn contains four balls numbered 1, 3, 4, and 6. If a person selects a set of two balls at random, what is the expected value of the product of the numbers on the balls?
A large pile of coins consists of pennies, nickels, dimes, and quarters (at least 20 of each).
(a) How many different collections of 20 coins can be chosen?
(b) How many different collections of 20 coins chosen at random will contain at least 3 coins of each type?
(c) What is the probability that a collection of 20 coins chosen at random will contain at least 3 coins of each type?
Express the following sum in closed form (without using a summation symbol and without using an ellipsis . . . ):
A club has seven members. Three are to be chosen to go as a group to a national meeting.
(a) How many distinct groups of three can be chosen?
(b) If the club contains four men and three women, how many distinct groups of three contain
two men and one woman?
(c) If the club contains four men and three women, how many distinct groups of three contain
at most two men?
(d) If the club contains four men and three women, how many distinct groups of three contain
at least one woman?
(e) If the club contains four men and three women, what is the probability that a distinct
group of three will contain at least one woman?
(f) If two members of the club refuse to travel together as part of the group (but each is
willing to go if the other does not), how many distinct groups of three can be chosen?
(g) If two members of the club insists on either traveling together or not going at all, How
many distinct groups of three can be chosen?
Suppose that a fair coin is tossed ten times.
(a) How many ways can at least eight heads be obtained?
(b) What is the probability of obtaining at least eight heads?
A teacher offers ten possible assignments for extra credit in a course but requires students to choose them, without looking, from a hat. Six assignments involve library research and four are computer programming exercises. Suppose that a student chooses two assignments, one after the other, at random without replacement.
(a) What is the probability that both assignments are computer programming exercises?
(b) What is the probability that at least one of the assignments is a computer programming exercise?
In a certain state, license plates each consist of 2 letters followed by either 3 or 4 digits. How many different license plates are there that have no repeated letters or digits?
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)