Solution

ID: past-exam-of-the-year-1-of-the-computer-science-course-of-the-university-of-oxford/2021/discrete-mathematics-continuous-mathematics-and-probability/8/a/v/solution

Conditional on a contiguous red block, its possible starting positions remain equally likely because their original colour patterns had equal probabilities. The first card is red exactly when that block starts at position . Hence
This also follows by dividing the probability of the single favourable block position, , by the probability of all block positions.

New to topics? Read the docs here!