Learn / Library / Brainteasers
Socks in the dark
A drawer holds black, grey and white socks, all loose and mixed. In the dark you pull out socks one at a time without looking. What is the fewest number of socks you must pull out to be sure of having at least socks of the same colour?
Checking an answer needs JavaScript. The hint and the solution open without it.
Hint
Imagine the unluckiest possible sequence of draws.
Solution
- In the worst case you avoid of a colour for as long as possible by taking at most of each colour.
- Every colour has at least socks, so the unlucky run can reach socks.
- The next sock must be the rd of some colour, so the answer is .
Answer: