Sunday

October 23, 2016
Posted by **nicholas** on Tuesday, June 5, 2007 at 5:19pm.

http://www.jiskha.com/display.cgi?id=1125461237.1125498843

MAGIC SQUARES

Magic squares, those seemingly innocent looking collections of numbers that have fascinated so many for centuries, were known to the ancients, and were thought to possess mystical qualities and magical powers because of their unusual nature. In reality, they are not as magic as they are fascinating since they are usually created by following a specific set of rules or guidelines. Their creation has been a constant source of amusement for many over the years as well as studying them for their seemingly mystical properties. History records their presence in China prior to the Christian era and their introduction into Europe is believed to have occurred in the 15th century. The study of the mathematical theory behind them was initiated in France in the 17th century and subsequently explored in many other countries. The most thorough treatment of the subject may be found in the easily understood book Magic Squares and Cubes by W.S. Andrews, now published by

Dover Publications, Inc., originally published by Open Court Publishing Company in 1907. It represents the outgrowth of the famous sympoium on magic squares conducted in the Monist magazine from 1905 to 1916. It is still considered the best connected, thorough, and non-technical description and analysis of the various kinds of magic squares.

Most people are quite familiar with the most basic, and traditional, magic square where the sum of every row, every column, and the two main diagonals, all add up to a constant C. A magic square is usually referred to as a 3 cell, 4 cell, 5 cell, etc., or as a 3x3 array, 4x4 array, 5x5 array, etc. The most basic magic square of order n,

that is, n rows and n columns, or an n x n array, uses the consecutive integers from 1 to n^2. The constant sum, C, is defined by

C = n(n^2 + 1)/2

The integers do not have to start with one nor do they have to be truly consecutive. A magic square can start with any number you wish and the difference between the successive set of numbers can be any common difference, that is, in arithmetic series. For instance, it could start with 15 and progress with a common difference between successive numbers of say 3. The new constant C for this type of magic square can be derived from

C = n[2A + D(n^2 - 1)]/2

where A is the starting integer, D is the common difference between successive terms, and n is as defined earlier.

The difference between the integers may be varied also but only between, and within, each set of n digits. By that, I mean, the series of digits can have a common difference within each set of 3 digits, and another difference between each set of 3. The only requirement that must be met is that the sum of all n^2 digits must be divisible by n^2.

Lets look at a sample series starting with 3. You could have a series such as 3-6-9-15-18-21-27-30-33. The differences between each pair in each set of three digits is 3 with the difference between the two sets of three digits being 6. Thus,

Digits.............3----6----9----15----18----21----27----30----33

Differences........3....3....6......3......3.....6......3......3

The sum of the digits is 162, the row sums being 162/3 = 54. This square would look like the following:

30.....3....21

.9....18....27

15....33.....6

The middle number is also the sum of the digits divided by n^2, in this case 162/9 = 18.

Some interesting characteristics of odd cell squares are:

1--The middle number of the series of numbers always goes in the middle cell.

2--The middle number is always the sum of the digits divided by n^2, or the sum of the first and last digits divided by 2, or the row sum divided by 3.

3--Any two numbers diametrically equidistant from the center add up to 2 times the center number.

ODD CELL SQUARES

Before getting into the mechanical or systematic methods of creating magic squares, let me first show you that it is possible to create one by means of simple logic, although probably only for the 3 cell square.

The usual 3 cell magic square problem is posed as, "Place the numbers 1 through 9 in the 9 cells of the 3x3 square such that each row, each column, and each diagonal add up to the same total."

Of course, the typical trial and error approach will ultimately get you to an answer but the more rewarding method is your own intuition and logic. Lets see where this takes us.

The first thing you might ask yourself is what is the total that we are seeking with the 9 digits. Since all three rows or columns must add up to the same total, it stands to reason that the sum of the rows or columns must, by definition, add up to the sum of the 9 digits, which turns out to be 45. Therefore, each row or column must add up to 45/3 = 15.

