Problem:
A table is to be filled with integers in such a way that each of the 4026 rows, columns, and main diagonals has a different sum. What is the smallest number of distinct values that must be used in the table?
Solution
Solution:
Answer: 3.
If at most two numbers are used, say and , the sum of every row and column is completely determined by the number of 's it has, which ranges from 0 to 2012. Thus there are only 2013 possible sums, not enough for the 4026 rows, columns, and diagonals.
On the other hand, if is a large integer (say, 10000), then it is possible to fill the table using 0, 1, and . Here is a example that generalizes readily:
| 1 | 0 | 0 | 0 | 0 | 0 |
|---|---|---|---|---|---|
| 1 | 1 | 0 | 0 | 0 | |
| 1 | 1 | 1 | 0 | ||
| 1 | 1 | 0 | |||
| 1 | 0 | 0 | 0 | ||
| 0 | 0 | 0 | 0 | 0 |
Want a route through all this instead of an archive? The track
puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.