42 problems found
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, by means of a suitable change of variable, or otherwise, that \[ \int_{0}^{\infty}\mathrm{f}((x^{2}+1)^{1/2}+x)\,{\mathrm d}x =\frac{1}{2} \int_{1}^{\infty}(1+t^{-2})\mathrm{f}(t)\,{\mathrm d}t. \] Hence, or otherwise, show that \[ \int_{0}^{\infty}((x^{2}+1)^{1/2}+x)^{-3}\,{\mathrm d}x =\frac{3}{8}. \]
Solution: \begin{align*} && t &= (x^2+1)^{1/2}+x \\ && 1&=t^2-2tx \\ && x &= \frac{t^2-1}{2t} = \frac12 \left (t - \frac1t\right) \\ && \frac{\d x}{\d t} &= \frac12 \left ( 1+ \frac{1}{t^2} \right) \\ \Rightarrow && \int_0^{\infty} f((x^2+1)^{1/2}+x) \d x &= \int_{t=1}^{t = \infty}f(t) \frac12(1 + t^{-2}) \d t\\ &&&= \frac12 \int_1^{\infty}(1+t^{-2})f(t) \d t \end{align*} \begin{align*} \int_{0}^{\infty}((x^{2}+1)^{1/2}+x)^{-3}\,{\mathrm d}x &= \frac12 \int_1^{\infty}(1+t^{-2})t^{-3} \d t \\ &= \frac12 \left [\frac{-1}{2}t^{-2}-\frac{1}{4}t^{-4} \right]_{1}^{\infty} \\ &= \frac12 \left ( \frac12 + \frac14\right) = \frac38 \end{align*}
Which of the following statements are true and which are false? Justify your answers.
Solution:
Prove that the rectangle of greatest perimeter which can be inscribed in a given circle is a square. The result changes if, instead of maximising the sum of lengths of sides of the rectangle, we seek to maximise the sum of \(n\)th powers of the lengths of those sides for \(n\geqslant 2\). What happens if \(n=2\)? What happens if \(n=3\)? Justify your answers.
Solution: We can always rotate the circle so that sides are parallel to the \(x\) and \(y\) axes. Therefore if one corner is \((a,b)\) the other coordinates are \((-a,b), (a,-b), (-a,-b)\) and the perimeter will be \(4(a+b)\). Therefore we wish to maximise \(4(a+b)\) subject to \(a^2+b^2 = \text{some constant}\). Notice that \(\frac{a+b}{2} \leq \sqrt{\frac{a^2+b^2}{2}}\) with equality when \(a = b\), therefore the maximum is a square. If \(n = 2\) then we are looking at \(2((2a)^2+(2b)^2) = 8(a^2+b^2)\) which is constant for all rectangles. If \(n=3\) we are maximising \(16(a^3+b^3) = 16(a^3+(c^2-a^2)^{3/2})\) which is maximised when \(a = 0, c\)
Solution:
Let \(a_{1}=\cos x\) with \(0 < x < \pi/2\) and let \(b_{1}=1\). Given that \begin{eqnarray*} a_{n+1}&=&{\textstyle \frac{1}{2}}(a_{n}+b_{n}),\\[2mm] b_{n+1}&=&(a_{n+1}b_{n})^{1/2}, \end{eqnarray*} find \(a_{2}\) and \(b_{2}\) and show that \[a_{3}=\cos\frac{x}{2}\cos^{2}\frac{x}{4} \ \quad\mbox{and}\quad \ b_{3}=\cos\frac{x}{2}\cos\frac{x}{4}.\] Guess general expressions for \(a_{n}\) and \(b_{n}\) (for \(n\ge2\)) as products of cosines and verify that they satisfy the given equations.
Solution: \begin{array}{c|c|c} n & a_n & b_n \\ \hline 1 & \cos x & 1 \\ \hline 2 & \frac12(1 + \cos x) & \sqrt{a_2} \\ &=\frac12(1+2\cos^2 \frac{x}{2}-1)& \sqrt{a_2} \\ &= \cos^2 \frac{x}{2} & \cos \frac{x}{2} \\ \hline 3 & \frac12(\cos^2 \frac{x}{2}+\cos \frac{x}{2}) & \sqrt{a_3\cos \frac{x}{2}} \\ &= \cos \frac{x}{2} \cdot \frac12 (\cos \frac{x}{2}+1) & \sqrt{a_3\cos \frac{x}{2}} \\ &= \cos \frac{x}{2} \cos^2 \frac{x}{4} & \cos \frac{x}{2} \cos \frac{x}{4} \end{array} Claim: \(\displaystyle a_n = \cos \frac{x}{2^{n-1}}\prod_{k=1}^{n-1} \cos \frac{x}{2^k}\), \(\displaystyle b_n = \prod_{k=1}^{n-1} \cos \frac{x}{2^k}\) Claim: \(a_{n+1} = \frac12(a_n + b_n)\) Proof: \begin{align*} && \frac12(a_n + b_n) &= \frac12 \left ( \cos \frac{x}{2^{n-1}}\prod_{k=1}^{n-1} \cos \frac{x}{2^k} + \prod_{k=1}^{n-1} \cos \frac{x}{2^k} \right) \\ &&&= \prod_{k=1}^{n-1} \cos \frac{x}{2^k} \frac12\left (\cos \frac{x}{2^{n-1}} + 1 \right) \\ &&&= \left ( \prod_{k=1}^{n-1} \cos \frac{x}{2^k} \right) \cos^{2} \frac{x}{2^n} \\ &&&= \cos \frac{x}{2^n} \prod_{k=1}^{n} \cos \frac{x}{2^k} \\ &= a_{n+1} \end{align*} Claim: \(b_{n+1} = \sqrt{a_{n+1}b_n}\) Proof: \begin{align*} && \sqrt{a_{n+1}b_n} &= \sqrt{ \cos \frac{x}{2^n} \prod_{k=1}^{n} \cos \frac{x}{2^k} \cdot \prod_{k=1}^{n-1} \cos \frac{x}{2^k} }\\ &&&= \prod_{k=1}^{n-1} \cos \frac{x}{2^k} \sqrt{\cos ^2\frac{x}{2^{n}}} \\ &&&= \prod_{k=1}^{n} \cos \frac{x}{2^k} \\ &&&= b_{n+1} \end{align*}
My bank pays \(\rho\%\) interest at the end of each year. I start with nothing in my account. Then for \(m\) years I deposit \(\pounds a\) in my account at the beginning of each year. After the end of the \(m\)th year, I neither deposit nor withdraw for \(l\) years. Show that the total amount in my account at the end of this period is \[\pounds a\frac{r^{l+1}(r^{m}-1)}{r-1}\] where \(r=1+{\displaystyle \frac{\rho}{100}}\). At the beginning of each of the \(n\) years following this period I withdraw \(\pounds b\) and this leaves my account empty after the \(n\)th withdrawal. Find an expression for \(a/b\) in terms of \(r\), \(l\), \(m\) and \(n\).
Solution: Rather than putting the deposits in the same account, imagine they are all put in separate accounts. Then for example, the first \(\pounds a\) will go on to become \(\pounds r^m \cdot r^l a\) from \(m\) years of compound interest as more money is deposited, followed by \(l\) years where no money is deposited. Therefore the total amount at the end is: \begin{align*} && S &= r^{m}r^l a + r^{m-1}r^l a + \cdots + r r^l a \\ &&&= r^l a(r^m + \cdots + r) \\ &&&= ar^l\frac{r^{m+1}-r}{r-1} \\ &&&= a \frac{r^{l+1}(r^m-1)}{r-1} \end{align*} Rather than withdrawing \(b\) each time, imagine that in the \(n\)th year we withdraw each \(b\) with the appropriate additional interest, ie \begin{align*} && \underbrace{a \frac{r^{l+1}(r^m-1)}{r-1}}_{\text{amount before \(n\) years}} \underbrace{r^{n-1}}_{\text{accounting for interest}} &= b r^{n-1} + br^{n-2} + \cdots + b \\ &&&= b \frac{r^n-1}{r-1} \\ \Rightarrow && \frac{a}{b} &= \frac{r^n-1}{r^{l+n}(r^m-1)} \end{align*}
Fluid flows steadily under a constant pressure gradient along a straight tube of circular cross-section of radius \(a\). The velocity \(v\) of a particle of the fluid is parallel to the axis of the tube and depends only on the distance \(r\) from the axis. The equation satisfied by \(v\) is \[\frac{1}{r}\frac{{\mathrm d}\ }{{\mathrm d}r} \left(r\frac{{\mathrm d}v}{{\mathrm d}r}\right) =-k,\] where \(k\) is constant. Find the general solution for \(v\). Show that \(|v|\rightarrow\infty\) as \(r\rightarrow 0\) unless one of the constants in your solution is chosen to be~\(0\). Suppose that this constant is, in fact, \(0\) and that \(v=0\) when \(r=a\). Find \(v\) in terms of \(k\), \(a\) and \(r\). The volume \(F\) flowing through the tube per unit time is given by \[F=2\pi\int_{0}^{a}rv\,{\mathrm d}r. \] Find \(F\).
Two small spheres \(A\) and \(B\) of equal mass \(m\) are suspended in contact by two light inextensible strings of equal length so that the strings are vertical and the line of centres is horizontal. The coefficient of restitution between the spheres is \(e\). The sphere \(A\) is drawn aside through a very small distance in the plane of the strings and allowed to fall back and collide with the other sphere \(B\), its speed on impact being \(u\). Explain briefly why the succeeding collisions will all occur at the lowest point. (Hint: Consider the periods of the two pendulums involved.) Show that the speed of sphere \(A\) immediately after the second impact is \(\frac{1}{2}u(1+e^{2})\) and find the speed, then, of sphere \(B\).
A shell explodes on the surface of horizontal ground. Earth is scattered in all directions with varying velocities. Show that particles of earth with initial speed \(v\) landing a distance \(r\) from the centre of explosion will do so at times \(t\) given by \[ {\textstyle \frac{1}{2}} g^2t^2=v^{2}\pm\surd(v^{4}-g^{2}r^{2}). \] Find an expression in terms of \(v\), \(r\) and \(g\) for the greatest height reached by such particles.
Hank's Gold Mine has a very long vertical shaft of height \(l\). A light chain of length \(l\) passes over a small smooth light fixed pulley at the top of the shaft. To one end of the chain is attached a bucket \(A\) of negligible mass and to the other a bucket \(B\) of mass \(m\). The system is used to raise ore from the mine as follows. When bucket \(A\) is at the top it is filled with mass \(2m\) of water and bucket \(B\) is filled with mass \(\lambda m\) of ore, where \(0<\lambda<1\). The buckets are then released, so that bucket \(A\) descends and bucket \(B\) ascends. When bucket \(B\) reaches the top both buckets are emptied and released, so that bucket \(B\) descends and bucket \(A\) ascends. The time to fill and empty the buckets is negligible. Find the time taken from the moment bucket \(A\) is released at the top until the first time it reaches the top again. This process goes on for a very long time. Show that, if the greatest amount of ore is to be raised in that time, then \(\lambda\) must satisfy the condition \(\mathrm{f}'(\lambda)=0\) where \[\mathrm{f}(\lambda)=\frac{\lambda(1-\lambda)^{1/2}} {(1-\lambda)^{1/2}+(3+\lambda)^{1/2}}.\]
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*}
I have a bag initially containing \(r\) red fruit pastilles (my favourites) and \(b\) fruit pastilles of other colours. From time to time I shake the bag thoroughly and remove a pastille at random. (It may be assumed that all pastilles have an equal chance of being selected.) If the pastille is red I eat it but otherwise I replace it in the bag. After \(n\) such drawings, I find that I have only eaten one pastille. Show that the probability that I ate it on my last drawing is \[\frac{(r+b-1)^{n-1}}{(r+b)^{n}-(r+b-1)^{n}}.\]
To celebrate the opening of the financial year the finance minister of Genland flings a Slihing, a circular coin of radius \(a\) cm, where \(0 < a < 1\), onto a large board divided into squares by two sets of parallel lines 2 cm apart. If the coin does not cross any line, or if the coin covers an intersection, the tax on yaks remains unchanged. Otherwise the tax is doubled. Show that, in order to raise most tax, the value of \(a\) should be \[\left(1+{\displaystyle \frac{\pi}{4}}\right)^{-1}.\] If, indeed, \(a=\left(1+{\displaystyle \frac{\pi}{4}}\right)^{-1}\) and the tax on yaks is 1 Slihing per yak this year, show that its expected value after \(n\) years will have passed is \[ \left(\frac{8+\pi}{4+\pi}\right)^{n}.\]
Show that, if \(n\) is an integer such that $$(n-3)^3+n^3=(n+3)^3,\quad \quad {(*)}$$ then \(n\) is even and \(n^2\) is a factor of \(54\). Deduce that there is no integer \(n\) which satisfies the equation \((*)\). Show that, if \(n\) is an integer such that $$(n-6)^3+n^3=(n+6)^3, \quad \quad{(**)}$$ then \(n\) is even. Deduce that there is no integer \(n\) which satisfies the equation \((**)\).
Solution: \begin{align*} && n^3 &= (n+3)^3 - (n-3)^3 \\ &&&= n^3 + 9n^2+27n + 27 - (n^3 - 9n^2+27n-27) \\ &&&= 18n^2+54 \end{align*} Therefore since \(2 \mid 2(9n^2 + 27)\), \(2 \mid n^3 \Rightarrow 2 \mid n\), so \(n\) is even. Since \(n^2 \mid n^3\), \(n^2 \mid 54 = 2 \cdot 3^3\), therefore \(n = 1\) or \(n = 3\). \((1-3)^3 + 1^3 < 0 < (1+3)^3\). So \(n = 1\) doesn't work. \((3 - 3)^3 + 3^3 < (3+3)^3\) so \(n = 3\) doesn't work. Therefore there are no solutions. \begin{align*} && n^3 &= (n+6)^3 - (n-6)^3 \\ &&&= n^3 + 18n^2 + 180n + 6^3 - (n^3 - 18n^2 + 180n - 6^3 ) \\ &&&= 36n^2+2 \cdot 6^3 \end{align*} Therefore \(n^2 \mid 2 \cdot 6^3 = 2^4 \cdot 3^3\), therefore \(n = 1, 2, 3, 4, 6, 12\). \(n = 1\), \(1^3 <36+2\cdot 6^3\) \(n = 2\), \(2^3 <36 \cdot 4 + 2 \cdot 6^3\) \(n = 3\), \(3^3 <36 \cdot 9 + 2 \cdot 6^3\) \(n = 4\), \(4^3 < 36 \cdot 16 + 2 \cdot 6^3\) \(n = 6\), \(6^3 < 36\cdot 6^2+ 2 \cdot 6^3\) \(n = 12\), \(12^3 < 36 \cdot 12^2 + 2 \cdot 6^3\) Therefore there are no solutions \(n\) to the equation. These are both special cases of Fermat's Last Theorem, when \(n = 3\)