Grogono Photo Pages
Size:  Index   3x3   4x4   5x5   6x6   7x7   8x8   9x9   10x10   11x11   12x12   13x13 
 

The 9x9 Pan-Magic Squares

A Short 9x9 History

It used to be believed that there were no 9x9 pan-magic squares - probably because there was no very obvious pattern to use to create a regular 9x9 square. Constructing a square by expanding a 3x3 square would produce a magic square but not a pan-magic one. In addition, amongst odd-order panmagic squares, most interest was focused on the regular prime number squares. These lent themselves to analysis more readily and to calculation of the number of regular pan-magic squares which could be constructed with an underlying pattern.

A 9x9 Square Analyzed.

Against this background it was exciting, therefore, when Mutsumi Suzuki, in his E-Mail of Nov 5th 1996, reported that " . . . Mr. Gakuho Abe decomposed a panmagic square of 9 order as:"

435687210
104356872
721043568
687210435
356872104
043568721
210435687
872104356
568721043
Matrix A
537537537
294294294
861861861
753753753
429429429
186186186
375375375
942942942
618618618
Matrix B

9x9 Page: Latin Squares   Carpets   How many?   4 Versions   Alphabetical   Total Number   Numerical   Top 

Latin Squares?

If Mr. Abe had used letters A to I instead of numbers he would have made two orthogonal Latin squares which, when combined, would make one "Graeco-Latin" square.

The Magic Carpet Approach

Although there is clearly a pattern in Mr. Abe's two squares, its rationale is not very obvious. I therefore subjected both squares to the analysis used previously for smaller squares. I first normalized the second square by subtracting one from each cell and then decomposed both squares to obtain four different 9x9 pan-magic carpets (see the squares below 1 - 4 labeled Abe). I subsequently experimented with other designs and managed to create two more order-9 magic carpets (the two squares 5 and 6 labeled Grog).

Note:

To make these carpets more readily compared, some have been normalized by rotation or reflection, and each carpet has been assigned letters so that the top row, at least the first few letters, is in alphabetcal order. For this reason, a reader trying to relate an individual carpet to the original Abe's squares may have to reflect or rotate the square "back" from the form below.

9x9 Page: Latin Squares   Carpets   How many?   4 Versions   Alphabetical   Total Number   Numerical   Top 

Six, Order-9, Pan-Magic Carpets

1 - Abe
ABCABCABC
ABCABCABC
ABCABCABC
BCABCABCA
BCABCABCA
BCABCABCA
CABCABCAB
CABCABCAB
CABCABCAB
3 - Abe
ACBBACCBA
ACCBAACBB
AACBBACCB
BACCBAACB
BAACBBACC
BBACCBAAC
CBAACBBAC
CBBACCBAA
CCBAACBBA
5 - Grog
ABACACBCB
BCBABACAC
CACBCBABA
ABACACBCB
BCBABACAC
CACBCBABA
ABACACBCB
BCBABACAC
CACBCBABA
2 - Abe
ACBBACCBA
BACCBAACB
CBAACBBAC
ACBBACCBA
BACCBAACB
CBAACBBAC
ACBBACCBA
BACCBAACB
CBAACBBAC
4 - Abe
ABCBCACAB
ABABCBCAC
ACABABCBC
BCACABABC
BCBCACABA
BABCBCACA
CABABCBCA
CACABABCB
CBCACABAB
6 - Grog
ACBCBABAC
BABACACBC
CACBCBABA
CBABACACB
ACACBCBAB
BCBABACAC
BACACBCBA
CBCBABACA
ABACACBCB

9x9 Page: Latin Squares   Carpets   How many?   4 Versions   Alphabetical   Total Number   Numerical   Top 

Why Four?

The four carpets I had created from Abe's squares lead to a series of questions and surprises. First, did the original designer of Abe's square use patterns like these magic carpets? If so, why had he used so many different ones? Was variety essential? Initially, I assumed "Yes!" because surely he would have found it simpler to use a single pattern if that were possible (see below). I now think it may be more likely that these underlying patterns may not have been recognised.

Total of Six?

To date I have found no others. Some, which initially appeared to be quite different, could always be manipulated to match one of the above carpets. The obvious and important questions is: "May there still be other order-9, pan-magic carpets?"

Experiments with the Carpets.

With six different carpets to play with I started to investigate their properties. This lead to the second surprise. Far from a mixture being required, I found that any one of the six magic carpets can, by itself, create an order-9, pan-magic square. With suitable manipulation, each carpet can create four mutually orthogonal carpets.

9x9 Page: Latin Squares   Carpets   How many?   4 Versions   Alphabetical   Total Number   Numerical   Top 

Four versions of the first carpet.

The set of squares below is a complete set of four mutually orthogonal magic carpets created by manipulating the first carpet obtained from Abe's square. Each of the other five magic carpets can be manipulated in the same way.

ABCABCABC
ABCABCABC
ABCABCABC
BCABCABCA
BCABCABCA
BCABCABCA
CABCABCAB
CABCABCAB
CABCABCAB

1. The magic carpet (left) can be repeated in all directions as an endless pattern. The pan-magic properties are preserved regardless of where the 9x9 sample is obtained.