You might notice that 8 of the digits we are using just happen to add up to 10, 1+9, 2+8, 3+7, and 4+6. It might also occur to you that the middle number of the 9 digits, the 5, would most logically want to be in the middle cell with the others located around it all adding up to 15. Where to start?

What if the 9 were located on a corner? Since all three lines of numbers, including that corner 9, must toal 15, we would need three pairs of numbers that each add up to 6. Of course, this is impossible as we only have 1+5 and 2+4 at our disposal thus forcing the 9 to be located in the middle cell of one of the sides. Lets try the middle

cell of the bottom row (it could be any of the four available positions) which forces the 1 to be in the middle cell of the top row.

.................................? 1 ?

.................................? 5 ?

.................................? 9 ?

Looking at our bottom row now, we notice that the two outer numbers must add up to 6 and we only have 2+4 available to us. For a reason that will become obvious later, lets try the 2 in the lower right hand corner and the 4 in the lower left hand corner.

.................................? 1 ?

.................................? 5 ?

.................................4 9 2

What do you know? It looks like our intuition can take a rest now as the other seem to all just fall into place. The upper left cell must be an 8, the upper right must be a 6, and of course, the middle left is forced to be a 3 and the middle right becomes the 7. Here we are, and just by thinking it through.

.................................8 1 6

.................................3 5 7

.................................4 9 2

Note that the outer numbers can be rotated clockwise or counterclocwise to define 7 additional arrangements. Mirror imaging about both vertical and horizontal axes as well as the diagonal axes will produce more. See how many different ones you can define overall.

Now we will get back to the more traditional method.

The simplest magic square has 3 cells on a side, or 9 cells altogether. We call this a three square. The simplest three square is one where you place the numbers from 1 to 9, inclusive, in each cell in such a way that the sum of every horizontal and vertical row as well as the two diagonal rows add up to the same number. This basic 3 cell square, adding up to 15, looks like the following (looks familiar):

8 1 6

3 5 7

4 9 2

This 3 cell square has some other strange characteristics. All of the four lines that pass through the center are in arithmetic progressionhaving differences of 1, 2, 3, and 4. Notice also that the squares of the first and third columns are equal, i.e., 8^2 + 3^2 + 4^2 = 6^2 + 7^2 + 2^2 = 89. The sum of the middle column squares is 1^2 + 5^2 + 9^2 = 107 which is equal to 89 + 18. The sum of the squares in the rows total 101, and 83 and, strangely enough, 101 - 83 = 18.

Other three cell magic squares can be created where the rows all add up to other numbers, the only constraint being that the sums of the rows must be divisible by 3. For instance, magics square adding up to 42 and 48 would look like this:

17 10 15 22 8 18

12 14 16 12 16 20

13 18 11 14 24 10

While we have only looked at three cell magic squares so far, you might have noticed a couple of things that turn out to be fundamental to all odd cell magic squares. First, the center square number is the middle number of the group of numbers being used or the sum of the first number and the last number divided by 2; it is also equal to the row total divided by the number of cells in the square.

Your next logical question is bound to be,"How does one create such squares? Well, I will try to explain it in words without a picture.

First draw yourself a three cell square with a dark pencil and place the numbers 1 through 9 in them as shown above. Now, above squares 1 and 6 draw two light lined squares just for reference. Similarly, draw two light lined squares to the right of squares 6 and 7. Their use will become obvious as we go along. Always place the first number being used in your square in the top center square, number one in our illustration. Now comes the tricky

part. We now wish to locate the number 2 in its proper location. Move out of the number 1 box, upward to the right, at a 45 degree angle, into the light lined box. Clearly this imaginary box is outside the boundries of our three cell square. What you do is drop down to the lowest cell in that column and place the 2. Now for the 3, move upward to the right again into the light lined box next to the number 7. Again you are outside the three cell square

