Exam 9: Counting and Probability

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

Consider the set SS of all strings of aa 's and bb 's. For each integer n0n \geq 0 , let an = the number of strings of length n that do not contain the pattern bb. Find a recurrence relation for a1,a2,a3,a _ { 1 } , a _ { 2 } , a _ { 3 } , \ldots . Explain your answer carefully.

Free
(Essay)
4.9/5
(35)
Correct Answer:
Verified

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 a0=1,a1=2, and a2=3a _ { 0 } = 1 , a _ { 1 } = 2 , \text { and } a _ { 2 } = 3 Let kk be any integer with k2k \geq 2 . Any string of length kk that does not contain the pattern bbb b starts either with an aa or with a bb . If it starts with an aa , this can be followed by any string of k1bk - 1 b 's that does not contain the pattern bbb b . There are ak1a _ { k - 1 } of these. If the string starts with a bb , then it must be followed by an aa and that can be followed by any string of length k2k - 2 that does not contain the pattern bbb b . There are ak2a _ { k - 2 } of these. Therefore, for all integers k2k \geq 2 ,
ak=ak1+ak2a _ { k } = a _ { k - 1 } + a _ { k - 2 }

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.

Free
(Essay)
4.9/5
(35)
Correct Answer:
Verified

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 XX be the set of 30 integers and YY the set of all possible remainders obtained through division by 30 , and consider the function RR from XX (the pigeons) to YY (the pigeonholes) defined by the rule: R(n)=nmod25R ( n ) = n \bmod 25 (= the remainder obtained by the integer division of nn by 25). Now XX has 30 elements and YY has 25 elements (the integers from 0 through 24). Hence by the pigeonhole principle, RR is not one-to-one: R(n1)=R(n2)R \left( n _ { 1 } \right) = R \left( n _ { 2 } \right) for some integers n1n _ { 1 } and n2n _ { 2 } with n1n2n _ { 1 } \neq n _ { 2 } . But this means that n1n _ { 1 } and n2n _ { 2 } 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.

Free
(Essay)
4.8/5
(24)
Correct Answer:
Verified

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 XX be the set of fifteen integers and YY the set of all possible remainders obtained through division by 12, and consider the function RR from XX (the pigeons) to YY (the pigeonholes) defined by the rule: R(n)=nmod12(=R ( n ) = n \bmod 12 ( = the remainder obtained by the integer division of nn by 12). Now XX has 15 elements and YY has 12 elements (0,1,2,3,4,5,6,7,8( 0,1,2,3,4,5,6,7,8 , 9,10,11)9,10,11 ) . Hence by the pigeonhole principle, RR is not one-to-one: R(n1)=R(n2)R \left( n _ { 1 } \right) = R \left( n _ { 2 } \right) for some integers n1n _ { 1 } and n2n _ { 2 } with n1n2n _ { 1 } \neq n _ { 2 } . But this means that n1n _ { 1 } and n2n _ { 2 } have the same remainder when divided by 12 .

 Prove for all integers n,k, and r with nkr that (nk)(kr)=(nr)(nrkr)\text { Prove for all integers } n , k \text {, and } r \text { with } n \geq k \geq r \text { that } \left( \begin{array} { l } n \\k\end{array} \right) \left( \begin{array} { l } k \\r\end{array} \right) = \left( \begin{array} { l } n \\r\end{array} \right) \left( \begin{array} { l } n - r \\k - r\end{array} \right) \text {. }

(Essay)
4.8/5
(30)

The binomial theorem states that for any real numbers a and b, (a+b)n=k=0n(nk)ankbk( a + b ) ^ { n } = \sum _ { k = 0 } ^ { n } \left( \begin{array} { l } n \\ k \end{array} \right) a ^ { n - k } b ^ { k } for any integer n0n \geq 0 . Use this theorem to compute (2x1)5( 2 x - 1 ) ^ { 5 }

(Essay)
4.8/5
(32)

The binomial theorem states that for any real numbers a and b, (a+b)n=k=0n(nk)ankbk for any integer n0( a + b ) ^ { n } = \sum _ { k = 0 } ^ { n } \left( \begin{array} { l } n \\k\end{array} \right) a ^ { n - k } b ^ { k } \quad \text { for any integer } n \geq 0 Use this theorem to show that for any integer n0,k=0n(1)k(nk)3nk2k=1n \geq 0 , \sum _ { k = 0 } ^ { n } ( - 1 ) ^ { k } \left( \begin{array} { l } n \\k\end{array} \right) 3 ^ { n - k } 2 ^ { k } = 1

(Essay)
4.8/5
(34)

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.

(Essay)
5.0/5
(31)

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 #1\# 1 and #2\# 2 , 11 scored 12 or above on quizzes #1\# 1 and #3\# 3 , 8 scored 12 or above on quizzes #2 and #3, 4 scored 12 or above on quizzes #1\# 1 , #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?

(Essay)
4.9/5
(32)

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?

(Essay)
4.7/5
(31)

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?

(Essay)
4.8/5
(30)

Let A,BA , B , and CC be events in a sample space SS such that S=ABCS = A \cup B \cup C . Suppose that P(A)=0.3,P(B)=0.6P ( A ) = 0.3 , P ( B ) = 0.6 , and P(AB)=0.2P ( A \cap B ) = 0.2 . Find each of the following. (a) P(AB)P ( A \cup B ) (b) P(C)P ( C ) (c) P(AcBc)P \left( A ^ { c } \cup B ^ { c } \right)

(Essay)
5.0/5
(29)

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.

(Essay)
4.8/5
(39)

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?

(Essay)
4.8/5
(38)

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?

(Essay)
4.9/5
(38)

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?

(Essay)
4.8/5
(32)

Express the following sum in closed form (without using a summation symbol and without using an ellipsis . . . ): k=0n(nk)7k\sum _ { k = 0 } ^ { n } \left( \begin{array} { l } n \\k\end{array} \right) 7 ^ { k }

(Essay)
4.7/5
(27)

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?

(Essay)
4.9/5
(36)

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?

(Essay)
4.7/5
(34)

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?

(Essay)
4.8/5
(32)

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?

(Essay)
4.9/5
(34)
Showing 1 - 20 of 25
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)