Browse · MathNet
PrintMathematica competitions in Croatia
Croatia counting and probability
Problem
Let be an odd positive integer. At the beginning in each square of an board there is number . In one move one can choose two squares with a common side and increase or decrease by the numbers in those two squares. If after moves, the sums of numbers in every row and every column are all equal, show that is even. (USSR)
Solution
In each move the sum of all numbers increases or decreases by two, so the sum of all numbers remains even. Let us assume that after moves the sums of numbers in each row and each column is equal and let us denote it by . The sum of all numbers is then equal to . Since this must be even and is odd, we conclude that must be even.
Note that in each move we change the parity of the sum of two adjacent rows or two adjacent columns. First we consider only the moves that change the parity of two adjacent columns. Let denote the number of moves that change the numbers in two squares in -th and -st columns.
Number must be even because these are the only moves that will change the parity of the sum in the first column. The number of moves that will change the parity of the sum in the second column also has to be even and it is , hence is even. Inductively, we conclude that every is even.
Hence the total number of moves that will change the parity of two columns is , which is an even number. Analogously, the total number of moves that will change the parity of two rows is an even number. We conclude that the total number of moves is also even.
Note that in each move we change the parity of the sum of two adjacent rows or two adjacent columns. First we consider only the moves that change the parity of two adjacent columns. Let denote the number of moves that change the numbers in two squares in -th and -st columns.
Number must be even because these are the only moves that will change the parity of the sum in the first column. The number of moves that will change the parity of the sum in the second column also has to be even and it is , hence is even. Inductively, we conclude that every is even.
Hence the total number of moves that will change the parity of two columns is , which is an even number. Analogously, the total number of moves that will change the parity of two rows is an even number. We conclude that the total number of moves is also even.
Techniques
Invariants / monovariantsInduction / smoothing