68 problems found
\(47231\) is a five-digit number whose digits sum to \(4+7+2+3+1 = 17\,\).
Solution:
A pack of cards consists of \(n+1\) cards, which are printed with the integers from \(0\) to \(n\). A~game consists of drawing cards repeatedly at random from the pack until the card printed with 0 is drawn, at which point the game ends. After each draw, the player receives \(\pounds 1\) if the card drawn shows any of the integers from \(1\) to \(w\) inclusive but receives nothing if the card drawn shows any of the integers from \(w+1\) to \(n\) inclusive.
Three pirates are sharing out the contents of a treasure chest containing \(n\) gold coins and \(2\) lead coins. The first pirate takes out coins one at a time until he takes out one of the lead coins. The second pirate then takes out coins one at a time until she draws the second lead coin. The third pirate takes out all the gold coins remaining in the chest. Find:
Solution:
Explain why, if \(\mathrm{A, B}\) and \(\mathrm{C}\) are three events, \[ \mathrm{P(A \cup B \cup C) = P(A) + P(B) + P(C) - P(A \cap B) - P(B \cap C) - P(C \cap A) +P(A \cap B \cap C)}, \] where \(\mathrm{P(X)}\) denotes the probability of event \(\mathrm{X}\). A cook makes three plum puddings for Christmas. He stirs \(r\) silver sixpences thoroughly into the pudding mixture before dividing it into three equal portions. Find an expression for the probability that each pudding contains at least one sixpence. Show that the cook must stir 6 or more sixpences into the mixture if there is to be less than \({1 \over 3}\) chance that at least one of the puddings contains no sixpence. Given that the cook stirs 6 sixpences into the mixture and that each pudding contains at least one sixpence, find the probability that there are two sixpences in each pudding.
Solution:
If a football match ends in a draw, there may be a "penalty shoot-out". Initially the teams each take 5 shots at goal. If one team scores more times than the other, then that team wins. If the scores are level, the teams take shots alternately until one team scores and the other team does not score, both teams having taken the same number of shots. The team that scores wins. Two teams, Team A and Team B, take part in a penalty shoot-out. Their probabilities of scoring when they take a single shot are \(p_A\) and \(p_B\) respectively. Explain why the probability \(\alpha\) of neither side having won at the end of the initial \(10\)-shot period is given by $$\alpha =\sum_{i=0}^5\binom{5}{i}^2(1-p_A)^i(1-p_B)^i\,p_A^{5-i}p_B^{5-i}.$$ Show that the expected number of shots taken is \(\displaystyle 10+ \frac{2\alpha}\beta\;,\) where \(\beta=p_A+p_B-2p_Ap_B\,.\)
Solution: Note that in the first \(10\)-short period the number of goals scored by each team is \(B(5, \p_i)\). For them to be equal they must both have scored the same number of goals, ie \begin{align*} && \alpha &= \sum_{i=0}^5 \mathbb{P}(\text{both teams score }5-i) \\ &&&= \sum_{i=0}^5 \binom{5}{i} (1-p_A)^ip_A^{5-i} \binom{5}{i} (1-p_B)^i p_B^{5-i} \\ &&&= \sum_{i=0}^5 \binom{5}{i} ^2(1-p_A)^i (1-p_B)^i p_A^{5-i} p_B^{5-i} \\ \end{align*} Suppose we make it to the end of the shoot out with scores tied. The probability that we finish each round is \(p_A(1-p_B) + p_B(1-p_A)\) (the probability \(A\) wins or \(B\) wins). This is \(p_A + p_B - 2p_Ap_B = \beta\)). Therefore the number of additional rounds is geometric with parameter \(\beta\) and the expected number of rounds is \(\frac{1}{\beta}\). Each round has two shots, and there is a probability \(\alpha\) of this occuring, ie \(\frac{2\alpha}{\beta}\). Added to the \(10\) guaranteed shots we get the desired result
Four students, Arthur, Bertha, Chandra and Delilah, exchange gossip. When Arthur hears a rumour, he tells it to one of the other three without saying who told it to him. He decides whom to tell by choosing at random amongst the other three, omitting the ones that he knows have already heard the rumour. When Bertha, Chandra or Delilah hear a rumour, they behave in exactly the same way (even if they have already heard it themselves). The rumour stops being passed round when it is heard by a student who knows that the other three have already heard it. Arthur starts a rumour and tells it to Chandra. By means of a tree diagram, or otherwise, show that the probability that Arthur rehears it is \(3/4\). Find also the probability that Bertha hears it twice and the probability that Chandra hears it twice.
Solution: Without loss of generality, \(C\) will tell \(B\) about the rumour. If \(B\) tells \(D\) then \(D\) can either tell \(A\) or \(C\) at which point either \(A\) is told or the rumour stops spreading.
On the basis of an interview, the \(N\) candidates for admission to a college are ranked in order according to their mathematical potential. The candidates are interviewed in random order (that is, each possible order is equally likely).
Solution:
A bag contains \(b\) black balls and \(w\) white balls. Balls are drawn at random from the bag and when a white ball is drawn it is put aside.
I have \(k\) different keys on my key ring. When I come home at night I try one key after another until I find the key that fits my front door. What is the probability that I find the correct key in exactly \(n\) attempts in each of the following three cases?
Every person carries two genes which can each be either of type \(A\) or of type \(B\). It is known that \(81\%\) of the population are \(AA\) (i.e. both genes are of type \(A\)), \(18\%\) are \(AB\) (i.e. there is one gene of type \(A\) and one of type \(B\)) and \(1\%\) are \(BB\). A child inherits one gene from each of its parents. If one parent is \(AA\), the child inherits a gene of type \(A\) from that parent; if the parent is \(BB\), the child inherits a gene of type \(B\) from that parent; if the parent is \(AB\), the inherited gene is equally likely to be \(A\) or \(B\).
A group of biologists attempts to estimate the magnitude, \(N\), of an island population of voles ({\it Microtus agrestis}). Accordingly, the biologists capture a random sample of 200 voles, mark them and release them. A second random sample of 200 voles is then taken of which 11 are found to be marked. Show that the probability, \(p_N\), of this occurrence is given by $$ p_N = k{{{\big((N-200)!\big)}^2} \over {N!(N-389)!}}, $$ where \(k\) is independent of \(N\). The biologists then estimate \(N\) by calculating the value of \(N\) for which \(p_N\) is a maximum. Find this estimate. All unmarked voles in the second sample are marked and then the entire sample is released. Subsequently a third random sample of 200 voles is taken. Write down the probability that this sample contains exactly \(j\) marked voles, leaving your answer in terms of binomial coefficients. Deduce that $$ \sum_{j=0}^{200}{389 \choose j}{3247 \choose {200-j}} = {3636 \choose 200}. $$
Solution: There will be \(200\) marked vols out of \(N\), and we are finding \(11\) of them. There are \(\binom{200}{11}\) ways to chose the \(11\) marked voles and \(\binom{N - 200}{200-11}\) ways to choose the unmarked voles. The total number of ways to choose \(200\) voles is \(\binom{N}{200}\). Therefore the probability is \begin{align*} p_N &= \frac{\binom{200}{11} \cdot \binom{N - 200}{200-11}}{\binom{N}{200}} \\ &= \binom{200}{11} \cdot \frac{ \frac{(N-200)!}{(189)!(N - 389)!} }{\frac{N!}{(N-200)!(200)!}} \\ &= \binom{200}{11} \frac{200!}{189!} \frac{\big((N-200)!\big)^2}{N!(N-389)!} \end{align*} As required and \(k = \binom{200}{11} \frac{200!}{189!}\). We want to maximise \(\frac{(N-200)!^2}{N!(N-389)!}\), we will do this by comparing consecutive \(p_N\). \begin{align*} \frac{p_{N+1}}{p_N} &= \frac{\frac{(N+1-200)!^2}{(N+1)!(N+1-389)!}}{\frac{(N-200)!^2}{N!(N-389)!}} \\ &= \frac{(N-199)!^2 \cdot N! \cdot (N-389)!}{(N+1)!(N-388)!(N-200)!^2} \\ &= \frac{(N-199)^2 \cdot 1 \cdot 1}{(N+1) \cdot (N-388)\cdot 1} \\ \end{align*} \begin{align*} && \frac{p_{N+1}}{p_N} &> 1 \\ \Leftrightarrow && \frac{(N-199)^2 \cdot 1 \cdot 1}{(N+1) \cdot (N-388)\cdot 1} & > 1 \\ \Leftrightarrow && (N-199)^2 & > (N+1) \cdot (N-388) \\ \Leftrightarrow && N^2-2\cdot199N+199^2 & > N^2 - 387N -388 \\ \Leftrightarrow && -398N+199^2 & > - 387N -388 \\ \Leftrightarrow && 199^2+388 & > 11N\\ \Leftrightarrow && \frac{199^2+388}{11} & > N\\ \Leftrightarrow && 3635\frac{4}{11} & > N\\ \end{align*} Therefore \(p_N\) is increasing if \(N \leq 3635\), so we should take \(N = 3636\). \[ \P(\text{exactly } j \text{ marked voles}) = \frac{\binom{389}{j} \cdot \binom{3636 - 389}{200-j}}{\binom{3636}{200}}\] Since \begin{align*} && 1 &= \sum_{j=0}^{200} \P(\text{exactly } j \text{ marked voles}) \\ && &= \sum_{j=0}^{200} \frac{\binom{389}{j} \cdot \binom{3247}{200-j}}{\binom{3636}{200}} \\ \Leftrightarrow&& \binom{3636}{200} &= \sum_{j=0}^{200} \binom{389}{j} \cdot \binom{3247}{200-j} \end{align*}
In the game of endless cricket the scores \(X\) and \(Y\) of the two sides are such that \[ \P (X=j,\ Y=k)=\e^{-1}\frac{(j+k)\lambda^{j+k}}{j!k!},\] for some positive constant \(\lambda\), where \(j,k = 0\), \(1\), \(2\), \(\ldots\).
Solution:
How many integers between \(10\,000\) and \(100\,000\) (inclusive) contain exactly two different digits? (\(23\,332\) contains exactly two different digits but neither of \(33\,333\) and \(12\,331\) does.)
Solution: First consider \(5\) digit numbers containing at most \(2\) non-zero digits. Then there are \(\binom{9}{2}\) ways to choose the two digits, and \(2^{5}-2\) different ways to arrange them, removing the ones which are all the same. Considering all the pairs including zero, there are \(9\) ways to choose the non-zero (first) digit. There are \(2^4-1\) remaining digits where not all the numbers are the same. Finally we must not forget \(100\,000\). Therefore there are \(\binom{9}{2}(2^5-2) +9\cdot(2^4-1) + 1 = 1216\)
Suppose that a solution \((X,Y,Z)\) of the equation \[X+Y+Z=20,\] with \(X\), \(Y\) and \(Z\) non-negative integers, is chosen at random (each such solution being equally likely). Are \(X\) and \(Y\) independent? Justify your answer. Show that the probability that \(X\) is divisible by \(5\) is \(5/21\). What is the probability that \(XYZ\) is divisible by 5?
Solution: They are not independent: \begin{align*} && \mathbb{P}(X = 20 \,\, \cap Y = 20) = 0 \\ && \mathbb{P}(X = 20 )\mathbb{P}(Y = 20) \neq 0 \\ \end{align*} \begin{align*} X = 0: && 21 \text{ solutions} \\ X = 5: && 16 \text{ solutions} \\ X = 10: && 11 \text{ solutions} \\ X = 15: && 6 \text{ solutions} \\ X = 20: && 1 \text{ solutions} \\ 5 \mid X: && 55 \text{ solutions} \\ \\ && \binom{20+2}{2} = 11 \cdot 21 \text{ total solutions} \\ \Rightarrow && \mathbb{P}(5 \mid X) = \frac{55}{11 \cdot 21} = \frac{5}{21} \end{align*} \begin{align*} \mathbb{P}(5 \mid XYZ) &= 3\cdot \mathbb{P}(5 \mid X) - 2\mathbb{P}(5 \mid X, Y, Z) \\ &= \frac{3 \cdot 55 - 2 \cdot \binom{4+2}{2}}{11 \cdot 21} = \frac{35}{77} \end{align*}
Show that you can make up 10 pence in eleven ways using 10p, 5p, 2p and 1p coins. In how many ways can you make up 20 pence using 20p, 10p, 5p, 2p and 1p coins? You are reminded that no credit will be given for unexplained answers.
Solution: Writing out the possibilities in order of the largest coin used (and then second largest and so-on): \begin{align*} && 10 &= 10 \\ &&&= 5 + 5 \\ &&&= 5 + 2 + 2 + 1 \\ &&&= 5 + 2 + 1 + 1 + 1 \\ &&&= 5 + 1 + 1 + 1 + 1 + 1\\ &&&= 2 + 2 + 2 + 2 + 2 = 5 \cdot 2\\ &&&= 4 \cdot 2 + 2 \cdot 1 \\ &&&= 3 \cdot 2 + 4 \cdot 1\\ &&&= 2 \cdot 2 + 6\cdot 1\\ &&&= 1 \cdot 2 + 8\cdot 1 \\ &&&= 10 \cdot 1 \end{align*} For 20p, we have \begin{align*} && 20 &= 20 \\ &&&= 10 + \text{all 11 ways} \\ &&&= 4\cdot 5 \\ &&&= 3\cdot 5 +\text{3 ways} \\ &&&= 2\cdot5 + \text{6 ways} \\ &&&= 1\cdot 5 + \text{8 ways} \\ &&&= k\cdot 2 + (20-2k)\cdot 1 \quad \text{11 ways} \end{align*} ie 41 ways