Ah, the pigeonhole principle. There’s a good chance you know of this, but in case you haven’t (or you just “forgot” apparently, showing off in front of your friends even though you’ve never heard of it before), here it is, in simple words:
For example, you have 10 black and 10 white socks in a drawer. If you pick out 3 socks at random, you’re definitely going to have a matching pair. Because even if the first 2 socks are of different colours, the third one will match up with one of them, right?
Let’s extend that sock example. You have 10 black, 10 white, 10 blue, 10 green, 10 red and 10 yellow socks. What’s the maximum number you need to pick out at random this time? The answer is 7, because even if you don’t get a matching pair in the first 6 (i.e., all of them are different colours), the seventh one will match up with one of them.
Okay, now let’s cut to the chase. The pigeonhole principle, though so simple, can be used to prove things that aren’t very intuitive at all. A famous example is proving that at least two people in London have exactly the same number of hairs on their head. This is because the number of hairs on a human head is definitely less than a million (106), and the number of people in London is more than a million. Using the pigeonhole principle, we get the result. (how?)
How about another example? You have a set of integers. Prove that a subset of these can be chosen whose sum is divisible by n.
- +Solution!
Take the n+1 integers given by:
,
,
… until
.
Two of these integers have a difference that is divisible by n.
(why? hint: how many possible remainders can you get when you divide a number by, say, 2? 3? n?)Taking the difference of those two integers, we get the answer.
- +Solution!
Place an equilateral triangle on the plane anywhere, with side length equal to the distance given.
Now since there are 2 colours and 3 points, at least two of those three points have to be the same colour (remember the first socks example?).
So, we have found two points of the same colour at that distance apart.