Most-perfect magic square


A most-perfect magic square of doubly even order n = 4k is a pan-diagonal magic square containing the numbers 1 to n2 with three additional properties:
  1. Each 2×2 subsquare, including wrap-round, sums to s/k, where s = n/2 is the magic sum.
  2. All pairs of integers distant n/2 along any diagonal are complementary.

    Examples

Specific examples of most-perfect magic squares that begin with the 2015 date demonstrate how theory and computer science are able to define this group of magic squares.
Only 16 of the 64 2x2 cell blocks that sum to 130 are accented by the different colored fonts in the 8x8 example.
The 12x12 square below was found by making all the 42 principal reversible squares with ReversibleSquares,
running Transform1 2All on all 42, making 23040 of each,, then making the
most-perfect squares from these with ReversibleMost-Perfect. These squares were then scanned for
squares with 20,15 in the proper cells for any of the 8 rotations. The 2015 squares all originated with principal
reversible square number #31. This square has values that sum to 35 on opposite sides of the vertical midline in the first two rows.
201560492451132123928912887
1191367910211510072847621164
251065442946137118978413382
126129869512293142154551857
314713835401431121037813976
113142731081091061344168570
132253561758125130859612194
13811798831348126966433045
827486112631201358010111699
131124919012788191659502352
233426766911414174107110105
144111104771407532372373639

12781314192025263132
349101516212227283334
5611121718232429303536
373843444950555661626768
394045465152575863646970
414247485354596065667172
73747980858691929798103104
757681828788939499100105106
7778838489909596101102107108
109110115116121122127128133134139140
111112117118123124129130135136141142
113114119120125126131132137138143144

Properties

All most-perfect magic squares are panmagic squares.
Apart from the trivial case of the first order square, most-perfect magic squares are all of order 4n. In their book, Kathleen Ollerenshaw and David S. Brée give a method of construction and enumeration of all most-perfect magic squares. They also show that there is a one-to-one correspondence between reversible squares and most-perfect magic squares.
The number of essentially different most-perfect magic squares of order n for 4n = 1, 2,... form the sequence:
For example, there are about 2.7 × 1044 essentially different most-perfect magic squares of order 36.
All order four panmagic squares are most-perfect magic squares.
The second property implies that each pair of the integers with the same background color in the 4×4 square below have the same sum, and hence any 2 such pairs sum to the magic constant.
712114
213811
163105
96154

Physical properties

The image below shows areas completely surrounded by larger numbers with a blue background. A water retention topographical model is one example of the physical properties of magic squares. The water retention model progressed from the specific case of the magic square to a more generalized system of random levels. A quite interesting counter-intuitive finding that a random two-level system will retain more water than a random three-level system when the size of the square is greater than 51 X 51 was discovered. This was reported in the Physical Review Letters in 2012 and referenced in the Nature article in 2018.

Generalizations

Most-perfect magic cubes

There are 108 of these 2x2 subsquares that have the same sum for the 4x4x4 most-perfect cube.