Problem:
The integers are written in the squares of a chess board, such that for each , the numbers and are in squares that share an edge. What is the largest possible sum that can appear along one of the diagonals?
Problem:
The integers are written in the squares of a chess board, such that for each , the numbers and are in squares that share an edge. What is the largest possible sum that can appear along one of the diagonals?
Solution:
Answer: 432 Our answer is .
One possible configuration:
| 26 | 25 | 24 | 23 | 18 | 17 | 8 | 7 |
|---|---|---|---|---|---|---|---|
| 27 | 52 | 53 | 22 | 19 | 16 | 9 | 6 |
| 28 | 51 | 54 | 21 | 20 | 15 | 10 | 5 |
| 29 | 50 | 55 | 56 | 57 | 14 | 11 | 4 |
| 30 | 49 | 44 | 43 | 58 | 13 | 12 | 3 |
| 31 | 48 | 45 | 42 | 59 | 60 | 61 | 2 |
| 32 | 47 | 46 | 41 | 40 | 39 | 62 | 1 |
| 33 | 34 | 35 | 36 | 37 | 38 | 63 | 64 |
Consider the smallest value on the main diagonal. All numbers from to must lie on one side of the diagonal since the main diagonal disconnects the board into two regions, and by assumption, all numbers less than cannot lie on the main diagonal. Therefore, (one more than the seventh triangular number). But if , then the sum of the numbers on the main diagonal is at most , as these numbers must be odd. Similarly, is also not optimal.
This leaves as a possibility. But if this were the case, the only way it beats our answer is if we have , which would require to appear sequentially along the diagonal, forcing to be in one of the corners.
Now label the squares (row, column) with being the top left and being the bottom right. Assume WLOG that occupies . Since and are in and , respectively, we must have in or , and WLOG, assume it's in . Since is next to , it is not difficult to see that must be occupied by (all numbers between and must have and as neighbors). Since is above the main diagonal, all numbers from to must also be above the main diagonal. Since there are squares above the main diagonal, there is exactly one number above the main diagonal greater than .
Notice that must occupy or . If it occupies , then we are stuck at , since it must contain a number between and , which is impossible. Therefore, must occupy , and no more numbers greater than can be above the main diagonal. This forces , and to occupy , respectively. But we see that occupies and occupies , leaving nowhere for .
This is a contradiction, so our answer is therefore optimal.
Alternate solution: Another method of proving that is to note that each side of the diagonal has squares, of which are one color and of which are the other color. As the path has to alternate colors, one can make at most steps before moving on the diagonal.