Algebraic On Magic Square of Odd Order N
Algebraic On Magic Square of Odd Order N
Mahyuddin K. M. Nasution
square of odd order n and a group, and their properties. By the modulo
number n, we construct entries for each table from initial table of magic
square with large number n2 . Generalization of the underlying idea is
presented, we obtain unique group, and we also prove variants of the
main results for magic cubes.
1 Introduction
According to the book of W. S. Andrews [1], the study of magic squares is quite
old and dates back to ancient Tibet, to 12th century China, to 9th century
Arab astrologers and perhaps much further. Speculation about it might even be
prehistoric.
In this paper, we shall see old procedure can product unique magic square
based on a group of a set f numbers in modulo n. Objectives are find new magic
square which it has different procedure if it compares with old. Therefore, we get
a procedure for generating new magic square. Of course, this paper organized by
first we defined the magic square with a condition for producting it, and based
on conditions we result a procedure on odd order n. Next section, we modify all
entries of magic square on modulo n and we test all conditions of magic square.
In finding new procedure for the magic square with all entries on modulo n,
we force a simple group on a set Zn with a binary operation, and based on we
find new magic square. What are all magic squares of odd order n satisfying the
condition of magic square?
a. each integer from 1 to n2 inclusive occurs exactly once among the entries of
A, Pn−1
b. for 0 ≤ i ≤ n − 1, the sum j=0 aij is independent of i,
2 M. K. M. Nasution
Pn−1
c. for 0 ≤ i ≤ n − 1, the sum j=0 aij is independent of j,
Pn−1 Pn−1
d. the sums i=0 aii and i=0 ai,n−i−1 are equal to the sums given in (b.),
and such as to those in (c.).
816
357
492
Fig. 1. 3 × 3 magic square (of odd order).
1 15 14 4
12 6 7 9
8 10 11 5
13 3 2 16
Fig. 1. 4 × 4 magic square (of even order).
24130
30241
41302
02413
13024
Fig. 4. 5 × 5 magic square in modulo 5.
2461350
3502461
4613502
5024613
6135024
0246135
1350246
Fig. 5. 7 × 7 magic square in modulo 7.
246813570
357024681
468135702
570246813
681357024
702468135
813500246
024681357
135002468
Fig. 6. 9 × 9 magic square in modulo 9.
A set Zn with a binary operation f is not an associative operation, and then
(Zn , f ) is not a group. Let us have a procedure to product new magic square (it
is called New MS), may be, so that a set Zn with a binary operation satisfies all
condition of group. The procedure as follows:
1. Copy an−1,j to first column.
2. Copy a(n−1)/2,j to second column.
3. Copy a0,j to third column.
4. Set i = 3, x = 0, y = 0
5. Do While i < 0
(a) If (i modulo 2 = 0) Then
i. x = x + 1
ii. Copy axj to aij
(b) Else
i. y = y + 1
ii. Copy a(n−1)/2+y,j to aij
6. End Do
For example, for the entries of a pair of squares, we run 1 to n2 and 1 to
2
n modulo n, n = 3, 5, 7, 9, respectively, and we obtain some equivalent squares,
Fig. 6, 7, 8, 9.
Algebraic on Magic Square of Odd Order n 5
618 012
753 → 120
294 201
Fig. 6. 3 × 3 magic square or square in modulo 3.
15 1 17 8 24 01234
16 7 23 14 5 12340
22 13 4 20 6 → 2 3 4 0 1
3 19 10 21 12 34012
9 25 11 2 18 40123
Fig. 7. 5 × 5 magic square or square in modulo 5.
28 1 30 10 39 19 48 0123456
29 9 38 18 47 27 7 1234560
37 17 46 26 6 35 8 2345601
45 25 5 34 14 36 16 → 3 4 5 6 0 1 2
4 33 13 42 15 44 24 4560123
12 41 21 43 23 3 32 5601234
20 49 22 2 31 11 40 6012345
Fig. 8. 7 × 7 magic square or square in modulo 7.
45 1 47 12 58 23 69 34 80 012345678
46 11 57 22 68 33 79 34 9 123456780
56 21 67 32 78 43 8 54 10 234567801
66 31 77 42 7 53 18 55 20 345678012
76 41 6 52 17 63 19 65 30 → 4 5 6 7 8 0 1 2 3
5 51 16 62 27 64 29 75 40 567801234
15 61 26 72 28 74 39 4 50 678012345
25 71 36 73 38 3 49 14 60 780123456
35 81 37 2 48 13 59 24 70 801234567
Fig. 9. 9 × 9 magic square or square in modulo 9.
51 46 53 6 1 8 69 64 71
52 50 48 7 5 3 70 68 66
47 54 49 2 9 4 65 72 67
60 55 62 42 37 44 24 19 26
61 59 57 43 41 39 25 23 21
56 63 58 38 45 40 20 27 22
15 10 17 78 73 80 33 28 35
16 14 12 79 77 75 34 32 30
11 18 13 74 81 76 29 36 31
Fig. 10. 3 × 3 magic square in 3 × 3 magic square.
We locate the square in B which contains the number 1 and place a copy
of A in the corresponding square of the frame we have just constructed. Next
we locate the square in B containing 2 and in the corresponding the square, we
count out the next 9 numbers in the same pattern. It is the same to say that we
adds 9 for all of the entries of A and places the result in the box corresponding
to the position of the 2 in B. Next we find the 3 of B and we counts out the next
9 numbers in the corresponding place in the frame. Continuing in this way, we
eventually get the magic square completely by this method.
69 64 71 6 1 8 51 46 53
70 68 66 7 5 3 52 50 48
65 72 67 2 9 4 47 54 49
24 19 26 42 37 44 60 55 62
25 23 21 43 41 39 61 59 57
20 27 22 38 45 40 56 63 58
33 28 35 78 73 80 15 10 17
34 32 30 79 77 75 16 14 12
29 36 31 74 81 76 11 18 13
Fig. 10. 3 × 3 magic square in a modified 3 × 3 magic square.
53 46 51 8 1 6 71 64 69
48 50 52 3 5 7 66 68 70
49 54 47 4 9 2 67 72 65
62 55 60 44 37 42 26 19 24
57 59 61 39 41 43 21 23 25
58 63 56 40 45 38 22 27 20
17 10 15 80 73 78 35 28 33
12 14 16 75 77 79 30 32 34
13 18 11 76 81 74 31 36 29
Fig. 11. The modified 3 × 3 magic square in a 3 × 3 magic square.
Algebraic on Magic Square of Odd Order n 7
The product of two squares A*B be an order 12, it is the product of the
orders of A and B. It is convenient to represent an analytic expression for this
operation as (1) and (2) of Lemma 1. For n = 3 and 9 we can see easily that m
= n, a binary operation (1) to be
For special case for n = 3 and n = 9 as new magic squares follow the Lemma 1,
2, and 3.
4 Conclusions
References
Appendix
Table A. Results of computation for all conditions of magic squares.