powered by
magic(n)
n
1
N^2
This value or the characteristic sum for a magic square of order $n$ is $sum(1:n^2)/n$.
magic(3)
Run the code above in your browser using DataLab