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\).
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.