Consider a board. On each box there's a non-negative integrer number assigned. An operation consists on choosing any two boxes with side in common, and add to this numbers the same integrer number (it can be negative), so that both results are non-negatives.
What conditions must be satisfied initially on the assignment of the boxes, in order to have, after some operations, the number on every box?.
Problem 1379
Official solution
1. Coloring the Board:
- Consider a board. Color the cells of the board like a chessboard, such that no two adjacent cells have the same color. Let's denote the sum of the numbers in the white cells as and the sum of the numbers in the black cells as .
2. Necessity of the Condition:
- In each operation, we choose two adjacent cells and add the same integer (which can be negative) to both cells. This operation does not change the difference between and because each operation affects one white cell and one black cell equally.
- If we want to reach a state where all cells have the number , then both and must be at the end. Therefore, initially, must be equal to .
3. Sufficiency of the Condition:
- Suppose initially. We need to show that it is possible to make all cells through a series of operations.
- We can clear the board one column at a time. Consider the first column. We can perform operations on adjacent cells within this column to make all cells in this column .
- After clearing the first column, we move to the next column and repeat the process. Continue this until only one column remains.
- When only one column remains, we clear the cells one by one until we are left with a board. By the hypothesis, the sums of the numbers in the white and black cells are equal, so the two numbers we are left with are equal. We can then perform one final operation to make both numbers .
4. Conclusion:
- The initial condition that must be satisfied is that the sum of the numbers in the white cells must be equal to the sum of the numbers in the black cells.
The final answer is the sum of the numbers in the white cells must be equal to the sum of the numbers in the black cells.