Maths WorkshopMaths problems with full solutions
Exercise 1808Combinatorics › Pigeonhole principleOlympiadAdded 3 Nov 2026

Graph theory via pigeonhole

#pigeonhole#graph#degree

Statement

Show that any simple graph on n≥2n\ge 2 vertices has two vertices of the same degree.

Hint

Degrees in {0,…,n−1}\{0,\ldots,n-1\}, but 00 and n−1n-1 cannot both occur.

Show solutionHide solution

Solution

Degrees. Each degree is in {0,…,n−1}\{0,\ldots,n-1\}.

Exclusion. A vertex of degree 00 is isolated; a vertex of degree n−1n-1 is adjacent to all. Both cannot occur simultaneously.

Pigeonhole. So at most n−1n-1 distinct degrees among nn vertices: two coincide.

Conclusion. Any graph has two vertices of the same degree.