Solution

ID: past-exam-of-the-year-1-of-the-computer-science-course-of-the-university-of-oxford/2015/discrete-mathematics-continuous-mathematics-and-probability-resit/7/b/i/solution

To obtain the st head on toss , the first tosses must contain exactly heads, and the last toss must be a head. There are choices of the first head positions. By independence, each such arrangement followed by a head has probability . The arrangements are disjoint, so
This is the negative binomial stopping argument, with counting all tosses up to and including the st success. It is not merely the probability of heads somewhere among tosses: the last toss is prescribed to be a head.

New to topics? Read the docs here!