so move all the way over to the left in that row and place the 3. Now you will notice that you cannot move upward to the right as you are blocked by the number 1. Merely drop down one row and place the 4 directly below the 3. Move upward to the right and place the 5. Again, move upward to the right and place the 6. You now cannot move upward to the right as there is no imaginary square there for you to move into. Merely drop down one cell and place

the 7 directly below the 6. Now move upward and to the right again and you are outside the square again. As before, merely move all the way over to the left cell in that row and place the 8. Moving upward and to the right again, you are outside the square again so merely drop down to the bottom cell in that column and place the 9. This exact same pattern is followed no matter what the rows and columns add up to.

You can also enter the numbers starting in the center box of the right column, the center box of the bottom row, or the center box of the left column as long as you follow the same pattern of locating numbers. If you were to do this you would end up with the following squares:

4 3 8.........2 9 4..........6 7 2

9 5 1.........7 5 3..........1 5 9

2 7 6.........6 1 8..........8 3 4

Moving all the outer numbers one or more boxes clockwise, or counterclockwise, also produces the same result.

Your next question is bound to be, "How does one create a magic 3 square that adds up to something other than 15?" There are two ways to create magic square for your friends. First, ask them for a number, say no more than 2 digits. You then proceed to place their number in the top center cell and continue to fill in the square, in the same basic pattern we just described above, telling them that when you are done, the rows, columns, and diagonals will all add up to a specific number.

The second way to create a magic square is to ask them for a number larger than 15 that is divisible by three. You then proceed to fill in all the cells in the same pattern such that the rows, columns, and diagonals add up to the number they gave you. Here is how you do it.

In the first method, ask them for a number, say from 1 to 25, but it can be any number. Lets say they give you 17. In your head, multiply 17 times 3 and add 12, such that 3(17) + 12 = 63. You now place the number 17 in the top center cell, continue to place 18, 19, 20, 21, 22, 23, 24, and 25 in the the cells in the same pattern as you placed the numbers 1 thru 9 above. As you are doing this, you tell them that when you are done, every row, column, and the two diagonals will add up to 63. What magic.

24 17 22

19 21 23

20 25 18

For the second method, ask them for a number that is divisible by three as you are working with a 3 x 3 square. Lets say they give you 48. In you head now, subtract 12 from the number they give you and divide the result by 3. For our example you will get 12. So place the number 12 in the top center cell and continue to fill in the other

cells in the same pattern until you reach the last cell with the number 20. Lo and behold, every row, column, and the diagonals, add up to 48.

19 12 17

14 16 18

15 20 13

You now have all the information required to create any three cell magic square possible. If anyone asks you why you use the same pattern for placing the numbers in the cells every time, fool them by rotating the pattern 90 degrees, then 180 degrees and finally 270 degrees if they really get suspicious. What this means is, for

instance, you can place the starting number in the center cell of the right most column, and so on, as I described above, and then work the same pattern starting from there. Similarly for the 180 and 270 degree rotations.

By the way, the method described above for filling in the cells is applicable to any odd cell magic square, i.e., 5, 7, etc., cell squares. The first number always goes in the top center cell. The formula for the 5 cell square is Sum = 5X + 60 where X is the number you receive from the person. If they are giving you the sum number, it must be divisible by 5 and then you subtract 60 and divide the result by 5 to get the starting number. For the 7

cell square the formula is Sum = 7X + 168. If giving you the sum number, it must be divisible by 7 and you then subtract 168 and divide the result by 7 to get the starting number. I'll leave it for you to get any others you might

be interested in from your library. The 5 cell square looks like the following:

17 24 1 8 15

23 5 7 14 16

4 6 13 20 22

10 12 19 21 3

11 18 25 2 9

Note that the middle number is mid way between the 1 and 25 and that the middle number is 1/5th of the row total of 65.

I'll leave the 7 cell square for you to experiment with.

A more general allocation of numbers to the cells is given by the following, given the nine numbers with n being the middle number of the nine numbers.

n + 3 n - 4 n + 1

n - 2 n n + 2

n - 1 n + 4 n - 3

CONCATENATION OF ODD CELL MAGIC SQUARES

Odd cell magic squares have another inherent characteristic derivable by concatenating (linking together) the numbers in the columns or rows. Using the basic 3 cell magic square using the digits 1 through 9, lets see what evolves.

.................................8 1 6

.................................3 5 7

.................................4 9 2

Linking the two numbers in the first two columns, we derive the numbers 81, 35 and 49, the sum of which is 165.

Linking the two numbers in the last two columns, we derive the numbers 16, 57 and 92, the sum ofo which is 165.

Linking the two numbers in the first and last columns, we derive the numbers 86, 37 and 42, the sum of which is 165.

Performing the same linkage with the rows, we derive 83 + 15 + 67 = 165, 34 + 59 + 72 = 165 and 84 + 19 + 62 = 165.

Now, hold on to your hats.

Reversing the linkages produces

18 + 53 + 94 = 164, 61 + 75 + 29 = 165, 68 + 73 + 24 = 165, 38 + 51 + 76 = 165, 43 + 95 + 27 = 165 and 48 + 91 + 26 = 165.

Linking the numbers from any columns or rows with each other produces

88 + 33 + 44 = 11 + 55 + 99 = 66 + 77 + 22 = 88 + 11 + 66 = 33 + 55 + 77 = 44 + 99 + 22 = 165.

EVEN CELL SQUARES

Even cell magic squares are formed in an entirely different way from odd cell magic squares. Lets first examine a four cell square and its method of construction. The first thing to do is draw yourself a four cell square. Next, draw the two major diagonals of the 4 x 4 cell square, upper left corner to lower right corner and upper right corner to lower left corner. Next we are going to start moving horizontally, from box to box, starting with

the upper left most corner. We are going to count as we go along, i.e., 1-2-3-4-5.....etc. As we move along from box to box, we are going to write the number we have reached in our counting in any box that does not have a

diagonal passing through it. Thus, starting with box #1, we write nothing. Moving to box #2, we write the number 2 in this second box. Likewise we write the number 3 in the third box and write nothing in box #4 as there is a diagonal passing through it. Now we drop down to the first box in the second row, directly under the box #1.

Since there is no diagonal there, we write the number 5 in this box. Boxes #6 and #7 have the diagonals passing through them so we write nothing in them. We write #8 in the eighth box. Dropping down to the first box in the third row, we write #9 in the first box, nothing in the 10th and 11th boxes, and #12 in the last box. Dropping down

to the first box in the last row, we write nothing in the first box, the #14 and #15 in the middle two boxes, and nothing in the last box. Half way there. Now, returning to the first box in the first row, we write the number 16. Counting backwards, we progress as before, left to right, row by row, writing in the empty boxes, (the ones with the diagonals passing through them) the number that we reach as we count backwards. Thus, the first box gets

#16. The next two boxes would represent #15 and #14, but there are already numbers in those boxes so we skip over them to the last box where we write the number 13. Proceeding to the next row, we skip over the #5 box, counting 12, and write the #11 and #10 in the middle two boxes of this second row , and skip over the box with the #8 in it. Down to the third row, we skip over the #9 box, counting 8, and write the #7 and #6 in the middle two boxes of

the third row, and skip over the #12 in the last box. In the last row, we write the #4 in the first box, skip the middle two boxes, and write the #1 in the very last box. We have thus created a magic square with the numbers 1 through 16 in such a way that the numbers in every row, horizontally or vertically, and the two major diagonals, all add up to 34. That wasn't too bad now, was it?

16...2.....3....13

.5...11...10....8

.9....7.....6...12

4...14...15.....1

