From: Tagi@cup.portal.com (Tagi Mordred Nagashiva)
Newsgroups: alt.magick
Subject: Re: I Ching and Magick Squares
Date: Tue, 18 Aug 92 15:23:16 PDT
Organization: The Portal System (TM)
  <64218@cup.portal.com>

9208.18 e.v.


Do what thou wilt shall be the whole of the Law.
The word of Sin is Restriction.


Here follows some information I've already received from people
in response to the second question about 8 x 8 Magick Squares.
They both come in direct response to a reposting of my question
about 8 x 8 Magick Squares in rec.puzzles and sci.math.  Enjoy!
---------------------------------------------------------------
There is an algorithm for odd-order magic squares:

The general idea is to write the numbers in order, always moving  
diagonally up-right.  The snag is that one crashes into the sides of  
the squares or into squares that already have numbers in them, and one  
needs rules to handle these cases.

1.  If the next box would cross the right side, go to the left-most box  
of the row above (which will always be empty!)

2.  If the next box would cross the top side, go to the lowest box of  
the column to the right.

3.  If the next box is filled, go to the box directly below the CURRENT
box (not the box below the "next" box).

4.  When you hit the upper right corner, go down one (apply rule 3.)

5.  Start with 1 (or any integer for that matter) in the middle box in  
the top row.

Confused?
Here's the 5x5:
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

I put 1 in the center top (rule 5).  I'd LIKE to put 2 in the box  
up-right, but there isn't one, so I apply rule 2, and put it in the  
lowest box in the next column.  The box up-right from the 2 is empty,  
so the 3 goes there.

But now I've hit the right side, so the 4 goes in the left-most box of
the row above (rule 1).  The 5 goes in the up-right box from the 4.   
Now I've hit the box that has the 1 in it (rule 3), so the 6 goes in  
below the 5.  7 and 8 follow nicely.  I've hit the top, so the 9 goes  
in the bottom of the next column. Now I've hit the side, so the 10 goes  
up and way to the left.  The next box has the 6 in it already, so the  
11 goes below the 10. 12-15 go in nicely, and then I use rule 4 and put  
16 below the 15.  I think that's an example of everything that can  
happen.

The only one I know for even-order squares is for the 4x4 case, where  
the numbers are written in order and the diagonals flipped:

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

Further, if one constructs a magic square of magic squares, one gets a  
magic square.  So I could construct a 12x12 magic square by the  
following method:

Make a 3x3 magic square using the algorithm above and the numbers 1-9,  
and call this MS1.  Make a second 3x3 using the numbers 10-18. This is  
MS2.

MS3 uses 19-27 and so on, until MS16.  Then arrange these 16 3x3  
according to the 4x4 pattern above (MSj goes in the box with j in it.)

In elementary school I won a local math contest by constructing an  
81x81 magic square which was really a 3x3 of 27x27's which in turn were  
3x3's of 9x9's which were 3x3's of 3x3's.  (The tedium wasn't worth the 
5 bucks I got for first prize.)


------------
AND
------------

There are several algorithms for magic squares.

Odd and even order squares must be constructed by different approaches.  
For odd orders, the most common algorithm is a recursive scheme devised 
by de la Loubere about 300 years ago.  For even orders, one procedure 
is the Devedec algorithm, which treats even orders not divisible by 
4 slightly differently from those which are divisible by 4 (doubly even).
  
These algorithms and others are described in, for example, "Magic
Squares and Cubes" by W.S. Andrews (The Open Court Publishing Co.,
Chicago, 1908; may also be available from Dover) and "Mathematical
Recreations" by M. Kraitchik (Dover, 1953).


-------------------

Both of these are duplicated without the author's permission or reference
to them.  It's the information that is important here, but if one of the
people sees this and wants credit, feel free to post your name in
association.  Thanks.

I'll post additional information I may receive from the soc.rel.eastern
newsgroup.  They may have something to say about the I Ching.


Invoke me under my stars.   Love is the law, love under will.


I am I!


Frater I Nigris (666)
Newsgroups: alt.magick