A box contains $p$ red balls and $q$ yellow balls. Suppose the following procedure is repeated until a single ball remains in the box:
- Remove two balls from the box;
- If both have the same color, put a red ball in the box;
- Otherwise, put an yellow ball in the box.
In both cases, do not put the removed balls back in the box.
What's the color of the last ball? Prove by induction in the number of balls $p+q$.
Firstly, I thought about the base case: assuming $p+q=1$, either there is a red ball or an yellow ball. What do I do with this? I don't know even how to guess what would be the color of the last ball. Does this problem require knowledge of probability theory?