IMO 1982 SL 10
B4 (BRA 1) A box contains p white balls and q black balls. Beside the
IMO 1982 SL 10
Problem
B4 (BRA 1) A box contains p white balls and q black balls. Beside the box there is a pile of black balls. Two balls are taken out of the box. If they have the same color, a black ball from the pile is put into the box. If they have different colors, the white ball is put back into the box. This procedure is repeated until the last two balls are removed from the box and one last ball is put in. What is the probability that this last ball is white?
Solution
If the two balls taken from the box are both white, then the number of white balls decreases by two; otherwise, it remains unchanged. Hence the parity of the number of white balls does not change during the procedure. Therefore if p is even, the last ball cannot be white; the probability is 0. If p is odd, the last ball has to be white; the probability is 1.