The rows, columns and main diagonals of Square C sum to 2 times the corresponding sum of Magic Square B plus 9 times the corresponding sum of Medjig square A which results in s1 = 2 * 15 + 9 * 9 = 111.
Further it is obvious that as b(i) ≠ b(j) for i ≠ j with i, j = 1, 2, ... 9 also c(m) ≠ c(n) for n ≠ m with n, m = 1, 2, ... 36.
A numerical example is shown below:
B (3 x 3)

Medjig Square A (3 x 3)
2

3

0

2

0

2

1

0

3

1

3

1

3

1

1

2

2

0

0

2

0

3

3

1

3

2

2

0

0

2

0

1

3

1

1

3


Magic Square C (6 x 6)
26

35

1

19

6

24

17

8

28

10

33

15

30

12

14

23

25

7

3

21

5

32

34

16

31

22

27

9

2

20

4

13

36

18

11

29


Similarly, for any larger integer n, a magic square C of order 2n can be constructed from any n x n medjigsquare
A with each row, column, and main diagonal summing to 3n, and any n x n magic square B, by applying the following equations:
b_{i} + n^{2} a_{j},
with i = 1, 2, ... n^{2} and j = 1, 2, ... 4n^{2}.
6.6.2 Further Analysis
Medjig Squares are described by the same set of linear equations as shown in section 6.2 for Magic Squares, however with magic sum 9 and following additional equations:
a( 1) + a( 2) + a( 7) + a( 8) = 6
a( 3) + a( 4) + a( 9) + a(10) = 6
a( 5) + a( 6) + a(11) + a(12) = 6
a(13) + a(14) + a(19) + a(20) = 6
a(15) + a(16) + a(21) + a(22) = 6
a(17) + a(18) + a(23) + a(24) = 6
a(25) + a(26) + a(31) + a(32) = 6
a(27) + a(28) + a(33) + a(34) = 6
a(29) + a(30) + a(35) + a(36) = 6
which can be reduced, by means of row and column manipulations, to the minimum number of linear equations:
a(31) = 9  a(32)  a(33)  a(34)  a(35)  a(36)
a(29) = 6  a(30)  a(35)  a(36)
a(27) = 6  a(28)  a(33)  a(34)
a(25) = 6  a(26)  a(31)  a(32)
a(19) = 9  a(20)  a(21)  a(22)  a(23)  a(24)
a(17) = 6  a(18)  a(23)  a(24)
a(15) = 6  a(16)  a(21)  a(22)
a(13) = 6  a(14)  a(19)  a(20)
a(11) = 6 + a(12)  a(16) + a(18)  a(21) + a(24)  a(26)  a(29)  a(31)  a(35)
a( 8) = 9  0.5*a(9)  0.5*a(10)  a(12)  0.5*a(14) + a(16)  0.5*a(18)  0.5*a(20) + a(21)  0.5*a(24) +
 a(25) a(26)  0.5*a(27)  0.5*a(28)  a(32) + a(35)
a( 7) = a( 8) + a(14)  a(16) + a(20)  a(21)  a(25) + a(29)  a(31) + a(36)
a( 6) = 3  a(12)  a(18)  a(24) + a(29) + a(35)
a( 5) = 3  a(12) + a(16) + a(21) + a(26) + a(31)
a( 4) = 9  a(10)  a(16)  a(22)  a(28)  a(34)
a( 3) = 3  a( 9) + a(16) + a(22) + a(28) + a(34)
a( 2) = 3  a( 8)  a(14)  a(20) + a(25) + a(31)
a( 1) = 3 + a( 2) + a(14) + a(16) + a(20) + a(21) + a(26) + a(27) + a(28)  a(29)  a(31)  a(35)  2*a(36)
The linear equations shown above are ready to be solved, for the magic constant 9.
The solutions can be obtained by guessing a(9), a(10), a(12), a(14), a(16), a(18), a(20) ... a(24), a(26), a(28), a(30) and
a(32) ... a(36) and filling out these guesses in the abovementioned equations.
To obtain the integers 0, 1, 2 and 3 also following relations should be applied:
0 =< a(i) =< 3 for i = 1, 2, ... 8, 11, 13, 15, 17, 19, 25, 27, 29, 31
Int(a(i)) = a(i) for i = 8
which can be incorporated in a guessing routine, which can be used to generate a defined number of Medjig Squares within a reasonable time.
With the third row of Medjig pieces constant, an optimized guessing routine (MgcSqr6d) produced 808 Medjig Squares within 28 seconds, which are shown in Attachment 6.8.1.
The resulting Magic Squares, based on the 8 possible Magic Squares of the 3^{th} order, are shown in Attachment 6.8.2.
The total number of possible 3 x 3 Medjig Squares for which the rows, columns and main diagonals sum to 9 is
1.740.800.
It should be noted that, although much faster, not all Magic Squares of the 6^{th} order can be found by means of the Medjig Solution.
6.6.3 Symmetrical Main Diagonals
With the option 'Symmetrical Main Diagonals' enabled, routine (MgcSqr6d) counted 125184 Medjig Squares within 5,5 minutes, of which the first 120 are shown in Attachment 6.8.3.
A few (120 ea) of the resulting Magic Squares with Symmetrical Main Diagonals, based on the first 3^{th} order Magic Square listed in routine (MgcSqr6d), are shown in Attachment 6.8.4.
