Office Applications and Entertainment, Magic Squares | ||
Index | About the Author |
6.09 Pan Magic Squares, Non Consecutive Integers, Part 1
As proven in Section 6.1 it is not possible to construct Pan Magic Squares of the 6th order based on the consecutive distinct integers 1 ... 36 and related Magic Constant 111.
According to William Symes Andrews subject square was originally constructed by Dr. C. Planck (ref. Magic Squares and Cubes (1909), Fig. 393).
6.09.2 Analysis (Pan Magic, Most Perfect)
The properties mentioned in section 6.09.1 above result in following set of linear equations:
All rows, columns and (pan)diagonals sum to the Magic Constant:
a( 1) + a( 2) + a( 3) + a( 4) + a( 5) + a( 6) = 150
Each 2 × 2 sub square sums to 2/3 * Magic Constant:
a(i) + a(i+1) + a(i+ 6) + a(i+ 7) = 100 with 1 =< i < 30 and i ≠ 6*n for n = 1, 2 ... 5
Each 3 × 3 sub square sums to 3/2 * Magic Constant:
Σ a(i + j) = 225 with 1 =< i =< 22 and i ≠ 6 * n and i ≠ (6 * n - 1) for n = 1 ... 4
All pairs of integers distant 6/2 along each diagonal sum to 1/3 * Magic Constant:
The resulting number of equations can be written in the matrix representation as:
which can be reduced, by means of row and column manipulations, and results in following set of linear equations:
a(33) = 150 - 2 * a(34) - 2 * a(35) - a(36)
The solutions can be obtained by guessing a(36), a(35), a(34) and a(30)
and filling out these guesses in the abovementioned equations.
0 < a(i) =< 49 for i = 1, 2 ... 29, 31 ... 33
An optimized guessing routine (MgcSqr6g1), produced 288 Most Perfect Pan Magic Squares (ref.
Attachment 6.10.2) within 10.5 seconds.
are a consequence of the defining properties of subject square.
6.09.3 Analysis (Pan Magic, 2 x 2 Compact)
If the defining properties mentioned in Section 6.09.1 above are moderated, much more Pan Magic Squares with non consecutive integers can be found.
a(31) = 150 - a(32) - a(33) - a(34) - a(35) - a(36) a(29) = 100 - a(30) - a(35) - a(36) a(28) = a(30) - a(34) + a(36) a(27) = 100 - a(30) - a(33) - a(36) a(26) = a(30) - a(32) + a(36) a(25) = -50 - a(30) + a(32) + a(33) + a(34) + a(35) a(23) = - a(24) + a(35) + a(36) a(22) = a(24) + a(34) - a(36) a(21) = - a(24) + a(33) + a(36) a(20) = a(24) + a(32) - a(36) a(19) = 150 - a(24) - a(32) - a(33) - a(34) - a(35) a(17) = 100 - a(18) - a(35) - a(36) a(16) = a(18) - a(34) + a(36) a(15) = 100 - a(18) - a(33) - a(36) a(14) = a(18) - a(32) + a(36) a(13) = -50 - a(18) + a(32) + a(33) + a(34) + a(35) a(12) = 75 - a(24) - a(32) - a(34) + a(36) a(11) = -75 + a(24) + a(32) + a(34) + a(35) a(10) = 75 - a(24) - a(32) a( 9) = -75 + a(24) + a(32) + a(33) + a(34) a( 8) = 75 - a(24) - a(34) a( 7) = 75 + a(24) - a(33) - a(35) - a(36) a( 6) = 75 - a(18) - a(30) + a(32) + a(34) - 2 * a(36) a( 5) = 25 + a(18) + a(30) - a(32) - a(34) - a(35) + a(36) a( 4) = 75 - a(18) - a(30) + a(32) - a(36) a( 3) = 25 + a(18) + a(30) - a(32) - a(33) - a(34) + a(36) a( 2) = 75 - a(18) - a(30) + a(34) - a(36) a( 1) =-125 + a(18) + a(30) + a(33) + a(35) + 2 * a(36)
The solutions can be obtained by guessing a(36) ... a(32), a(30), a(24) and a(18)
and filling out these guesses in the abovementioned equations.
0 < a(i) =< 49 for i = 1, 2 ... 17, 19 ... 23, 25 ... 29, 31
An optimized guessing routine (MgcSqr6g2), produced
36 * 864 = 31104
Compact Pan Magic Squares within 1.5 hour.
6.09.4 Analysis (Pan Magic, Associated)
Associated (Pan) Magic Squares can be defined as Center Symmetric (Pan) Magic Squares.
For Associated Pan Magic Squares, following equations should be added to the equations defining a Pan Magic Square:
which results in following linear equations describing Associated Pan Magic Squares: a(31) = s1 - a(32) - a(33) - a(34) - a(35) - a(36) a(27) = 2 * s1 - a(28) - 2 * a(29) - 2 * a(30) + a(32) - 2 * a(34) - 3 * a(35) - 2 * a(36) a(26) = s1 - 2 * a(27) - a(29) - 2 * a(30) a(25) = a(27) - a(28) + a(30) a(24) = 3 * s1/2 - a(29) - 2 * a(30) - a(34) - 2 * a(35) - 2 * a(36) a(23) = s1/2 - a(25) - a(28) - a(29) + a(32) a(22) = 3 * s1/2 - 2 * a(28) - a(29) - 2 * a(34) - 2 * a(35) - a(36) a(21) = s1 - a(24) - a(32) - a(33) - a(35) - a(36) a(20) = a(22) + a(28) - a(30) + a(32) - a(36) a(19) = - a(20) + a(28) - a(30) + a(32) + a(33)
The solutions can be obtained by guessing a(36) ... a(32), a(30), a(29) and a(28)
and filling out these guesses in the abovementioned equations.
0 < a(i) =< 49 for i = 1, 2 ... 27, 31
An optimized guessing routine (MgcSqr6g4), produced 1664
Associated Pan Magic Squares, which are shown in Attachment 6.10.4.
6.09.5 Analysis (Pan Magic, Associated, Non Overlapping Subsquares)
For Associated Pan Magic Squares (Ultra Magic) of the sixth order, composed out of 9 Non Overlapping Sub Squares (2 x 2)
following equations should be added to the equations defining an Ultra Magic Square:
a( 1) + a( 2) + a( 7) + a( 8) = 2 * s1 / 3
which results in following linear equations describing Ultra Magic Squares composed out of Non Overlapping Sub Squares:
a(32) = - a(33) + a(34) + a(35) a(31) = s1 - 2 * a(34) - 2 * a(35) - a(36) a(29) = 2 * s1 / 3 - a(30) - a(35) - a(36) a(27) = 2 * s1 / 3 - a(28) - a(33) - a(34) a(26) = - s1 + 2 * a(28) - a(30) + 2 * a(33) + 2 * a(34) + a(35) + a(36) a(25) = 2 * s1 / 3 - 2 * a(28) + a(30) - a(33) - a(34) a(24) = 5 * s1 / 6 - a(30) - a(34) - a(35) - a(36) a(23) = -5 * s1 / 6 + a(28) + 2 * a(34) + 2 * a(35) + a(36) a(22) = 5 * s1 / 6 - 2 * a(28) + a(30) - 2 * a(34) - a(35) a(21) = s1 / 6 + a(30) - a(35) a(20) = 5 * s1 / 6 - a(28) - a(33) - a(34) - a(36) a(19) = -5 * s1 / 6 + 2 * a(28) - a(30) + a(33) + 2 * a(34) + a(35) + a(36)
The solutions can be obtained by guessing a(36) ... a(33), a(30) and a(28)
and filling out these guesses in the abovementioned equations.
0 < a(i) =< 49 for i = 1, 2 ... 27, 29, 31, 32
An optimized guessing routine (Priem6f),
produced 288 of subject Ultra Magic Squares,
which are shown in Attachment 6.10.6.
6.09.6 Analysis (Pan Magic, Associated, 2 x 2 Compact)
For Compact Ultra Magic Squares of the sixth order, following equations should be added to the equations defining an Ultra Magic Square:
a(i) + a(i+1) + a(i+ 6) + a(i+ 7) = 2*s1/3 with 1 =< i < 30 and i ≠ 6*n for n = 1, 2 ... 5
which results in following linear equations describing Compact Ultra Magic Squares:
a(33) = s1 - a(34) - 2 * a(35) - 2 * a(36) a(32) = - s1 + 2 * a(34) + 3 * a(35) + 2 * a(36) a(31) = s1 - 2 * a(34) - 2 * a(35) - a(36) a(29) = 2 * s1/3 - a(30) - a(35) - a(36) a(28) = a(30) - a(34) + a(36) a(27) = - s1/3 - a(30) + a(34) + 2 * a(35) + a(36) a(26) = s1 + a(30) - 2 * a(34) - 3 * a(35) - a(36) a(25) = - s1/3 - a(30) + 2 * a(34) + 2 * a(35) a(24) = 5 * s1/6 - a(30) - a(34) - a(35) - a(36) a(23) = -5 * s1/6 + a(30) + a(34) + 2 * a(35) + 2 * a(36) a(22) = 5 * s1/6 - a(30) - a(35) - 2 * a(36) a(21) = s1/6 + a(30) - a(35) a(20) = - s1/6 - a(30) + a(34) + 2 * a(35) a(19) = s1/6 + a(30) - a(34) - a(35) + a(36)
The solutions can be obtained by guessing a(36) ... a(34) and a(30)
and filling out these guesses in the abovementioned equations.
0 < a(i) =< 49 for i = 1, 2 ... 29, 31 ... 33
An optimized guessing routine (Priem6h),
produced the same 288 Compact Ultra Magic Squares as found in Section 6.09.5,
which are shown in Attachment 6.10.7.
6.09.7 Analysis (Pan Magic, Concentric, Associated Center Square)
For Concentric Pan Magic Squares with Associated Center Square, following equations should be added to the equations defining a Pan Magic Square:
which results in following linear equations describing Pan Magic Concentric Squares with Associated Center Square: a(31) = s1 - a(32) - a(33) - a(34) - a(35) - a(36) a(29) = 2*s1/3 - a(30) - a(35) - a(36) a(28) = ( s1/3 + 2 * a(30) - a(32) - a(33) - a(34) + a(35))/2 a(27) = 2*s1/3 - a(28) - a(33) - a(34) a(26) = -2*s1/3 + a(30) + a(33) + a(34) + a(35) + a(36) a(25) = s1/3 - a(30) a(24) = 5*s1/6 - a(30) - a(34) - a(35) - a(36) a(23) = -3*s1/6 - a(28) + 2 * a(30) + 2 * a(35) + a(36) a(22) = 3*s1/6 - a(30) - a(35) a(21) = s1/6 + a(30) - a(32) a(20) = (4*s1/3 - 2 * a(30) + a(32) - a(33) - a(34) - a(35) - 2 * a(36))/2 a(19) = s1/3 - a(24) a(18) = 5*s1/6 - a(30) - a(33) - a(35) - a(36) a(17) = s1/3 - a(20) a(16) = s1/3 - a(21) a(15) = s1/3 - a(22) a(14) = s1/3 - a(23) a(13) = s1/3 - a(18) a(12) = a(30) - a(32) + a(35) a(11) = s1/3 - a(26) a(10) = s1/3 - a(27) a( 9) = s1/3 - a(28) a( 8) = s1/3 - a(29) a( 7) = s1/3 - a(12) a( 6) = s1/3 - a(31) a( 5) = s1/3 - a(35) a( 4) = s1/3 - a(34) a( 3) = s1/3 - a(33) a( 2) = s1/3 - a(32) a( 1) = s1/3 - a(36)
The solutions can be obtained by guessing a(36) ... a(32) and a(30)
and filling out these guesses in the abovementioned equations.
An optimized guessing routine (MgcSqr6g5), produced 128
Concentric Pan Magic Squares with Associated Center Square, which are shown in Attachment 6.10.5.
6.09.8 Analysis (Pan Magic, Complete, Composed of Semi Magic Sub Squares)
The defining equations for Pan Magic Squares composed of Semi Magic Sub Squares (6 Magic Lines) result - after deduction - in following set of linear equations:
a(34) = s1 / 2 - a(35) - a(36) a(31) = s1 / 2 - a(32) - a(33) a(28) = s1 / 2 - a(29) - a(30) a(25) = s1 / 2 - a(26) - a(27) a(24) = s1 / 2 - a(30) - a(36) a(23) = s1 / 2 - a(29) - a(35) a(22) = a(29) + a(30) - a(34) a(21) = s1 / 2 - a(27) - a(33) a(20) = s1 / 2 - a(26) - a(32) a(19) = s1 / 2 - a(25) - a(31)
which illustrate the consequential symmetry (complete).
The linear equations deducted in Section 6.09.2 thru 6.09.7 above, have been applied in following Excel Spread Sheets:
The red figures have to be “guessed” to construct a Pan Magic Square of the 6th order (wrong solutions are obvious).
|
Index | About the Author |