We fill numbers in cells of $8\times 8$ table so that the sum of all neighbour cells to given cell is 1. What is the sum of all numbers in the table?
Solution 1:
Observe that the marked cells in this figure
satisfy that its neighbors covers exactly the whole grid (each cell is neighbor of exactly one of the marked cells), so the sum of all numbers is the sum of the neighbors of the marked cells and there are $20$ marked cells so the sum is $20$.
Can you generalize the problem and prove that for a $2n\times 2n$ grid the sum is $n(n+1)$?
Solution 2:
Here is a proof without words that the sum of all entries is equal to $20$. Consider the below coloring. Each group of the colored groups of squares are the set of neighbors of another square, so the labels of each group must sum to one. There are ten groups, covering half of the squares of the board; a symmetric arrangement covers so the other half. The board is partitioned into $10\times 2=20$ groups, each summing to one, so the board must sum to $20$.
Here is a proof with two pictures and several words of why no matrix exists when $n$ is odd, illustrated when $n=7$.
In the left picture, we partition the off-diagonal entries into three groups whose sum is $1$, proving the sum of the off-diagonal entries is $3$. In the right picture, we similarly prove the sum of the off-diagonal entries is $4$. Contradiction!