2 problems found
A biased coin has probability \(p\) of showing a head and probability \(q\) of showing a tail, where \(p\ne0\), \(q\ne0\) and \(p\ne q\). When the coin is tossed repeatedly, runs occur. A straight run of length \(n\) is a sequence of \(n\) consecutive heads or \(n\) consecutive tails. An alternating run of length \(n\) is a sequence of length \(n\) alternating between heads and tails. An alternating run can start with either a head or a tail. Let \(S\) be the length of the longest straight run beginning with the first toss and let \(A\) be the length of the longest alternating run beginning with the first toss.
Solution:
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}}.\]