14 problems found
Solution:
The set \(S\) is the set of all integers from 1 to \(n\). The set \(T\) is the set of all distinct subsets of \(S\), including the empty set \(\emptyset\) and \(S\) itself. Show that \(T\) contains exactly \(2^n\) sets. The sets \(A_1, A_2, \ldots, A_m\), which are not necessarily distinct, are chosen randomly and independently from \(T\), and for each \(k\) \((1 \leq k \leq m)\), the set \(A_k\) is equally likely to be any of the sets in \(T\).
Solution: For every element in \(S\) we can choose whether or not it appears in a subset of \(S\), therefore there are \(2^n\) choices so \(2^n\) distinct subsets.
Three rods have lengths \(a\), \(b\) and \(c\), where \(a< b< c\). The three rods can be made into a triangle (possibly of zero area) if \(a+b\ge c\). Let \(T_{n}\) be the number of triangles that can be made with three rods chosen from \(n\) rods of lengths \(1\), \(2\), \(3\), \(\ldots\) , \(n\) (where \(n\ge3\)). Show that \(T_8-T_7 = 2+4+6\) and evaluate \(T_8 -T_6\). Write down expressions for \(T_{2m}-T_{2m-1}\) and \(T_{2m} - T_{2m-2}\). Prove by induction that \(T_{2m}=\frac 16 m (m-1)(4m+1)\,\), and find the corresponding result for an odd number of rods.
Solution: Every \(T_7\) triangle is valid, so we are interested in new triangles which have \(8\) has a longest side. We can have: \begin{array}{c|c|c} \text{longest} & \text{middle} & \text{shortest} \\ \hline 8 & 7 & 1-6 \\ 8 & 6 & 2-5 \\ 8 & 5 & 3-4 \end{array} which is \(6+4+2\) extra triangles. The new ones excluding all the sixes are: \begin{array}{c|c|c} \text{longest} & \text{middle} & \text{shortest} \\ \hline 8 & 7 & 1-6 \\ 8 & 6 & 2-5 \\ 8 & 5 & 3-4 \\ 7 & 6 & 1-5 \\ 7 & 5 & 2-4 \\ 7 & 4 & 3 \\ \end{array} Ie \(2+4+6 + 1 + 3+5\) \(T_{2m}-T_{2m-1} = 2 \frac{(m-1)m}{2} = m(m-1)\) and \(T_{2m}-T_{2m-2} = \frac{(2m-2)(2m-1)}{2}\) \(T_4 = 3\) (\(1,2,3\), \(1,3,4\), \(2,3,4\)) and \(\frac16 \cdot 2 \cdot 1 \cdot 9 = 3\) so the base case holds. Suppose it's true for some \(m = k\), then \begin{align*} && T_{2(k+1)} &= T_{2k} + \frac{2m(2m+1)}{2} \\ &&&= \frac{m(m-1)(4m+1)}{6} + \frac{6m(2m+1)}{6}\\ &&&= \frac{m(4m^2-3m-1+12m+6)}{6} \\ &&&= \frac{m(4m^2+9m+5)}{6}\\ &&&= \frac{m(4m+5)(m+1)}{6}\\ &&&= \frac{(m+1-1)(4(m+1)+5)(m+1)}{6}\\ \end{align*} as required, therefore it is true by induction. For odd numbers, we can see that \(T_{2m-1} = \frac{m(m-1)(4m+1)}{6} - m(m-1) = \frac{m(m-1)(4m-5)}{6}\)
I choose at random an integer in the range 10000 to 99999, all choices being equally likely. Given that my choice does not contain the digits 0, 6, 7, 8 or 9, show that the expected number of different digits in my choice is 3.3616.
Solution: We are choosing any \(5\) digit number from \(\{1,2,3,4,5\}\). There are \(5^5\) such numbers. \begin{align*} && \mathbb{E}(\text{different digits}) &= \frac1{5^5} \left (1 \cdot 5 + 2 \cdot \binom{5}{2}(2^5-2)+3 \cdot \binom{5}{3}(3^5-3 \cdot 2^5+3)+4 \cdot \binom{5}{4}(4^5 - 4 \cdot 3^5+6 \cdot 2^5-4) + 5 \cdot 5! \right) \\ &&&= \frac{2101}{625} = 3.3616 \end{align*}
Three married couples sit down at a round table at which there are six chairs. All of the possible seating arrangements of the six people are equally likely.
A positive integer with \(2n\) digits (the first of which must not be \(0\)) is called a balanced number if the sum of the first \(n\) digits equals the sum of the last \(n\) digits. For example, \(1634\) is a \(4\)-digit balanced number, but \(123401\) is not a balanced number.
Solution:
A bag contains eleven small discs, which are identical except that six of the discs are blank and five of the discs are numbered, using the numbers 1, 2, 3, 4 and 5. The bag is shaken, and four discs are taken one at a time without replacement. Calculate the probability that:
Solution: There are many ways to do the counting in each question, possibly the clearest way is to always consider the order in which discs are taken, although all methods should work equally well. For some examples Bayes rule also offers a fast solution.
How many integers greater than or equal to zero and less than a million are not divisible by 2 or 5? What is the average value of these integers? How many integers greater than or equal to zero and less than 4179 are not divisible by 3 or 7? What is the average value of these integers?
Solution: There are \(1\,000\,000\) numbers between 1 and a million (inclusive). \(500\,000\) are divisible by \(2\), \(200\,000\) are divisible by \(5\) and \(100\,000\) are divisible by both. Therefore there are: \(1\,000\,000 - 500\,000-200\,000+100\,000 = 400\,000\). (Alternatively, the only numbers are those which are \(1,3,7,9 \pmod{10}\) so there are \(4\) every \(10\), or \(4 \cdot 100\,000\)). We can sum all these values similarly, \begin{align*} S &= \underbrace{\sum_{i=1}^{10^6} i}_{\text{all numbers}}-\underbrace{\sum_{i=1}^{5 \cdot 10^5} 2i}_{\text{all multiples of } 2}-\underbrace{\sum_{i=1}^{2 \cdot 10^5} 5i}_{\text{all multiples of } 5}+\underbrace{\sum_{i=1}^{10^5} 10i}_{\text{all multiples of } 5} \\ &= \frac{10^6 \cdot (10^6 + 1)}{2} - \frac{10^6 \cdot (5\cdot 10^5+1)}{2} - \frac{10^6 \cdot (2\cdot 10^5+1)}{2} + \frac{10^6 \cdot (10^5+1)}{2} \\ &= \frac{10^6 (10^5 \cdot (10-5-2+1))))}{2} \\ &= \frac{10^6 \cdot 10^5 \cdot 4}{2} \\ &= 2\cdot 10^{11} \end{align*} So the average value is \(\frac{2 \cdot 10^{11}}{4 \cdot 10^5} = \frac{10^6}{2} = 500\,000\). (Alternatively, each value can be paired off eg \(999\,999\) with \(1\) and so on, leaving averages of \(500\,000\)). Note that \(4197\) is divisible by \(3\) and \(7\). Using the same long we have: \(4179 - \frac{4179}{3} - \frac{4179}{7} + \frac{4179}{21} = 4179 - 1393 - 597 + 199 = 2388\). The sum will be: \begin{align*} S &= \underbrace{\sum_{i=1}^{4179}i }_{\text{all numbers}}- \underbrace{\sum_{i=1}^{1393}3i }_{\text{multiples of }3}- \underbrace{\sum_{i=1}^{597}7i }_{\text{multiples of }7}+ \underbrace{\sum_{i=1}^{199}21i }_{\text{mulitples of }21} \\ &= \frac{4179 \cdot 4180}{2} - \frac{4179 \cdot 1394}{2} - \frac{4179 \cdot 598}{2} +\frac{4179 \cdot 200}{2} \\ &= \frac{4179 \cdot 2388}{2} \end{align*} So the average value is \(\frac{4179}{2}\).
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\)
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
I have \(n\) fence posts placed in a line and, as part of my spouse's birthday celebrations, I wish to paint them using three different colours red, white and blue in such a way that no adjacent fence posts have the same colours. (This allows the possibility of using fewer than three colours as well as exactly three.) Let \(r_{n}\) be the number of ways (possibly zero) that I can paint them if I paint the first and the last post red and let \(s_{n}\) be the number of ways that I can paint them if I paint the first post red but the last post either of the other two colours. Explain why \(r_{n+1}=s_{n}\) and find \(r_{n}+s_{n}.\) Hence find the value of \(r_{n+1}+r_{n}\) for all \(n\geqslant1.\) Prove, by induction, that \[ r_{n}=\frac{2^{n-1}+2(-1)^{n-1}}{3}. \] Find the number of ways of painting \(n\) fence posts (where \(n\geqslant3\)) placed in a circle using three different colours in such a way that no adjacent fence posts have the same colours.
There are 28 colleges in Cambridge, of which two (New Hall and Newnham) are for women only; the others admit both men and women. Seven women, Anya, Betty, Celia, Doreen, Emily, Fariza and Georgina, are all applying to Cambridge. Each has picked three colleges at random to enter on her application form.
Solution:
A set of \(2N+1\) rods consists of one of each length \(1,2,\ldots,2N,2N+1\), where \(N\) is an integer greater than 1. Three different rods are selected from the set. Suppose their lengths are \(a,b\) and \(c\), where \(a > b > c\). Given that \(a\) is even and fixed, show, by considering the possible values of \(b\), that the number of selections in which a triangle can then be formed from the three rods is \[ 1+3+5+\cdots+(a-3), \] where we allow only non-degenerate triangles (i.e. triangles with non-zero area). Similarly obtain the number of selections in which a triangle may be formed when \(a\) takes some fixed odd value. Write down a formula for the number of ways of forming a non-degenerate triangle and verify it for \(N=3\). Hence show that, if three rods are drawn at random without replacement, then the probability that they can form a non-degenerate triangle is \[ \frac{(N-1)(4N+1)}{2(4N^{2}-1)}. \]
Solution: Suppose we have \(a = 2k\), it is necessary (by the triangle inequality) that \(b + c > a\). So the smallest \(b\) can be is \(k+1\), and then \(c\) must be \(k\) (1 choice). Then \(b\) could be \(k+2\) and \(c\) can be \(k+1\), \(k\), \(k-1\) (3 choices). Suppose \(b = k+i\) then \(c\) can be \(k+i-1, \ldots, k-i+1\) which is \(2i-1\) choices. This works until \(b = 2k-1\) and there are \(2(k-1)-1 = 2k-3 = a-3\) choices. Therefore there are \(1 + 3 + 5 + \cdots + (a-3)\) total choices. If \(a = 2k+1\) then, \(b = k+1\) is not possible \(b = k+2\) we have \(a = k+1, k\) (2 choices) \(b = k+3\) we have \(a = k+2, k+1, k, k-1\) (4 choices) \(b = k + i\) we have \(a = k+i-1, \cdots, k-i+2\) (\(2i-2\) choices) This works until \(b = k+k\) with \(2k-2 = a-3\) choices. So \(2 + 4 + \cdots + (a-3)\) If \(a\) is even, we have \(\left ( \frac{a-2}{2} \right)^2\) If \(a\) is odd we have \(\frac{(a-3)(a-1)}{4}\) Therefore the total number is: \begin{align*} C &= \sum_{k=2}^N \left ( \frac{(2k-2)^2}{4} + \frac{(2k+1-3)(2k+1-1)}{4} \right) \\ &= \sum_{k=2}^N \left ( (k-1)^2 + (k-1)k\right) \\ &= \sum_{k=2}^N (2k^2-3k+1) \\ &= \sum_{k=1}^N (2k^2-3k+1) \\ &= \frac{N(N+1)(2N+1)}{3} - \frac{3N(N+1)}{2} + N \\ &= \frac{N((N+1)(4N+2-9)+6)}{6} \\ &= \frac{N(4N+1)(N-1)}{6} \\ \end{align*} When \(N = 3\) we have \(1, 2, \cdots, 7\) sticks, and so \(a = 4\), \(1\) option \(a = 5\), \(2\) options \(a = 6\) \(4\) options \(a = 7\) \(6\) options for a total of \(13\). \(\frac{3 \cdot 13 \cdot 2}{6} = 13\) so this is promising, There are \(\binom{2N+1}{3}\) ways to choose three sticks (in order) and of those our formula tells us how many are valid, therefore \begin{align*} && P &= \frac{ \frac{N(4N+1)(N-1)}{6} }{\frac{(2N+1)2N(2N-1)}{6}} \\ &&&= \frac{(4N+1)(N-1)}{2(4N^2-1)} \end{align*}
Each of \(m\) distinct points on the positive \(y\)-axis is joined by a line segment to each of \(n\) distinct points on the positive \(x\)-axis. Except at the endpoints, no three of these segments meet in a single point. Derive formulae for \begin{questionparts} \item the number of such line segments; \item the number of points of intersections of the segments, ignoring intersections at the endpoints of the segments. \end{questionpart} If \(m=n\geqslant3,\) and the two segments with the greatest number of points of intersection, and the two segments with the least number of points of intersection, are excluded, prove that the average number of points of intersection per segment on the remaining segments is \[ \frac{n^{3}-7n+2}{4(n+2)}\,. \]
Solution: