Tuesday, December 20, 2016
Magic Square Creation Example
How one goes about creating a magic square is best illustrated by a specific example. The magic square below is the first one that I found (on Dec 4).
I started by filling the rows of the bottom left quarter with the sums at the top of the lists for 9 and its complement 25. The order was arbitrary but I switched the 9 and 16 about so that the vertical sums had the lowest maximum. The bottom right quarter also needed row sums which added up to 9 and 25 so my 3rd and 4th choices were 7 + 2 and 14+11 again arranged to product the lowest maximum vertical sum. The horizontal, vertical and diagonal sums were then computed for the bottom half of the magic square. The remaining independent variable in the upper left quarter has to have a vertical sum of 20 and a diagonal sum of 13 as indicated in the lower half . The arrows in the tables for sums which equal 13 and 20 have only 12 as a common number so that was selected. The remainder of the magic square can be computed using the equal pairs of sums.
Monday, December 19, 2016
Sunday, December 18, 2016
Discovering Magic Squares
If one looks at the Indian and Dürer's magic one can see how pairs of sums are identical. I used Excel 2016 to compute these magic squares using the 6 unknowns and show the vertical, horizontal and diagonal sums for the partitioned magic squares.
It turns out that there are a dozen sums but half of them are 34's complements of the other half, i.e., a sum and its complement add up to 34. In the Indian magic square at the bottom left we see that 4+5=19 and the same is true for the upper row of the bottom right where 7+12=19. One can fill in a magic square by selecting pairs of numbers from a table of sums and also from the sum's complement.
In first magic square below the first sums 16=1+5 and 18=8+10 were used as a starting point. By changing the order of these pairs on can change the diagonal sum for the bottom left quarter. When filling the bottom right and upper left quarters one has to pick sums for which the sums are 16 and 18 and their diagonals also match. One can place an x next to a sum that was used to eliminate it for a later selection. One can also place x's in the table to note which of the 16 numbers have already been used to eliminate sums for the diagonals. Once the 6 unknowns (marked in green) are chosen one can compute the remainder of the magic square.
The same procedure was used for the magic square on the right. Here are a few more which I did by hand a couple of weeks ago.
One does not have to be able to solve a system of linear equations to find a magic square what follows the chosen rules.
Saturday, December 17, 2016
Independent and Dependent Variables for a Magic Cube
The sums found in the last blog can be used to eliminate dependent variables from the magic square. The remaining independent variables can be reduced to the following set.
The magic square can be reconstructed with the following formulas.
In a similar manner the known sums can be used to fill in the unknown boxes if one initially fills in the magic square with some arbitrary numbers. The selections that can be made are limited by the known sums.
Supplemental (Dec 17): The set of independent variables is ordered so there are
16·15·14·13·12·11 = 16!/10! = 5,765,760 ways of assigning 6 out of the 16 possible numbers to them. Not all combinations will yield a magic square consistent with the rules.
Friday, December 16, 2016
More on Magic Squares
The lack of recent posts is due to a fatal computer crash which prevented me from going online. However I had the opportunity to look at magic squares more closely. There is an Indian magic square from the 11th or 12th century in which there are more sums that turn out to be the same and only the integers 1 through 16 are found in the square. Dürer's Melancolia from 1514 contains a similar magic square. Following some simple rules I was able to deduce another one that is similar to Dürer's along the bottom row but with some of the other numbers rearranged.
There are at least 16 ways in these magic squares in which one can arrive at a sum of 34.
If one looks at the list of sums one will notice that a pair of sums occurs in more than one equation so one can therefore subtract these equations to find two pairs whose sum is equal.
I found 18 pairs with identical sums.
These pairs of sums add structure to the magic squares and limit the choices for filling a magic square.
Supplemental (Dec 18): Corrected misstatement about my magic square being Dürer's flipped.
Monday, November 14, 2016
The Supermoon Period
A supermoon occurs when a full moon and lunar perigee occur at approximately the same time. There was one just before sunrise this morning, 14 Nov 2016. To find out when the next one will occur we can compute the average time between supermoons using two lunar periods.
So supermoons are spaced about 13½ calendar months apart and the next one should occur at the beginning of January 2018 followed by one about the middle of February 2019. The Lunarian gives the following circumstances for these events.
Lunar perigee 1 Jan 2018 21:48
Full Moon 2 Jan 2018 02:24
Lunar perigee 19 Feb 2019 09:02
Full moon 19 Feb 2019 15:53
The computed interval for the Supermoon Period seems to work quite well. One can expect some variation for this time interval due to the nonuniform motion of the Earth in its orbit.
Wednesday, November 9, 2016
Magic Squares
A magic square is an n x n grid of numbers whose rows, columns and diagonals all have the same sum. One can create a magic square by filling a 4 x 4 matrix with 7 numbers in the positions below. I included the numbers of the election date, 11/8/2016, in the bottom left corner. The remaining 3 numbers were chosen at random. If one knows the value of the sums, Σ, one can immediately solve for some of the unknowns.
We can use the unused equations to separate the the known variables from the unknown variables as follows and solve the system of equations for the unknowns k, l, o & p. One of the equations is redundant so we choose 4 for which the determinant of matrix, M, is nonzero. Here the determinant D = |M| = 2.
Filling the calculated values into our magic we get the following matrix which checks out correctly.
Each value of Σ generates a new magic square. One can try to choose the minimum value for Σ for which all the numbers are non-negative.
Subscribe to:
Posts (Atom)




