Exercise 1626Combinatorics › Counting principlesOlympiadAdded 3 Nov 2026
Pigeonhole in a graph
#pigeonhole#graph#vertex degree
Statement
In any group of people, show that two have the same number of friends in the group.
Hint
Each person can have to friends, but and cannot both occur.
Show solutionHide solution
Solution
Degrees. Each degree is in . But (no friends) and (everyone else) cannot both occur: if one person has friends, everyone else has ; if someone has friends, no one has .
Pigeonhole. So there are at most possible degree values for people: two have the same degree.
Conclusion. Two people have the same number of friends.