2. Can a table of size n×n be filled with numbers −1,0,1 so that the sums in all rows, all columns, and on the main diagonals are different? The main diagonals of the table are the diagonals drawn from the top left corner of the table to the bottom right and from the top right corner of the table to the bottom left.
This one wants a proof. Work it on paper, then read the official solution and mark
yourself. Be honest about it: the record is only any use to you if it is.
Official solution
Solution. A total of 2n+2 sums are considered. Note that each of these sums is an integer, the largest possible sum is n=1+1+1+…+1 ( n ones), and the smallest sum is −n=−1+(−1)+…+(−1) ( n minus ones). On the segment [−n;n], there are exactly 2n+1 integers. Then, by the Pigeonhole Principle, at least two sums will be equal. Answer: it is impossible.
Source: NuminaMath-1.5,
licensed Apache-2.0.
Statement and solution reproduced as published; topic, difficulty and ordering added
by this site.