Pan-Anti-Magic Squares

The classical definition of an anti-magic square is a square of consecutive numbers that has a different sum for each of its rows, columns, and diagonals. As a further restraint, these sums are also consecutive. My son, Neil, generated a set of anti-magic squares that have additional features. These are the best antagonist to pan-magic squares. The name coined for this new type is pan-anti-magic square. They are pan because the features remain intact when the square is translated and transformed.

A pan-anti-magic square must contain all numbers from 0 to n2-1. They must have pan-sums that can be mapped to a set bounded by the magic constant plus or minus half the set size. The set must have all consecutive numbers skipping the expected magic sum.

Pan-Anti-Magic {2Compact2} Square with 32 sums
SquareRowsDiagonals{2Compact2}
0191222241714202721
582419432342281529
14153638374446393340
710111341163618314532
26342535Columns

A major difference between traditional anti-magic squares and the pan-anti-magic squares is the skipping of the magic sum. However, in doing only this, it is possible to pan several features as never done before. The lack of the magic sum is required for this type because it causes the set of sums above and below to be equal in size. Further analysis shows that both upper and lower sums are symmetric in every respect. This symmetry can be seen in the following examples.

The first square at right is an order-4 pan-anti-magic square with 32 sums in consecutive order skipping the expected magic constant for order-4 squares. There is only one possible square of this type. The sums range from 14 to 46 skipping the magic constant 30.

Pan-Anti-Magic Compact Square with 20 sums
SquareRowsDiagonals{2Compact3}
067112422212029
12131023727283833
8359253132
151414344039
35362326Columns
Pan-Anti-Magic Compact Square with 20 sums
SquareRowsDiagonals{2Compact3}
0114112621202227
7121063528294031
32513233233
15984363938
25243734Columns

The next two squares are order-4 pan-anti-magic squares with 20 sums in consecutive order skipping the magic constant expected for order-4 squares. Instead of the anti-{2Compact2} feature, these squares have the anti-{2Compact3} feature, i.e. the corners of all 3x3 squares are included in the groups that add to different sums. The sums range from 20 to 40 skipping the magic constant 30.

Lastly, are 26 squares of order-4 that are pan-anti-magic with no additional features. These all have 16 sums in consecutive order skipping the expected magic constant for order-4 squares. The sums range from 22 to 38 skipping the magic constant 30. These squares were all found by an exhaustive search of all possible order-4 squares.

SquareRowsDiagonals
01147223124
61038272925
2111213382835
15459333236
23263437Columns
SquareRowsDiagonals
01129223227
71042232428
631415383136
131158373329
26253534Columns
SquareRowsDiagonals
01912223326
71152252927
361415382431
131048353436
23283237Columns
SquareRowsDiagonals
011110223526
71363292325
541415382837
12928313432
24273336Columns
SquareRowsDiagonals
011110223223
91282312628
541415382534
13736293735
27243633Columns
SquareRowsDiagonals
021410263225
71163272228
511315343138
12948333529
24233736Columns
SquareRowsDiagonals
031311272923
7951222631
421215332834
141068383732
25243635Columns
SquareRowsDiagonals
03149262425
10742232836
611215343332
131185373527
29223831Columns
SquareRowsDiagonals
03156242231
910512363223
213117333728
14841272938
25343526Columns
SquareRowsDiagonals
03137232233
109414373524
112115293625
15862312738
26323428Columns
SquareRowsDiagonals
04109233127
71212222429
651115373236
131438383328
26352534Columns
SquareRowsDiagonals
041012263322
71462292527
351115342435
13918313836
23322837Columns
SquareRowsDiagonals
04612223531
91315283323
310158362529
141127342737
26382432Columns
SquareRowsDiagonals
04149272325
10732222837
611115333432
131285383526
29243631Columns
SquareRowsDiagonals
05117232226
12912242938
841015373531
131463363425
33322827Columns
SquareRowsDiagonals
051413322522
121018313826
96112283437
15374292335
36243327Columns
SquareRowsDiagonals
05127242925
13418263727
911153383135
142610322333
36223428Columns
SquareRowsDiagonals
061012283122
71442272529
35915322635
131118333834
23362437Columns
SquareRowsDiagonals
06107232622
111331282534
85915373135
141224323829
33362427Columns
SquareRowsDiagonals
06315243725
111372333523
84141272234
129510362638
31322928Columns
SquareRowsDiagonals
061011272824
13234223225
97125333135
158114382936
37232634Columns
SquareRowsDiagonals
07313233626
111251293424
86152312232
141049372838
33352725Columns
SquareRowsDiagonals
07913292233
143410313524
56111233625
151228372738
34282632Columns
SquareRowsDiagonals
081110292523
91212242635
54715313234
131436363728
27382233Columns
SquareRowsDiagonals
09713292434
103414313222
128152373828
11516232636
33252735Columns
SquareRowsDiagonals
091512362332
10365243122
48132273829
111417332837
25343526Columns