Matching socks in the dark
Asked at Optiver, IMC
A drawer contains socks of just two colors: black and blue, mixed together, with plenty of each. The room is completely dark, so you cannot see the colors as you pull socks out.
How many socks must you take out to be certain you have at least one matching pair?
Follow-up: how many to be sure of a matching pair if there are three colors?
Show a hint
Imagine the worst possible luck. How many socks could you draw and still not have a pair?