Any magic square, where the number of cells is a multiple of four, can be constructed in the same way. For instance, divide an 8 cell square into four 4 cell squares. Draw the two major diagonals in each of the four 4 cell squares just created, ending up with 8 diagonals within the four 4 cell squares. Now proceed exactly as with the 4 cell square starting with the first box in the first row. Count your way along from 1 to 64, writing the

corresponding number in any box that does not have a diagonal passing through it. Then, returning to the first box, count backwards from 64 to 1, writing the corresponding numbers in the boxes with the diagonals passing through them. You're home free. Another magic square that adds up to 260 in all the rows.

If by chance you don't feel comfortable counting backwards for the placement of the second half of the numbers, you can start at the lower right box in the last row and count forwards, moving from right to left as you move from each row to the next. It might be easier. Its up to you.

Now, as strange as it might seem, even though a 6 cell magic square is an even number square, it is not created in the manner just described. The 6 cell square is considered the most difficult magic square to create. I give you what has been advertised as the easiest method discovered to date, as far as I know.

First, divide the 6 cell square into four 3 cell squares. Starting with the upper left 3 cell square, place the numbers 1 through 9 in their proper cells exactly as you did in the regular 3 cell square. Now, moving to the lower right 3 cell square, place the numbers 10 through 18 in exactly the same pattern as you placed the 1-9 numbers.

Moving to the upper right 3 cell square, place the numbers 19 through 27 in this 3 cell square in the same pattern. And lastly, in the lower left 3 cell square, place the numbers 28 through 36 in the same pattern. Now the tricky part. Remove the numbers 8, 5, and 4 from the upper left 3 cell square, holding them aside. Move the

numbers 35, 32, and 31 from the lower left 3 cell square to the three empty spaces just created. Replace the numbers 35, 32, and 31 with the numbers 8, 5, and 4 from the cell above. Got it? You now have a 6 cell square that adds up to 111 in all the rows.

Now, as for creating a 4 cell magic square starting with a number other than one, lets explore. Ask a friend for a two digit number. Suppose he gives you 26. You immediately tell him that you will create a 4 cell magic square, starting with the number he gave you, that will add up to 134 in every row and diagonal. You determine the total by multiplying the number he gives you by 4 and adding 30, thus 4x26=104+30=134. You then proceed to fill in

the 4 cell square exactly as we described above but starting with the number 26 and ending with the number 41.

Creating a 4 cell magic square that adds up to a number given you by your friend is not as easy as it is is for an odd cell square. Obviously if your friend gives you a number greater than 34, you theoretically can work backwards from the formula for determining the total when starting with a number other than one. But since the

starting number you back into must be an integer, not any number will work. For instance, 34, 38, 42, 46, 50, 54, 58.............126, 130, 134, 138...etc. will all work, for if you subtract 30 and divide the result by 4, you get an integer number. There is no known rule for determining whether a given number will produce an integer starting

number as these numbers are not divisible by four.

FRACTIONAL MAGIC SQUARES

Fractional magic squares are possible through the same processes defined above as long as there is a constant difference between the fractions. For instance, a 3 cell magic square that adds up to 27/2 would look like this:

........................................15/2.....1/2.....11/2

.........................................5/2......9/2.....13/2

.........................................7/2.....17/2.....3/2

Another possibility is......25/2.....1/3.....19/3

........................................10/3....16/3....22/3

........................................13/3....28/3.....4/3

Another variation is........29/4.....1/4.....21/4

.......................................18/8....51/12...50/8

.......................................13/4....33/4......5/4

I think you get the picture by now. Fractions less than one are possible but, again, as long as there is a constant difference between them. For example

........................................8/20....1/20....6/20

.......................................3/20.....5/20....7/20

.......................................4/20.....9/20....2/20

or

........................................8/20....1/20....3/10

.......................................6/40......1/4.....7/20

.......................................4/20.....9/20....1/10

