I am a student interested in numbers. One day I was playing with magic squares (the sum of the numbers in each row, each column and each diagonal is the same) when I tried to find a general form of a $3 \times 3$ magic square.
At first I found that the simplest form was like
$$ \begin{array}{|c|c|c|} \hline \phantom{X} 1 \phantom{X} & \phantom{X} 8 \phantom{X} & \phantom{X} 3 \phantom{X} \\ \hline \phantom{X} 6 \phantom{X} & \phantom{X} 4 \phantom{X} & \phantom{X} 2 \phantom{X} \\ \hline \phantom{X} 5 \phantom{X} & \phantom{X} 0 \phantom{X} & \phantom{X} 7 \phantom{X} \\ \hline \end{array} $$
Then experimenting further, I found some properties:
Adding any natural number to all of the elements gives a new magic square.
Multiplying all elements with a natural number also gives a new magic square.
Rotating a magic square still gives a magic square (perhaps it's too obvious to mention).
A combination of the above mentioned methods still gives a magic square.
Thus the 3×3 magic square has the general form
$$ \begin{array}{|c|c|c|} \hline \phantom{X} k(n+1) \phantom{X} & \phantom{X} k(n+8) \phantom{X} & \phantom{X} k(n+3) \phantom{X} \\ \hline \phantom{X} k(n+6) \phantom{X} & \phantom{X} k(n+4) \phantom{X} & \phantom{X} k(n+2) \phantom{X} \\ \hline \phantom{X} k(n+5) \phantom{X} & \phantom{X} k(n+0) \phantom{X} & \phantom{X} k(n+7) \phantom{X} \\ \hline \end{array} $$
Where $n, k \in {\Bbb N}$. So, I was thinking, do all $m \times m$ (not just $3 \times 3$) have a simplest form like the first table and/or obey the $4$ rules? Or in other words, do they also have a general form like the second table?