-->

Pandiagonal magic square Perfect

- May 27, 2017

Love My Staub Cast Iron Perfect Pan - The Desert Baroness cooking ...
photo src: www.thedesertbaroness.com

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.


Staub Perfect Pan - YouTube
photo src: www.youtube.com


Maps, Directions, and Place Reviews



3×3 panmagic squares

It is easily shown that non-trivial pandiagonal numerical magic squares of order 3 do not exist. However, if the magic square concept is generalized to include geometric shapes instead of numbers--the geometric magic squares discovered by Lee Sallows--a 3×3 panmagic square does exist.


Perfect Pan Video



4×4 panmagic squares

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

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 A above and the following:

These three are very closely related. B and C can be seen to differ only because the components of each semi-diagonal are reversed. It is not as easy to see how A relates to the other two but:

i: if the components of each semi-diagonal of A are reversed (A1) and the left-hand column of A1 is moved to the extreme right (A2), the result is a reflection of B

ii: if the left-hand column of A is moved to the extreme right (A3), the components of each semi-diagonal of A3 are reversed (A4), and the right-hand column of A4 is moved to the extreme left (A5), the result is C


In any 4×4 pandiagonal magic square, the two numbers at the opposite corners of any 3×3 square add up to 17. Consequently, no 4×4 panmagic squares are associative, though they all fulfil the further requirement for a 4×4 most-perfect magic square, that each 2×2 subsquare sums to 34.


Staub Perfect Pan, 12-inch Matte Black | Cutlery and More
photo src: www.cutleryandmore.com


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:

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:

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

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:

From this sum the following are subtracted:

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.


photo src: www.chefsplanet.com


(4n+2)×(4n+2) panmagic squares with nonconsecutive elements

No panmagic square exists of order 4n+2 if consecutive integers are used. But certain sequences of nonconsecutive integers do admit order-(4n+2) panmagic squares.

Consider the sum 1+2+3+5+6+7 = 24. This sum can be divided in half by taking the appropriate groups of three addends, or in thirds using groups of two addends:

1+5+6 = 2+3+7 = 12

1+7 = 2+6 = 3+5 = 8

An additional equal partitioning of the sum of squares guarantees the semibimagic property noted below:

12+52+62 = 22+32+72 = 62

Note that the consecutive integer sum 1+2+3+4+5+6 = 21, an odd sum, lacks the half-partitioning.

With both equal partitions available, the numbers 1, 2, 3, 5, 6, 7 can be arranged into 6x6 pandigonal patterns A and B, respectively given by:


Then 7xA + B - 7 gives the nonconsecutive pandiagonal 6x6 square:

with a maximum element of 49 and a panmagic sum of 150. This square is pandiagonal and semibimagic, that means that rows, columns, main diagonals and broken diagonals have a sum of 150 and, if we square all the numbers in the square, only the rows and the columns are magic and have a sum of 5150.

For 10th order a similar construction is possible using the equal partitionings of the sum 1+2+3+4+5+9+10+11+12+13 = 70:

1+3+9+10+12 = 2+4+5+11+13 = 35

1+13 = 2+12 = 3+11 = 4+10 = 5+9 = 14

12+32+92+102+122 = 22+42+52+112+132 = 335 (equal partitioning of squares; semibimagic property)

This leads to squares having a maximum element of 169 and a panmagic sum of 850, which are also semibimagic with each row or column sum of squares equal to 102,850.


Love My Staub Cast Iron Perfect Pan - The Desert Baroness cooking ...
photo src: www.thedesertbaroness.com


(6n±1)×(6n±1) panmagic squares

A (6n±1)×(6n±1) panmagic square can be built by the following algorithm.

  • Set up the first column of the square with the first 6n±1 natural numbers.

Example:

  • Copy the first column into the second column but shift it ring-wise by 2 rows.

Example:

  • Continue copying the current column into the next column with ring-wise shift by 2 rows until the square is filled completely.

Example:

  • Build a second square and copy the first square into it but mirror it diagonal. So you have to exchange rows and columns.
  • Build the final square by multiplying the second square by 6n±1, adding the first square and subtract 6n±1 in each cell of the square.

Example: A + (6n±1)×AT - (6n±1)


Staub Perfect Pan, 12-inch Basil | Cutlery and More
photo src: www.cutleryandmore.com


4n×4n panmagic squares

A 4n×4n panmagic square can be built by the following algorithm.

  • Put the first 2n natural numbers into the first row and the first 2n columns of the square.

Example:

  • Put the next 2n natural numbers beneath the first 2n natural numbers in inverse sequence. Each vertical pair must have the same sum.

Example:

  • Copy that 2×2n rectangle 2n-1 times beneath the first rectangle.

Example:

  • Copy the left 4n×2n rectangle into the right 4n×2n rectangle but shift it ring-wise by one row.

Example:

  • Build a second 4n×4n square and copy the first square into it but turn it by 90°.
  • Build the final square by multiplying the second square by 4n, adding the first square and subtract 4n in each cell of the square.

Example: A + 4n×B - 4n

If you build a 4n×4n pandiagonal magic square with this algorithm then every 2×2 square in the 4n×4n square will have the same sum. Therefore many symmetric patterns of 4n cells have the same sum as any row and any column of the 4n×4n square. Especially each 2n×2 and each 2×2n rectangle will have the same sum as any row and any column of the 4n×4n square. The 4n×4n square is also a Most-perfect magic square.


Staub Perfect Pan
photo src: www.abchome.com


(6n+3)×(6n+3) panmagic squares, n>0

A (6n+3)×(6n+3) panmagic square with n>0 can be built by the following algorithm.

  • Create a (2n+1)×3 rectangle with the first 6n+3 natural numbers so that each column has the same sum. You can do this by starting with a 3×3 magic square and set up the rest cells of the rectangle in meander-style. You can also use the pattern shown in the following examples.

Examples:

  • Put this rectangle in the left upper corner of the (6n+3)×(6n+3) square and two copies of the rectangle beneath it so that the first 3 columns of the square are filled completely.

Example:

  • Copy the left 3 columns into the next 3 columns, but shift it ring-wise by 1 row.

Example:

  • Continue copying the current 3 columns into the next 3 columns, shifted ring-wise by 1 row, until the square is filled completely.

Example:

  • Build a second square and copy the first square into it but mirror it diagonal. So you have to exchange rows and columns.

Example:

  • Build the final square by multiplying the second square by 6n+3, adding the first square and subtract 6n+3 in each cell of the square.

Example: A + (6n+3)×AT - (6n+3)

Source of the article : Wikipedia



EmoticonEmoticon

 

Start typing and press Enter to search