You can also create one from a fraction that someone gives you as with the integer squares. For instance, ask someone for a fraction with a numerator divisible by 3. Lets look at two possibilities, 21/29 and 33/4.

For the 21/29 fraction, subtract 12/29 to get 9/29. Divide this by 3 to get 3/29. The basic square would then look like this:

.........................................10/29.....3/29.....8/29

..........................................5/29......7/29.....9/29

..........................................6/29.....11/29....4/29

For the 33/4 fraction, subtract 12/4 to get 21/4. Divide this by 3 to get 7/4. The basic square would look like this:

..........................................14/4......7/4......12/4

...........................................9/4......11/4.....13/4

.........................................10/4......15/4......8/4

Its pretty easy once you work through a few. Try a few yourself and if you have any questions, please feel free to ask.

PALINDROMIC MAGIC SQUARES

Surprisingly, it is relatively easy to create palindromic magic squares, PMS. As you probably already know, a palindrome is a number or word that reads the same backwards as forwards such as 131, 484, 23732, Mom, level, Eve, and so on. The easiest PMS to create is one derived from the most basic 3 cell magic square shown below:

.................................8 1 6

.................................3 5 7

.................................4 9 2

By simply placing a one on either side of the nine numbers in this square we create a magic palindromic square as shown:

.................................181 111 161 adding up to 453

.................................131 151 171

.................................141 191 121

Consider also the following derivable from the one above:

.................................1881 1111 1661 adding up to 4653

.................................1331 1551 1771

.................................1441 1991 1221

Lets take it one step further and derive:

.................................18181 11111 16161 adding up to 45,453

.................................13131 15151 17171

.................................14141 19191 12121

Another type of Magic Square is referred to as the Latin Square. A Latin square is the arrangement of n distinct symbols in a square matrix of n^2 cells such that no one symbol appears more than once in any row or column of the array. These are discussed under a seperate article titled Latin Squares.

It is possible to create magic squares from prime numbers and palindromic prime numbers. The construction of magic squares with prime numbers has been studied for many years, an early discuusion of which appeared in the July 22nd and August 5th, 1900 issues of The Weekly Dispatch, authored by H.E. Dudeney. The usual objective was to create squares with the lowest possible constant. The lowest was considered to be one generated from the use of the first nine prime numbers, 1 through 23 (the number 1 then being used as a prime number). These first 9 primes add up to 99, and being divisible by 3, theoretically offered the potential of creating

a 3 cell magic square. It was proven that it was impossible and subsequently shown that the lowest possible constant was 111 generated from the primes of 1, 7, 13, 31, 37, 43, 61, 67, and 73. Higher order magic squares have also been shown to be impossible with the first n primes. Subsequent pursuit of the problem eventually

found that the first 144 "odd" prime numbers can actually be arranged in a 12 cell square, the total of the prime numbers being 54,168 and the constant being 4514. Note that the prime number 2 was not included.

Two prime number magic squares (using the 1 as a prime) are as follows:

67....1....43 created by H.E. Dudeney

13...37....61

31...73....7 adding up to 111.

The four cell one from Bergholt and Shuldham is

..3....71....5....23 created by E. Bergholt and C.D. Shuldham

53....11....37....1

17....13....41....31

29.....7....19....47 adding up to 102.

Clearly, they were either not aware of, or chose to ignore, the fact that the number 1 is not included in the list of primes.

Prime number magic squares (containing the 1) of order 5, 6, 7, ......12 were created by H.A. Sayles and J.N. Muncey and may be found in The Monist, 1913, vol.XXIII, pp. 623-630.

Lets briefly examine the possibility of creating a 3 cell magic square with the first normally identified prime numbers, 2, 3, 7, 11, 13, 17, 19, 23, 29, etc. The first thing to consider is that the total of all 9 numbers in the square must be divisible by 9, the result of which is the middle number of the square. Since 2 is the only even prime, all others being odd, any series of numbers including the 2 cannot be made into a magic square. With

