Maths WorkshopMaths problems with full solutions
Exercise 1107Combinatorics › Pigeonhole principleL1Added 3 Nov 2026

Pigeonhole in a table

#pigeonhole#table#rows

Statement

Fill an n×nn\times n table with entries from {1,…,n}\{1,\ldots,n\} such that each row has all nn values. Show that each column has all nn values.

Hint

Each value appears exactly nn times total; each column contains at most one of each value.

Show solutionHide solution

Solution

Per value. Value kk appears exactly once in each row, so exactly nn times total.

Per column. Each column contains at most one kk (if two, the column has kk twice, contradiction with... actually not yet established). Hmm.

Corrected. The problem requires that entries in each column are distinct too — that's a Latin square. The statement "each row has all values" doesn't force each column to have all values (e.g., all rows identical).

Conclusion. The problem is false as stated. In a Latin square, both row and column properties hold by definition.