A magic square is a layout of the numbers $1,2, ..., n^2$ in a square of size n where the total of each row, column and diagonal is equal to $n(n^2+1)/2$.
In the book 'The Zen of Magic Squares, Circles and Stars' by C. Pickover, on page 4, I read that the total number of different magic squares of size 3 is 1, size 4 = 880 and size 5 = 275 305 224. My question is the following.
How to calculate the total number of magic squares of size 4, size 5 and if possible size $n$?