Exercise 1099Combinatorics › Pigeonhole principleOlympiadAdded 3 Nov 2026
Pigeonhole in a Latin square
#pigeonhole#Latin square#entries
Statement
In an array filled with entries from , show that if each row has all distinct values, then each column also has distinct values.
Hint
Each row is a permutation of . Count occurrences of each value.
Show solutionHide solution
Solution
Row constraint. Each row contains each value exactly once. So value appears times in the whole array.
Column constraint. Value appears at most once per column (if it appeared twice in a column, that column would have a repeat). With total occurrences and columns, must appear exactly once per column.
Conclusion. Each column contains each value exactly once (Latin square property).