Brainteaser iconBrainteaser - Socks

Socks
Probability
In a drawer filled with socks of different colors, how many socks must you pull out, without looking, to ensure you have at least one matching pair? Let's start with a scenario where there are only black and white socks. Then, generalize your solution to drawers with socks of N different colors.