I was thinking about the following problem:
Let $n\in\mathbb N$ be odd. If I have a symmetric matrix in $M_n(\mathbb{N})$, i.e. a square symmetric matrix of size $n$, for which each column and each row consists of all numbers between $1$ and $n$, then the diagonal consists of all the numbers from $1$ to $n$.
I want to prove this using the pigeonhole principle. Thanks for helping me.
You don't use the pigeonhole principle, but the double counting principle.
Note that since the matrix is symmetric, if an entry appears in the strictly upper right triangle, it must appear again in the strictly lower left triangle, hence appear an even number of times.
The only way for a number to appear an odd number of times, is for it to appear an odd number of times on the diagonal. Hence, each number must appear at least once on the diagonal.