the 2 included, the remaining 8 odd primes will add up to an even number, plus the even 2, results in an even total of numbers that cannot be divisided by 9. This is true for any odd cell magic square. Thus, the number 2 can never be included in a series of prime numbers to create an odd cell square.

What about even cell squares? We now find that the sum of the (n^2 - 1) odd primes in an even cell square will always add up to an odd number, plus the even prime of 2, results in an odd number. An even cell magic square must alaways add up to an even number however (except the 6 cell square) so again, the 2 cannot be

included. An even number of odd primes will add up to an even number however, making even cell prime squares possible without the 2.

Many magic squares are possible with a series of primes that are in arithmetic progression. The following is an example:

1669....199.....1249

.619....1039....1459

.829....1879.....409 all rows and diagonals adding up to 3117.

Others are possible with primes that are not in arithmetic progression such as:

367...73....83...353

.47..389...331...73

337...67....53...383

89...347...373...31 all rows and diagonals adding up to 840.

There are many others.

There are an infinite number of palindromic primes, e.g., 101, 131, 151, 181, 757, 919, 91019, 3535353, to name a few. Many palindromic primes are also in arithmetic progression, e.g., 1391, 14741, 15551, 16361, and 94049, 94349, 94649, 94949, for example. If you can find nine palindromic primes in arithmetic progression, you have the makings of another unusual 3 cell magic square.

Obviously, an infinite number of squares can be made using these open boundries and rules. Consider also the squares that can be created by rotating and reflecting the basic squares and those not starting with 1. Considering only the basic squares starting with 1, there is only one 3rd order magic square. There are 880 different 4th order basic squares and approximately 320,000,000 different 5th order basic squares. Wow!

Would you believe that it is possible to create a magic square where every row, column, and main diagonal, add up to a different number?

There are many other types of magic squares. A magic square where one, or both, of the main diagonal sums is different from the rectangular sums, is called a semi-magic square. Squares where all the diagonal sums are equal to the all the rectangular sums are called panmagic squares. A square created by replacing each of its numbers by its square is referred to as bimagic while one created by replacing each of its numbers by its cubes is called trimagic.

There are an unlimited number of orders for squares, hundreds of different methods of forming squares, and countless rotations and reflections of the squares. There are odd and even order squares, doubly even squares, bordered squares, symmetrical squares, pandiagonal squares, non-consecutive squares, trebly magic squares, etc., all created by Strachey's rule, De la Loubere's rule, Arnoux's rule, Margossian's method, Plank's method, Kraitchik's method, Heath's method, etc., and the list goes on and on. For the sake of brevity, and sanity, only the simplest have been discussed above.

I hope this information has been of some interest to you and that you will enjoy mystifying your friends with your magical abilities. If you have an interest in Magic Squares, I heartily recommend the references listed below.

1-- Math-E-Magic by Royal Vale Heath, Dover Publications, Inc., 1953. I believe it is still in publication.

2-- Mathematical Recreations and Essays by W.W. Rouse Ball and H.S.M. Coxeter, Dover Publications, Inc., 1987.

3-- Amusements in Mathematics by H.E. Dudeney, Dover Publications, Inc., 1970.

4-- The Moscow Puzzles by Boris A. Kordemsky, Dover Publications, Inc., 1992.

5-- 536 Curious Problems & Puzzles by Martin Gardner, Barnes & Noble Books, 1995.

6-- Madachy's Mathematical Recreations by Joseph S. Madachy, Dover Publications, Inc., 1979.

7-- Mathematical Recreations by Maurice Kraitchik, Dover Publications, Inc., 1942.

8-- Magic Squares and Cubes by W.S. Andrews, Dover Publications, Inc., 1960 (first published in 1917).

9--The Zen of Magic Squares, Circles and Stars,by Clifford A. Pickover, Dover Publications, Inc., 2002

..........................................................................ENJOY................................................................................