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/ii/solution

Every position in the random permutation has the same marginal colour probability, so . One can verify this with the law of total probability, conditioning on the first card:
Here because both colour counts are positive.

New to topics? Read the docs here!