Prove Is a Filled Magic Square

394 Views Asked by At

Can someone prove that if $S$ is a filled magic square, and $T$ is obtained from $S$ by switching two rows or two columns, then $T$ is also a filled magic square.

So an example that I came up with was: enter image description here and enter image description here are magic squares related by the exchange of the first two columns.

1

There are 1 best solutions below

3
On BEST ANSWER

Suppose we switch two columns. Clearly, the column sums are unchanged by this operation. If they were all equal before the switch, they are still equal because the columns themselves are exactly the same.

In each row, the column switch operation leaves all the numbers the same; all it does is reorder the numbers by switching positions of two of the numbers in the row. Since addition is commutative, the row sum is unchanged.

The same argument shows that switching rows does not change the row or column sums.

However, the argument does not show that the diagonal sums are unchanged, and it cannot, because your example shows that they can change.