2. When this first square is twisted along a main diagonal it makes the second magic carpet (right)

AAABBBCCC
BBBCCCAAA
CCCAAABBB
AAABBBCCC
BBBCCCAAA
CCCAAABBB
AAABBBCCC
BBBCCCAAA
CCCAAABBB
CCCAAABBB
BBBCCCAAA
AAABBBCCC
CCCAAABBB
BBBCCCAAA
AAABBBCCC
CCCAAABBB
BBBCCCAAA
AAABBBCCC
3. Magic carpet number three (left) is created by rotating the first carpet ninety degrees clockwise (or by reflecting carpet 2 horizontally).

4. The fourth magic carpet (right) is then created by twisting number three along the other main diagonal (or by reflecting carpet 1 horizontally).

CABCABCAB
CABCABCAB
CABCABCAB
BCABCABCA
BCABCABCA
BCABCABCA
ABCABCABC
ABCABCABC
ABCABCABC
9x9 Page: Latin Squares   Carpets   How many?   4 Versions   Alphabetical   Total Number   Numerical   Top 

A Composite Alphabetical Square

When these four versions of the one magic carpet are combined, they make a composite alphabetical square. Every possible sequence of letters is produced; and, when all of the sequences in any row, column, or diagonal are "added together", the letters "A", "B", and "C" occur three times as the first character, as well as three times as the second, third, and fourth - a true recipe for a pan magic square.

AACCBACACACBABACBBAACBABACBCBCBACCBB
ABBCBBBACBBBACCCBCCACCCBAAACBAAACAAB
ACACBCAACCABAABCBABACABBABCCBBCACBCB
BACBCACCAACABBABCBACABAABCBBCCBCACBA
BBBBCBBCABBABCCBCCCCACCABAABCAACAAAA
BCABCCACACAABABBCABCAABABBCBCBCCABCA
CACAAACBBACCCBAAABABBBACCCBAACBBBCBC
CBBAABBBBBBCCCCAACCBBCCCCAAAAAABBAAC
CCAAACABBCACCABAAABBBABCCBCAABCBBBCC

A Family of Squares

This Composite Alphabetical Square generates a whole family of numerical pan-magic squares by substitution. As with smaller squares, it is advantageous to fix the zero position by assigning the value zero to the letter "A" in all four character positions. Then, at each character position, the values 1 and 2 can be assigned to either the letter "B" or the letter "C" - a total of 16 options. There are another 24 options in the assignment of the factors 27, 9, 3, and 1 to the four character positions, i.e., a potential total of 16 x 24 = 384 magic squares.

Character:  1  2  3 4
A =  0 0 0 0
B =  27 9 3 1
C =  54 18 6 2

Assigning Values:

This table on the right shows the character values for one such assignment. Thus, a cell containing CBAC would be assigned a numerical value of 54 + 9 + 0 + 2 = 65.

Duplications:

The 384 numerical squares generated by a single alphabetical square actually consist of 192 identical pairs, i.e., every alphabetical 9x9 square creates 192 unique, regular, pan-magic squares. Each of these yields 81 versions by translocation and each of these another 8 by reflection and rotation to give a total of 192 x 81 x 8 = 124416 pan-magic squares for each alphabetical square.


9x9 Page: Latin Squares   Carpets   How many?   4 Versions   Alphabetical   Total Number   Numerical   Top 

Total Number of Squares - Some succeed, some fail.

The six, order-9, pan-magic carpets, each with four variations, gives a total of 4 x 6 = 24 pan-magic carpets. At least, that is all I have been able to make. Four carpets are required to make an alphabetical square which then generates the numerical pan-magic squares.

It would be simpler if every possible combination of carpets made a pan-magic alphabetical square. Unfortunately, many combinations don't! Moreover, I see no way to predict which combinations succeed and which fail. Therefore, the magic carpet approach may be a wonderful technique for making and understanding some order-9, regular, pan-magic squares; but, as yet, it makes little contribution to predicting the total available number of such squares.


Initial Testing.

To predict the possible number of Alphabetical squares I wrote a Hypercard Stack which, in turn, combined four of the 24 Latin Squares above. Each resulting square was assigned a unique score to assist in later sorting. This was stored with the numbers of the component Latin squares. Initial experiments suggested that only about 20% of the possible combinations produced pan-magic alphabetical squares.

9x9 Page: Latin Squares   Carpets   How many?   4 Versions   Alphabetical   Total Number   Numerical   Top 

And, Finally, an Actual, Numerical, Regular, Order-9, Pan-Magic Square

When the composite alphabetical square is substituted with the numerical values in the table we get this order-9, pan-magic square with a magic sum of 360.

83361113664234876
14396726517922755
20457353058174270
3462637659497721
40681252802428560
46741831593437115
60735631038752250
66134178255354129
72194757432691644

Congratulations!

Any reader who has reached the bottom of this page must be a glutton for punishment - or extremely interested. If you really did reach this point - please write me an E-Mail note and comment on this page. Thank-you.



 
 
 
 



Copyright © Mar 2010 Magic Squares
Website
Updated
Mar 6, 2010