Browse · MathNet
PrintChina Mathematical Olympiad
China algebra
Problem
Given a prime number , let be a matrix such that its entries are exactly in some order. The following operation is allowed for a matrix: add one to each number in a row or a column, or subtract one from each number in a row or a column. The matrix is called “good” if one can take a finite series of such operations resulting in a matrix with all entries zero. Find the number of good matrices .
Solution
We may combine the operations on the same row or column, thus the final result of a series of operations can be realized as subtracting integer from each number of -th row and subtracting integer from each number of -th column. Thus, the matrix is good if and only if there exist integers , such that for all .
Since the entries of are distinct, are pairwise distinct, and so are . We may consider only the case that since swapping the value of and results in swapping the -th row and -th row, which is again a good matrix. Similarly, we may consider only the case that , thus the matrix is increasing from left to right, also from top to bottom.
From the assumptions above, we have , or equals . We may consider only the case that since the transpose of the matrix is again good. Now we argue by contradiction that the first row is . Assume on the contrary that is on the first row, but is not, , therefore . We call consecutive integers a “block”, and we shall prove that the first row consists of several blocks, that is, the first numbers is a block, the next numbers is again a block, and so on.
If it is not so, assume the first groups of numbers are “blocks”, but the next numbers is not a “block” (or there are no numbers remaining). It follows that for ,
is a "block", the first columns of the matrix can be divided into submatrices , , , each submatrix is a "block". Now assume , let be the smallest positive integer such that is not on the first row, then . Since , we have , therefore lies in the first columns. Therefore, is contained in one of the submatrices mentioned above, which is a "block", however are not in this "block", which is a contradiction.
We showed that the first row is formed by blocks, in particular , however, , and is a prime, which is impossible. So we conclude that the first row is , the -th row must be . Thus up to interchanging rows, columns and transpose, the good matrix is unique, the answer is therefore .
Since the entries of are distinct, are pairwise distinct, and so are . We may consider only the case that since swapping the value of and results in swapping the -th row and -th row, which is again a good matrix. Similarly, we may consider only the case that , thus the matrix is increasing from left to right, also from top to bottom.
From the assumptions above, we have , or equals . We may consider only the case that since the transpose of the matrix is again good. Now we argue by contradiction that the first row is . Assume on the contrary that is on the first row, but is not, , therefore . We call consecutive integers a “block”, and we shall prove that the first row consists of several blocks, that is, the first numbers is a block, the next numbers is again a block, and so on.
If it is not so, assume the first groups of numbers are “blocks”, but the next numbers is not a “block” (or there are no numbers remaining). It follows that for ,
is a "block", the first columns of the matrix can be divided into submatrices , , , each submatrix is a "block". Now assume , let be the smallest positive integer such that is not on the first row, then . Since , we have , therefore lies in the first columns. Therefore, is contained in one of the submatrices mentioned above, which is a "block", however are not in this "block", which is a contradiction.
We showed that the first row is formed by blocks, in particular , however, , and is a prime, which is impossible. So we conclude that the first row is , the -th row must be . Thus up to interchanging rows, columns and transpose, the good matrix is unique, the answer is therefore .
Final answer
2(p!)^2
Techniques
MatricesPrime numbersEnumeration with symmetry