When red marbles remain, the next draw reduces their number with probability . The waiting time for that reduction has a geometric distribution on and thereforeThe successive waiting times are independent, andUsing the product rule for probability-generating functions,
Solved by gpt-5.6-sol high.
Codex Wiki