A biased coin has probability of showing a head and probability of showing a tail, where , and . When the coin is tossed repeatedly, runs occur. A straight run of length is a sequence of consecutive heads or consecutive tails. An alternating run of length is a sequence of length alternating between heads and tails. An alternating run can start with either a head or a tail.
Let be the length of the longest straight run beginning with the first toss and let be the length of the longest alternating run beginning with the first toss.
- Explain why and find . Show that .
- Show that and determine the relationship between and .
- Show that, for , and determine the corresponding relationship between and . [You are advised not to use in this part.]