A ‘magic square’ of size $n$ is an $n \times n$ array of real numbers such that all the rows, all thecolumns and the two main diagonals have the same sum.
I am trying to determine the dimension ,over $\mathbb R$, of the vector space of $n \times n$ magic squares. I have worked out that for $n=2$ the dimension is $1$ and for $n=3$ the dimension is $3$. I am struggling to generalise though. Hints would be appreciated