92 problems found
A sequence \(u_k\), for integer \(k \geqslant 1\), is defined as follows. \[ u_1 = 1 \] \[ u_{2k} = u_k \text{ for } k \geqslant 1 \] \[ u_{2k+1} = u_k + u_{k+1} \text{ for } k \geqslant 1 \]
The sequence \(u_0, u_1, \ldots\) is said to be a constant sequence if \(u_n = u_{n+1}\) for \(n = 0, 1, 2, \ldots\). The sequence is said to be a sequence of period 2 if \(u_n = u_{n+2}\) for \(n = 0, 1, 2, \ldots\) and the sequence is not constant.
Solution:
Four children, \(A\), \(B\), \(C\) and \(D\), are playing a version of the game `pass the parcel'. They stand in a circle, so that \(ABCDA\) is the clockwise order. Each time a whistle is blown, the child holding the parcel is supposed to pass the parcel immediately exactly one place clockwise. In fact each child, independently of any other past event, passes the parcel clockwise with probability \(\frac{1}{4}\), passes it anticlockwise with probability \(\frac{1}{4}\) and fails to pass it at all with probability \(\frac{1}{2}\). At the start of the game, child \(A\) is holding the parcel. The probability that child \(A\) is holding the parcel just after the whistle has been blown for the \(n\)th time is \(A_n\), and \(B_n\), \(C_n\) and \(D_n\) are defined similarly.
Solution:
The sequence of functions \(y_0\), \(y_1\), \(y_2\), \(\ldots\,\) is defined by \(y_0=1\) and, for \(n\ge1\,\), \[ y_n = (-1)^n \frac {1}{z} \, \frac{\d^{n} z}{\d x^n} \,, \] where \(z= \e^{-x^2}\!\).
Solution:
A particle \(P\) of mass \(m\) is projected with speed \(u_0\) along a smooth horizontal floor directly towards a wall. It collides with a particle \(Q\) of mass \(km\) which is moving directly away from the wall with speed \(v_0\). In the subsequent motion, \(Q\) collides alternately with the wall and with \(P\). The coefficient of restitution between \(Q\) and \(P\) is \(e\), and the coefficient of restitution between \(Q\) and the wall is 1. Let \(u_n\) and \(v_n\) be the velocities of \(P\) and \(Q\), respectively, towards the wall after the \(n\)th collision between \(P\) and \(Q\).
Solution:
Two sequences are defined by \(a_1 = 1\) and \(b_1 = 2\) and, for \(n \ge 1\), \begin{equation*} \begin{split} a_{n+1} & = a_n+ 2b_n \,, \\ b_{n+1} & = 2a_n + 5b_n \,. \end{split} \end{equation*} Prove by induction that, for all \(n \ge 1\), \[ a_n^2+2a_nb_n - b_n^2 = 1 \,. \tag{\(*\)}\]
Solution: Claim \(a_n^2+2a_nb_n - b_n^2 = 1\) for all \(n \geq 1\) Proof: (By induction) Base case: (\(n = 1\)). When \(n = 1\) we have \(a_1^2 + 2a_1 b_1-b_1^2 = 1^2+2\cdot1\cdot2-2^2 = 1\) as required. (Inductive step). Now we assume our result is true for some \(n =k\), ie \(a_k^2+2a_kb_k - b_k^2 = 1\), now consider \(n = k+1\) \begin{align*} && a_{k+1}^2+2a_{k+1}b_{k+1} - b_{k+1}^2 &= (a_k+2b_k)^2+2(a_k+2b_k)(2a_k+5b_k) - (2a_k+5b_k)^2 \\ &&&= a_k^2+4a_kb_k+4b_k^2 +4a_k^2+18a_kb_k+20b_k^2 - 4a_k^2-20a_kb_k-25b_k^2 \\ &&&= (1+4-4)a_k^2+(4+18-20)a_kb_k +(4+20-25)b_k^2 \\ &&&= a_k^2+2a_kb_k -b_k^2 = 1 \end{align*} Therefore since our statement is true for \(n = 1\) and when it is true for \(n=k\) it is true for \(n=k+1\) by the POMI it is true for \(n \geq 1\)
I have a sliced loaf which initially contains \(n\) slices of bread. Each time I finish setting a STEP question, I make myself a snack: either toast, using one slice of bread; or a sandwich, using two slices of bread. I make toast with probability \(p\) and I make a sandwich with probability \(q\), where \(p+q=1\), unless there is only one slice left in which case I must, of course, make toast. Let \(s_r\) (\(1 \le r \le n\)) be the probability that the \(r\)th slice of bread is the second of two slices used to make a sandwich and let \(t_r\) (\(1 \le r \le n\)) be the probability that the \(r\)th slice of bread is used to make toast. What is the value of \(s_1\)? Explain why the following equations hold: \begin{align*} \phantom{\hspace{2cm} (2\le r \le n-1)} t_r &= (s_{r-1}+ t_{r-1})\,p \hspace{2cm} (2\le r \le n-1)\,; \\ \phantom{\hspace{1.53cm} (2\le r \le n) } s_r &= 1- (s_{r-1} + t_{r-1}) \hspace{1.53cm} ( 2\le r \le n )\,. \end{align*} Hence, or otherwise, show that \(s_{r} = q(1-s_{r-1})\) for \(2\le r\le n-1\). Show further that \[ \phantom{\hspace{2.7cm} (1\le r\le n)\,,} s_r = \frac{q+(-q)^r}{1+q} \hspace{2.7cm} (1\le r\le n-1)\,, \, \hspace{0.14cm} \] and find the corresponding expression for \(t_r\). Find also expressions for \(s_n\) and \(t_n\) in terms of \(q\).
Solution: The \(1\)st slice of bread can only be the first slice in a sandwich or a slice of toast. Therefore \(s_1 = 0\) \begin{align*} && t_r &= \underbrace{s_{r-1}}_{r-1\text{th is the end of a sandwich}} \cdot \underbrace{p}_{\text{and we make toast}} + \underbrace{t_{r-1}}_{r-1\text{th is toast}} \cdot \underbrace{p}_{\text{and we make toast}} \\ &&&= (s_{r-1}+t_{r-1})p \\ \\ && s_r &= 1-\mathbb{P}(\text{previous slice is not the first of a sandwich}) \\ &&&= 1-(s_{r-1} + t_{r-1}) \\ \\ \Rightarrow && s_r &= 1 - \frac{t_r}{p} \\ \Rightarrow && t_r &= p - ps_r \\ \Rightarrow && s_r &= 1 - s_{r-1} - (p-ps_{r-1}) \\ &&&= 1 -p -(1-p)s_{r-1} \\ &&&= q(1-s_{r-1}) \end{align*} Therefore since \(s_r + qs_{r-1} = q\) we should look for a solution of the form \(s_r = A(-q)^r + B\). The particular solution will have \((1+q)B = q \Rightarrow B = \frac{q}{1+q}\), the initial condition will have \(s_1 = \frac{q}{1+q} +A(-q) = 0 \Rightarrow q = \frac{1}{1+q}\), so we must have \begin{align*} && s_r &= \frac{q+(-q)^r}{1+q}\\ \Rightarrow && t_r &= p(1-s_r) \\ &&&= p \frac{1+q-q-(-q)^r}{1+q} \\ &&&= \frac{(1-q)(1-(-q)^r)}{1+q} \\ && s_n &= 1-\frac{q+(-q)^{n-1}}{1+q} - \frac{p(1-(-q)^{n-1})}{1+q} \\ &&&= 1-\frac{1+(1-p)(-q)^{n-1}}{1+q}\\ &&&= 1-\frac{1-(-q)^n}{1+q}\\ &&&= \frac{q+(-q)^n}{1+q}\\ && t_n &=1-s_n \\ &&&=\frac{1-(-q)^n}{1+q} \end{align*}
Note: In this question you may use without proof the result \( \dfrac{\d \ }{\d x}\big(\!\arctan x \big) = \dfrac 1 {1+x^2}\,\). Let \[ I_n = \int_0^1 x^n \arctan x \, \d x \;, \] where \(n=0\), 1, 2, 3, \(\ldots\) .
Solution:
The sequence of numbers \(x_0\), \(x_1\), \(x_2\), \(\ldots\) satisfies \[ x_{n+1} = \frac{ax_n-1}{x_n+b} \,. \] (You may assume that \(a\), \(b\) and \(x_0\) are such that \(x_n+b\ne0\,\).) Find an expression for \(x_{n+2}\) in terms of \(a\), \(b\) and \(x_n\).
Solution: \begin{align*} x_{n+2} &= \frac{ax_{n+1}-1}{x_{n+1}+b} \\ &= \frac{a \frac{ax_n - 1}{x_n+b}-1}{\frac{ax_n - 1}{x_n+b}+b} \\ &= \frac{a(ax_n-1)-(x_n+b)}{ax_n-1+b(x_n+b)} \\ &= \frac{(a^2-1)x_n-(a+b)}{(a+b)x_n+b^2-1} \end{align*}
Given an infinite sequence of numbers \(u_0\), \(u_1\), \(u_2\), \(\ldots\,\), we define the generating function, \(\f\), for the sequence by \[ \f(x) = u_0 + u_1x +u_2 x^2 +u_3 x^3 + \cdots \,. \] Issues of convergence can be ignored in this question.
Solution:
Four players \(A\), \(B\), \(C\) and \(D\) play a coin-tossing game with a fair coin. Each player chooses a sequence of heads and tails, as follows: Player A: HHT; Player B: THH; Player C: TTH; Player D: HTT. The coin is then tossed until one of these sequences occurs, in which case the corresponding player is the winner.
Solution:
Solution: \begin{align*} I_n - I_{n+1} &= \int_0^\infty \frac 1 {(1+u^2)^n}\, \d u - \int_0^\infty \frac 1 {(1+u^2)^{n+1}}\, \d u \\ &= \int_0^\infty \l \frac 1 {(1+u^2)^n}- \frac 1 {(1+u^2)^{n+1}} \r\, \d u \\ &= \int_0^\infty \frac {u^2} {(1+u^2)^{n+1}} \, \d u \\ &= \left [ u \frac{u}{(1+u^2)^{n+1}} \right]_0^{\infty} - \frac{-1}{2n}\int_0^{\infty} \frac{1}{(1+u^2)^n} \d u \tag{\(IBP: u = u, v' = \frac{u}{(1+u^2)^{n+1}}\)}\\ &= \frac{1}{2n} I_n \end{align*} \(\displaystyle I_1 = \int_0^{\infty} \frac{1}{1+u^2} \d u = \left [ \tan^{-1} u \right]_0^\infty = \frac{\pi}{2}\) as expected. We also have, \(I_{n+1} = \frac{2n(2n-1)}{2n \cdot 2n} I_n \), by rearranging the recurrence relation. Therefore, when we multiply out the top we will have \(2n!\) and the bottom we will have two factors of \(n!\) and two factors of \(2^n\) combined with the original \(\frac{\pi}{2}\) we get \[ I_{n+1} = \frac{(2n)! \pi}{2^{2n+1} (n!)^2} \] \begin{align*} J = \int_0^\infty f\big( (x- x^{-1})^2\big ) \, \d x &= \int_{u = \infty}^{u = 0} f((u^{-1}-u)^2)(-u^{-2} )\d u \tag{\(u = x^{-1}, \d u = -x^{-2} \d x\)} \\ &= \int^{u = \infty}_{u = 0} f((u^{-1}-u)^2)u^{-2} \d u \\ &= \int^{\infty}_{0} u^{-2}f((u-u^{-1})^2) \d u \\ \end{align*} Therefore adding the two forms for \(J\) we have \begin{align*} 2 J &= \int_0^\infty f\big( (x- x^{-1})^2\big ) \, \d x + \int_0^\infty x^{-2} f\big( (x- x^{-1})^2\big ) \, \d x \\ &= \int_0^\infty (1+x^{-2}) f\big( (x- x^{-1})^2\big ) \, \d x \end{align*} And letting \(u = x - x^{-1}\), we have \(\d u = (1 + x^{-2}) \d x\), and \(u\) runs from \(-\infty\) to \(\infty\) so we have: \begin{align*} \int_0^\infty (1+x^{-2}) f\big( (x- x^{-1})^2\big ) \, \d x &= \int_{-\infty}^\infty f(u^2) \, \d u \\ &=2 \int_{0}^\infty f(u^2) \, \d u \end{align*} Since both of these are \(2J\) we have the result we are after. Finally, \begin{align*} \int_0^\infty \frac {x^{2n-2}}{(x^4-x^2+1)^n} \, \d x &= \int_0^{\infty} \frac{x^{2n-2}}{x^{2n}(x^2-1+x^{-2})^n} \d x \\ &= \int_0^{\infty} \frac{x^{-2}}{((x-x^{-1})^2+1)^n} \d x \\ &= \int_0^{\infty} \frac{1}{(x^2+1)^n} \d x \tag{Where \(f(x) = (1+x^2)^{-n}\) in \(J\) integral} \\ &= I_n = \frac{(2n-2)! \pi}{2^{2n-1} ((n-1)!)^2} \end{align*}
Solution:
By considering the coefficient of \(x^r\) in the series for \((1+x)(1+x)^n\), or otherwise, obtain the following relation between binomial coefficients: \[ \binom n r + \binom n {r-1} = \binom {n+1} r \qquad (1\le r\le n). \] The sequence of numbers \(B_0\), \(B_1\), \(B_2\), \(\ldots\) is defined by \[ B_{2m} = \sum_{j=0}^m \binom{2m-j}j \text{ and } B_{2m+1} = \sum_{k=0}^m \binom{2m+1-k}k . \] Show that \(B_{n+2} - B_{n+1} = B_{n}\,\) (\(n=0\), \(1\), \(2\), \(\ldots\,\)). What is the relation between the sequence \(B_0\), \(B_1\), \(B_2\), \(\ldots\) and the Fibonacci sequence \(F_0\), \(F_1\), \(F_2\), \(\ldots\) defined by \(F_0=0\), \(F_1=1\) and \(F_n = F_{n-1}+F_{n-2}\) for \(n\ge2\)?
Solution: The coefficient of \(x^{r-1}\) in \((1+x)^n\) is \(\binom{n}{r-1}\) and the coefficient of \(x^r\) in \((1+x)^n\) is \(\binom{n}{r}\). The only ways to get \(x^r\) in the expansion of \((1+x)(1+x)^n\) is to either multiply the \(x^r\) term from the second expansion by \(1\) or the \(x^{r-1}\) term by \(x\). This is \(\binom{n}{r-1} + \binom{n}{r}\). However, the coefficient of \(x^r\) in \((1+x)^{n+1}\) is \(\binom{n+1}r\), so \(\binom{n}{r} + \binom{n}{n-1} = \binom{n+1}r\). Claim: \(B_{n+2} - B_{n+1} = B_{n}\). Proof: Consider \(n\) even, ie \(n = 2m\) \begin{align*} B_{n+2} - B_{n+1} &= \sum_{j=0}^{m+1} \binom{2(m+1)-j}{j} - \sum_{j=0}^m \binom{2m+1-j}{j} \\ &= \binom{2(m+1)-(m+1)}{m+1} +\sum_{j=0}^m \left ( \binom{2(m+1)-j}{j} - \binom{2m+1-j}{j} \right) \\ &= 1 + \sum_{j=1}^m \binom{2m+1-j}{j-1} \\ &= 1 + \sum_{j=0}^{m-1} \binom{2m-j}{j} \\ &= \binom{m}{m} + \sum_{j=0}^{m-1} \binom{2m-j}{j} \\ &= \sum_{j=0}^{m} \binom{2m-j}{j} \\ &= B_n \end{align*} Consider \(n\) even, ie \(n = 2m+1\) \begin{align*} B_{n+2} - B_{n+1} &= \sum_{j=0}^{m+1} \binom{2(m+1)+1-j}{j} - \sum_{j=0}^{m+1} \binom{2(m+1)-j}{j} \\ &= \sum_{j=0}^{m+1} \left (\binom{2(m+1)+1-j}{j} - \binom{2(m+1)-j}{j}\right)\\ &= \sum_{j=1}^{m+1} \binom{2(m+1)-j}{j-1} \\ &= \sum_{j=0}^{m} \binom{2m+1-j}{j} \\ &= B_n \end{align*} as required. \(B_0 = 1, B_1 = 2\), therefore \(B_n = F_{n+2}\)
Two parallel vertical barriers are fixed a distance \(d\) apart on horizontal ice. A small ice hockey puck moves on the ice backwards and forwards between the barriers, in the direction perpendicular to the barriers, colliding with each in turn. The coefficient of friction between the puck and the ice is \(\mu\) and the coefficient of restitution between the puck and each of the barriers is \(r\). The puck starts at one of the barriers, moving with speed \(v\) towards the other barrier. Show that \[ v_{i+1}^2 - r^2 v_i^2 = - 2 r^2 \mu gd\, \] where \(v_i\) is the speed of the puck just after its \(i\)th collision. The puck comes to rest against one of the barriers after traversing the gap between them \(n\) times. In the case \(r\ne1\), express \(n\) in terms of \(r\) and \(k\), where \(k= \dfrac{v^2}{2\mu g d}\,\). If \(r=\e^{-1}\) (where \(\e\) is the base of natural logarithms) show that \[ n = \tfrac12 \ln\big(1+k(\e^2-1)\big)\,. \] Give an expression for \(n\) in the case \(r=1\).
Solution: \begin{align*} \text{W.E.P.}: && \text{change in energy} &= \text{work done on particle} \\ \Rightarrow && \underbrace{\frac12mv^2}_{\text{speed before hitting barrier}} - \underbrace{\frac12mu^2}_{\text{speed leaving first barrier}} &= \underbrace{\left( -\mu mg \right)}_{F} \cdot \underbrace{d}_{d} \\ \Rightarrow && v^2 &= v_i^2-2\mu gd \end{align*} Newton's experimental law tells us that the speed leaving the barrier will be \(r\) times the speed approaching, ie \begin{align*} && v_{i+1} &= rv \\ \Rightarrow && v_{i+1}^2 &= r^2 v^2 \\ &&&= r^2v_i^2 - 2r^2\mu gd \\ \Rightarrow && v_{i+1}^2 - r^2v_i^2 &= - 2r^2\mu gd \end{align*} It must be the case that after \(n+1\) collisions the speed is zero, ie \(v_{n+1}^2 = 0\). Not that we can consider \(w_i = \frac{v_i^2}{2\mu gd}\) and we have the recurrence: \begin{align*} && w_{i+1} &=r^2w_i -r^2 \\ \end{align*} Looking at this we have a linear recurrence with a constant term, so let's try \(w_i = C\), then \begin{align*} && C &= r^2 C - r^2 \\ \Rightarrow && C &= \frac{-r^2}{1-r^2} \\ \end{align*} So \(w_i = Ar^{2i} - \frac{r^2}{1-r^2}\). \(w_0 = k \Rightarrow A = k+\frac{r^2}{1-r^2}\) Therefore \(w_n = \left (k+\frac{r^2}{1-r^2} \right)r^{2n} - \frac{r^2}{1-r^2}\) Suppose \(w_n = 0\) then, \begin{align*} && 0 &= \left (k+\frac{r^2}{1-r^2} \right)r^{2n} - \frac{r^2}{1-r^2} \\ \Rightarrow && r^{2n} &= \frac{r^2}{1-r^2} \frac{1}{k+\frac{r^2}{1-r^2}} \\ &&&= \frac{r^2}{k(1-r^2)+r^2} \\ \Rightarrow && 2n \ln r &= 2\ln r - \ln[k(1-r^2)+r^2] \\ \Rightarrow && n &= 1 - \frac1{2\ln r} \ln[k(1-r^2)+r^2)] \end{align*} If \(r = e^{-1}\) then \(\ln r = -1\) \begin{align*} && n &= 1 + \frac12 \ln [k(1-e^{-2}) + e^{-2}] \\ &&&= 1 + \frac12 \ln [e^{-2}(k(e^2-1)+1)] \\ &&&= 1 + \frac12 \ln e^{-2} + \frac12 \ln [1+k(e^2-1)] \\ &&&= \frac12 \ln [1+k(e^2-1)] \end{align*} If \(r = 1\) the recurrence becomes: \(w_{i+1} = w_i - 1\), so \(w_i = k-n\), so we have \(k\) collisions.