Professional Documents
Culture Documents
Magie Squares
Entry 2(i). Let m, and m2 denote the sums of the middle row and middle column,
respectively, of a 3 x 3 square array of numbers. Let c1 and c2 denote the sums
of the main diagonal and secondary diagonal, respectively. Lastly, let S denote
the sum of a11 nine elements of the square. Then tfx denotes the tenter element of
the square,
x = $(m, + m2 + c1 + c2 -S).
Entry 2(ii). Suppose that the sum of each row and column is equal to r. Then, in
the notation of Entry 2(i),
x = +(c, + c2 - r).
Note that if the square is magie, then Entry 2(ii) implies that x = r/3, and SO
r is a multiple of 3.
Proof. In each case, the second element is equal to r/3 by the remark above. If
a and b are the first and third elements, respectively, in any of the four cases,
then
a + r/3 + b = r.
18 1. Magie Squares
Hence,
b - r/3 = r/3 - a,
i.e., the three numbers are in arithmetic progression.
Example 1. Construct magie squares with (i) r = 15, and (ii) Y = 27 and a11
numbers odd.
Solutions.
Dl
15 1 11
5 9 13
7 17 3
Example 2. Construct magie squares with (i) r = 36 and a11 elements even, and
(ii) r = 63 and a11 elements divisible by 3.
Solutions.
Example l(i). Construct a 3 x 3 square with a11 row and column sums equal to
19 but with only one diagonal sum equal to 19.
Solution.
Example l(ii). Construct a 3 x 3 square with a11 row and column sums equal to
31 but with dnly one diagonal sum equal to 31. Ramanujan also requires that a11
the elements be odd, but the example that he gives does not satisfy this criterion.
Solution.
Example 2(i). Construct a 3 x 3 square with a11 row and column sums equal to
20 and diagonal sums equal to 16 and 19.
Solution.
Example 2(ii). Construct a square with diagonal sums 15 and 19, column sums
16, 17, a n d 12, a n d r o w sums 6, 21, a n d 18.
Solution.
20 1. Magie Squares
Solutions.
El
1 13 3 15
11 9 1 5
12 2 14 4
There are no restrictions on the elements in the first square, but in the
second we need to require that A + D = B + C and P + S = Q + R.
In a note, Ramanujan remarks “If A + D = B + C and P + R = Q + S the
extreme middle four in the first square also satisfy the given condition.” “The
extreme middle four” is not defined by Ramanujan, but presumably they are
the four middle squares which, in fact, have been blocked out by Ramanujan.
But then the hypotheses A + D = B + C and P + R = Q + S are not needed!
Example 1. Construct 4 x 4 magie squares with common sums of 34, 34, ad 35.
Solution.
Al1 three examples are instances of the first general construction described
above. A table of parameters for these three examples as well as the next two
examples is provided below.
Example A B C D P Q R S
la 1 5 9 13 0 2 3 1
lb 1 3 7 5 0 8 1 9
lc 1 5 9 14 0 2 3 1
2a 1 5 25 29 0 2 3 1
2b 9 13 17 21 0 2 3 1
22 1. Magie Squares
Solution.
Solution.
There are no restrictions on the parameters in the first square, but in the
second, the condition A + B + D + E = 4C must be satisfied.
Solution.
The first magie square arises from the second general construction and,
according to W. S. Andrews [ 1, p. 21, is a very old magie square. The second is
a consequence of the first general method. The parameters may be chosen by
24 1. Magie Squares
taking P=O, Q=l, R=2, S=3, T=4, A=l, B=6, C=il, 0=16, and
E = 21, 22, respectively.
Solution.
1 26 45 15 41 12 30
40 32 24 16 8 7 48