Can you help me solve this problem?
A chessboard cells are numbered 1 to 64 sequentially from cell(1,1) to cell(8,8). You have to place 32 pawns in the cells such that every row and column contains 4 pawns. Prove that in any such configuration, the sum of values of cells the pawn is places is 1040.
EDIT: This question was put on hold for not adding my effort. So adding my thoughts. Once we have a configuration ready we can create further answers fairly easy. One method is a @Anatoly suggested. I also thought of a method of rearranging rows and columns as a whole. Lets say we put first row to bottom and renumber. This will also be a valid configuration. In the new configuration, rows (2-8) becomes(1-7) and row 1 becomes 8. So rows (2-8) will have a reduction of values (2(no. of pawns)*8(increase of one row)*1(no of each rows increased)*7(total rows) and row 1 will get an increase by (2(no.of pawns)*8(increase of one row)*7(no of each rows increased)*1(total rows).
Similarly we can show column shuffle also results in same sum.
I think what is pending is a formal proof for showing every configuration is reachable from any initial configuration. This is intuitively doable from a column, row shuffle
Label the squares with ordered pairs $(a,b)$ where $0\le a\le7$ and $0 \le b\le 7$, with $a$ corresponding to the row and $b$ corresponding to the column, so the ordered pairs range from $(0,0)$ to $(7,7)$. If we define $f(a,b) = 8a+b$, then $f(a,b) + 1$ is the number in square $(a,b)$. Notice that $f(a,b) + f(c,d) = f(a+c, b+d)$
Now suppose the 32 pawns are in squares $(a_1,b_1), (a_2, b_2), (a_3,b_3), \dots (a_{32},b_{32})$. According to the restrictions on pawn placement, the sequence $a_1, a_2, a_3, \dots, a_{32}$ consists of four each of the numbers $0$ through $7$, so $$a_1 + a_2 + a_3 \dots + a_{32} = 4 \cdot (0 + 1 + 2 + \dots +7) = 112$$ and the same is true for the sequence $b_1, b_2, b_3, \dots ,b_{32}$. So the sum of the numbers in these squares is $$\begin{align} \sum_{i=1}^{32} \left( f(a_i,b_i) + 1 \right) &= f \left( \sum_{i=1}^{32} a_i, \sum_{i=1}^{32} b_i \right) + 32 \\ &= f(112, 112) + 32 \\ &= 1008 + 32 \\ &= 1040 \end{align}$$