Maths WorkshopMaths problems with full solutions
Exercise 260Combinatorics › Pigeonhole principleHigh schoolAdded 3 Nov 2026

Socks in the dark

#pigeonhole#socks#drawers

Statement

A drawer contains black socks and white socks. In total darkness, how many socks must you pick to be sure of getting a matching pair?

Hint

There are 22 colors ("holes"). How many socks guarantee 22 of the same color?

Show solutionHide solution

Solution

Pigeonhole. 22 colors, so picking 33 socks forces two of the same color.

Conclusion. 33 socks are enough to guarantee a matching pair (in the worst case).