NEW METHOD FOR GENERATING MAGIC SQUARES OF SQUARES
GENERATION OF MAGIC SQUARES WITH SEVEN SQUARES (Part IG)
Magic Squares of Seven Squares with Imaginary Numbers-Section I
Previously using non imaginary integers, the magic square below containing seven squares was discovered by Andrew Bremner and independently by Lee Sallows:
3732 | 2892 | 5652 |
360721 | 4252 | 232 |
2052 | 5272 | 222121 |
This section deals with novel magic squares of squares containing at least one imaginary number having the form
(ni)2, which when squared becomes the square of a negative number, -n2. It has been found that there exists an infinite number of tuples (ai,b,c) containing at least one imaginary square which
can be used as the right diagonal in magic squares. Methods for construction of these tuples are listed in Part IA,
Part IA2, Part IB, Part IC,
Part IIC, Part IIIC, Part ID,
Part IE and Part IF.
To date eight magic squares of squares containing imaginanary numbers have been found. These are listed below with their sums and deltas (Δ) where:
Δ = c2 − b2 = b2 − (−a2)
Δ = 720, Sum=1728
412 | -1249 | 362 |
191 | 242 | 312 |
(12i)2 | 492 |
(23i)2 |
|
≡ |
1681 | -1249 | 1296 |
191 | 576 | 961 |
-144 | 2401 | -529 |
|
Δ = 2465, Sum=2352
82 | (31i)2 |
572 |
632 | 282 | (49i)2 |
(41i)2 | 2529 |
1504 |
|
≡ |
64 | -961 | 3249 |
3969 | 784 | -2401 |
-1681 | 2529 | 2504 |
|
Δ = 89425, Sum=846722
(161i)2 | (84i)2 | 3432 |
171794 | 1682 | -115346 |
(57i)2 | 2522 | 2872 |
|
≡ |
-25921 | -7056 | 117649 |
171794 | 28224 | -115346 |
-2601 | 63504 | 82369 |
|
Δ = 89425, Sum=846722
(84i)2 | (161i)2 | 3432 |
152929 | 1682 | -96481 |
(57i)2 | 2872 | 2522 |
|
≡ |
-7056 | -25921 | 117649 |
152929 | 28224 | -96481 |
-2601 | 82369 | 63504 |
|
Δ = 9360, Sum=6912
972 | (119i)2 | 1082 |
4559 | 482 | 72 |
(84i)2 | 1372 | -4801 |
|
≡ |
9409 | -14161 | 11664 |
4559 | 2304 | 49 |
-7056 | 18769 | -4801 |
|
Δ = 12240, Sum=15552
1132 | (121i)2 | 1322 |
9839 | 722 | 232 |
(84i)2 | 25009 |
(49i)2 |
|
≡ |
12769 | -14641 | 17424 |
9839 | 5184 | 529 |
-7056 | 25009 | -2401 |
|
Δ = 12240, Sum=15552
(121i)2 | 1132 |
1322 |
1932 | 722 | -26881 |
(84i)2 | (49i)2 |
25009 |
|
≡ |
-14641 | 12769 | 17424 |
37249 | 5184 | -26881 |
-7056 | -2401 | 25009 |
|
Δ = 1564901, Sum=367500
702 | (1151i)2 |
12992 |
1808001 | 3502 | (1249i)2 |
(1201i)2 | 1569801 |
4902 |
|
≡ |
4900 | -1324801 | 1687401 |
1805001 | 122500 | -1560001 |
-1442401 | 1569801 | 240100 |
|
Magic Squares with Imaginary Numbers-Section II
A second type of Magic squares with Imaginary numbers consists of the type (-ni, 0, n) whuch is constructed
as follows:
Square P1
a2 | (di)2 | b2 |
(ci)2 | 02 | c2 |
(bi)2 | d2 | (ai)2 |
|
≡ |
Square P2
a2 | -(a2+b2) | b2 |
-(a2-b2) | 02 | a2-b2 |
-b2 | a2+b2 | -a2 |
|
whereby d2 = a2+b2 and c2 = a2-b2. In addition, both squares have
Δ = b2 and Sum=0.
If we use for example n = 8, the following two magic squares containing
((8i)2, 0, 82) as the right diagonal can be generated.
Furthermore, increasing n produces larger amounts of magic squares of seven squares as shown for the
first four squares for n = 60. In addition,
Squares D, E and F are divisible by 52, 42 and 152, respectively.
Square A(Δ = 64, Sum=0)
102 | -164 | 82 |
(6i)2 | 02 | 62 |
(8i)2 | 164 | (10i)2 |
|
|
Square B(Δ = 64, Sum=0)
172 | -353 | 82 |
(15i)2 | 02 | 152 |
(8i)2 | 353 | (17i)2 |
|
Square C(Δ = 3600)
612 | -7321 | 602 |
(12i)2 | 02 | 122 |
(60i)2 | 7321 | (61i)2 |
|
|
Square D(Δ = 3600)
652 | -7825 | 602 |
(25i)2 | 02 | 252 |
(60i)2 | 7825 | (65i)2 |
|
|
Square E(Δ = 3600)
682 | -8224 | 602 |
(32i)2 | 02 | 322 |
(60i)2 | 8224 | (68i)2 |
|
|
Square F(Δ = 3600)
752 | -9225 | 602 |
(45i)2 | 02 | 452 |
(60i)2 | 9225 | (75i)2 |
|
We can determine if it is possible to construct magic squares having more than seven squares of the type shown here by analyzing the equations in
Square P2:
d2 = -(a2 + b2) | (a) |
d = √-(a2 + b2) =
√(a2 + b2) i | (b) |
c2 = a2 - b2 | (c) |
c = √(a2 - b2) | (d) |
For c2 and d2 to be both perfect squares c2 = -d2, i.e., | |
(a2 - b2) = (a2 + b2) | (e) |
However, this is only possible when a = any number and b = 0, or when b = any number and a = 0 or when a = b = 0. Thus, we have either a square where
all cells are 0 or one where either the right diagonal contains all zeros or the left diagonal contains all zeros and the rest,
each row, column and the other diagonal consists of non zero integers as shown below in Squares G and H:
Square G(Δ=0,Sum=0)
a2 | -a2 | 0 |
-a2 | 0 | a2 |
0 | a2 | -a2 |
|
|
Square H(Δ=b2,Sum=0)
0 | -b2 | b2 |
b2 | 0 | -b2 |
-b2 | b2 | 0 |
|
Pythagorean theorem and Magic Squares of Seven Squares
Alternatively, we can use the Pythagorean theorem to generate the table below using Square P1 and 2 as template:
We can generate the following series of squares based on the Pythagorean theorem: a2 + b2 = d2 and force all
the numbers in row 1 to be squares. Listed below are three examples. Example I uses the lowest set of squares
32 + 42 = 52, example II uses
62 + 82 = 102 and example III uses 92 + 122 = 152:
Example | c | d |
I | √(42 - 32) |
√(32 + 42) i |
II | √(82 - 62) |
√(82 + 62) i |
III | √(122 - 92) |
√(92 + 122) i |
Ex I, Δ = 9, Sum=0
42 | -52 | 32 |
-7 | 0 | 7 |
-32 | 52 | -42 |
|
|
Ex II, Δ = 36, Sum=0
82 | -102 | 62 |
-28 | 0 | 28 |
-62 | 102 | -82 |
|
|
Ex III, Δ = 81, Sum=0
122 | -152 | 92 |
-63 | 0 | 63 |
-92 | 152 | -122 |
|
Examining these squares, c2 is actually equal to 7n2 where n is a multiple of a square and, therefore,
c = √7n. Thus, c can never be an integer and only seven squares are possible
with this types of magic square.
The Square Variables for Each Cell of a 3x3 Square with a Negative a2
A 3x3 magic square of squares, having a -a2 in the left lower corner cell, is composed of nine cells having the structure as shown in Square I
when four variables a2, b2, c2 and
d2 are used to specify the square. Since the sum of the four corner cells equals the sum of the four outside central cells, e.g.,:
c2 + d2 + 2a2 + 4b2 = 2c2 + 2d2 + 4a2 + 4b2
2a2 = -(c2 + d2)
d2 = -c2 - 2a2 = -(c2 + 2a2)
then substituting c2 - 2a2 for d2 affords Square II in terms of only a2, b2 and c2:
Square I
c2 + a2 + b2 | d2 | a2 + 2b2 |
d2 + 2a2 + 2b2 | b2 | c2 |
-a2 | c2 + 2a2 + 2b2 | d2 + a2 + b2 |
|
→ |
Square II
c2 + a2 + b2 | -2a2 - c2 | a2 + 2b2 |
-c2 + 2b2 | b2 | c2 |
-a2 | c2 + 2a2 + 2b2 | -a2 + b2 - c2 |
|
Furthermore Δ, the variable added to those cells having a b2, c2 and d2 as shown in the picture
at the beginning of the page, is equal to a2 + b2 and is part of cells 1, 3, 4, 5, and 6 moving in a horizontal direction (→).
Thus, all we need to know is a, b and c to generate a magic square of squares having an imaginary a in its major diagonal. In addition, the Magic Sum for each line or
diagonal is 3b2. And finally we can conclude that we can generate magic squares having at least 7 squares, but finding one with 8 or 9 squares is
a major effort.
This concludes Part IG.
Go back to homepage.
Copyright © 2016 by Eddie N Gutierrez. Revised June 2018. E-Mail: edguti144@outlook.com