Pandiagonal magic square

Pandiagonal magic square

A pandiagonal magic square or panmagic square (also diabolic square, diabolical square or diabolical magic square) is a magic square with the additional property that the broken diagonals, i.e. the diagonals that wrap round at the edges of the square, also add up to the magic constant.

A pandiagonal magic square remains pandiagonally magic not only under rotation or reflection, but also if a row or column is moved from one side of the square to the opposite side. As such, an n×n pandiagonal magic square can be regarded as having 8n2 orientations.

Contents

4×4 panmagic squares

The smallest non-trivial pandiagonal magic squares are 4×4 squares.

1 8 13 12
14 11 2 7
4 5 16 9
15 10 3 6

In 4×4 panmagic squares, the magic constant of 34 can be seen in a number of patterns in addition to the rows, columns and diagonals:

  • Any of the sixteen 2×2 squares, including those that wrap around the edges of the whole square, e.g. 14+11+4+5, 1+12+15+6
  • The corners of any 3×3 square, e.g. 8+12+5+9
  • Any pair of horizontally or vertically adjacent numbers, together with the corresponding pair displaced by a (2, 2) vector, e.g. 1+8+16+9

Thus of the 86 possible sums adding to 34, 52 of them form regular patterns, compared with 10 for an ordinary 4×4 magic square.

There are only three distinct 4×4 pandiagonal magic squares, namely the one above and the following:

1 12 7 14
8 13 2 11
10 3 16 5
15 6 9 4
1 8 11 14
12 13 2 7
6 3 16 9
15 10 5 4

In any 4×4 pandiagonal magic square, any two numbers at the opposite corners of a 3×3 square add up to 17. Consequently, no 4×4 panmagic squares are associative.

5×5 panmagic squares

There are many 5×5 pandiagonal magic squares. Unlike 4×4 panmagic squares, these can be associative. The following is a 5×5 associative panmagic square:

20 8 21 14 2
11 4 17 10 23
7 25 13 1 19
3 16 9 22 15
24 12 5 18 6

In addition to the rows, columns, and diagonals, a 5×5 pandiagonal magic square also shows its magic sum in four "quincunx" patterns, which in the above example are:

17+25+13+1+9 = 65 (center plus adjacent row and column squares)
21+7+13+19+5 = 65 (center plus the remaining row and column squares)
4+10+13+16+22 = 65 (center plus diagonally adjacent squares)
20+2+13+24+6 = 65 (center plus the remaining squares on its diagonals)

Each of these quincunxes can be translated to other positions in the square by cyclic permutation of the rows and columns (wrapping around), which in a pandiagonal magic square does not affect the equality of the magic sums. This leads to 100 quincunx sums, including broken quincunxes analogous to broken diagonals.

The quincunx sums can be proved by taking linear combinations of the row, column, and diagonal sums. Consider the panmagic square

A B C D E
F G H I J
K L M N O
P Q R S T
U V W X Y

with magic sum Z. To prove the quincunx sum A+E+M+U+Y = Z (corresponding to the 20+2+13+24+6 = 65 example given above), one adds together the following:

3 times each of the diagonal sums A+G+M+S+Y and E+I+M+Q+U
The diagonal sums A+J+N+R+V, B+H+N+T+U, D+H+L+P+Y,and E+F+L+R+X
The row sums A+B+C+D+E and U+V+W+X+Y

From this sum the following are subtracted:

The row sums F+G+H+I+J and P+Q+R+S+T
The column sum C+H+M+R+W
Twice each of the column sums B+G+L+Q+V and D+I+N+S+X.

The net result is 5A+5E+5M+5U+5Y = 5Z, which divided by 5 gives the quincunx sum. Similar linear combinations can be constructed for the other quincunx patterns H+L+M+N+R, C+K+M+O+W, and G+I+M+Q+S.

External links

References

  • W. S. Andrews, Magic Squares and Cubes. New York: Dover, 1960. Originally printed in 1917. See especially Chapter X.

Wikimedia Foundation. 2010.

Игры ⚽ Поможем решить контрольную работу

Look at other dictionaries:

  • Simple magic square — A simple magic square is the lowest of two basic classes of magic square. It has the minimum requirements for a square to be considered magic. All lines parallel to the edges, plus the two main diagonals must sum to the magic constant. S =… …   Wikipedia

  • Pandiagonal magic cube — In a Pandiagonal magic cube, all 3m planar arrays must be panmagic squares. The 6 oblique squares are always magic. Several of them may be panmagic squares.Gardner called Langman’s pandiagonal magic cube a ‘perfect’ cube, presumably not realizing …   Wikipedia

  • Most-perfect magic square — from the Parshvanath Jain temple in Khajuraho 7 …   Wikipedia

  • Magic cube classes — Every magic cube may be assigned to one of six magic cube classes, based on the cube characteristics. This new system is more precise in defining magic cubes. But possibly of more importance, it is consistent for all orders and all dimensions of… …   Wikipedia

  • Magic cube — For the flashbulb cartridges, see Magicube. For the puzzle, see Rubik s Cube. In mathematics, a magic cube is the 3 dimensional equivalent of a magic square, that is, a number of integers arranged in a n x n x n pattern such that the sum of the… …   Wikipedia

  • Nasik magic hypercube — A Nasik magic hypercube is a magic hypercube with the added restriction that all possible lines through each cell sum correctly to where S = the magic constant, m = the order and n = the dimension, of the hypercube. Or, to put it more concisely,… …   Wikipedia

  • Perfect magic cube — In mathematics, a perfect magic cube is a magic cube in which not only the columns, rows, pillars and main space diagonals, but also the cross section diagonals sum up to the cube s magic constant. Perfect magic cubes of order one are trivial;… …   Wikipedia

  • Pantriagonal magic cube — A pantriagonal magic cube is a magic cube where all 4 m 2 pantriagonals sum correctly. There are 4 one segment, 12( m − 1) two segment, and 4( m − 2)( m − 1) three segment pantriagonals. This class of magic cubes may contain some simple magic… …   Wikipedia

  • Panmagic square — A panmagic square, pandiagonal magic square, diabolic square, diabolical square or diabolical magic square is a magic square with the additional property that the broken diagonals, i.e. the diagonals that wrap round at the edges of the square,… …   Wikipedia

  • Space diagonal — In a rectangular box or a magic cube, the four space diagonals are the lines that go from a corner of the box or cube, through the center of the box or cube, to the opposite corner. These lines are also called triagonals or volume diagonals .For… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”