This works with any magic square. A magic square can only be odd number x odd number. Try it 5x5 on a sheet of paper!