Reversible squares contain the numbers 1 to n2 and have these features:
Of course, these squares are not magic. However, the (pan)diagonals have the magic sum. And, like the associative magic squares, every pair of cells symmetrically opposite from the center is a complementary pair. So, a reversible square remains reversible not only under Transform 1 and Transform 2, but by swapping only the described rows or columns. From each even order reversible square, the total number of resulting squares is:
For odd order, the number is that for order n - 1.
For each of these groups there is one principal reversible square in which:
ReversibleSquares makes principal reversible squares. It uses a simple algorithm to generate all the formats and write the squares in Frénicle standard form in ascending order.
For any prime number order, there is only one principal reversible square consisting of the sequential numbers.
Heinz, Harvey "Most-perfect Magic Squares" http://www.magic-squares.net/most-perfect.htm
Ollerenshaw, Kathleen and David S. Brée "Most-perfect Pandiagonal Magic Squares" http://www.agnesscott.edu/lriddle/women/abstracts/ollerenshaw_mostperfect.htm
Stewart, Ian "Most-Perfect Magic Squares" http://www.klassikpoez.narod.ru/mk/122-123.pdf