IMC 2024 · Problem 9
Statement
A matrix is called nice, if it has the following properties:
(i) the set of all entries of is for some integer ;
(ii) the entries are non-decreasing in every row and in every column: and ;
(iii) equal entries can appear only in the same row or the same column: if , then either or ;
(iv) for each , there exist and such that and .
Prove that for any positive integers and , the number of nice matrices is even.
For example, the only two nice matrices are and .
Official solution
Proposed by Fedor Petrov, St Petersburg State University.