Two people with the same number of friends
Statement
At a party with people, friendship is mutual. Prove that two people have the same number of friends at the party.
Hint
The number of friends of a person is an integer between and . That gives possible values for people, which is one too many to conclude directly. Can the values and both occur?
Show solutionHide solution
Solution
Idea. Count the possible values and show that there are really only of them.
Values. Each person has between and friends. Suppose some person has friends and some person has friends. Then is a friend of everybody, in particular of , so has at least one friend: contradiction. Hence the values and do not occur together.
Pigeonhole.
- If nobody has friends, all the numbers of friends lie in .
- If somebody has friends, then nobody has friends, and all the numbers lie in .
In both cases the people take at most different values, so two people have the same number of friends.
Remark. The statement is false if we allow a person to be their own friend or friendships to be one-way. The mutuality is used exactly once, in the key step.
Lesson. Pigeonhole: count the boxes carefully, and look for a hidden constraint that removes one box.