A New Procedure for Magic Squares (Part I) - New Magic Constant Equation
Loubère Block Modified Squares
A Discussion of the New Method
An important general principle for generating odd magic squares by the De La Loubère method is that the center cell must always contain the middle number of
the series of numbers used, i.e. a number which is equal to one half the sum of the first and last numbers of the series, or
½(n2 + 1). The properties of these regular or associated Loubère squares are:
- That the sum of the horizontal rows,
vertical columns and corner diagonals are equal to the magic sum S.
- The sum of any two numbers that are diagonally equidistant from the center (DENS) is equal to
n2 + 1, i.e., or twice the number in the center cell and are complementary to each other.
The 5x5 regular Loubère square is shown below as an example:
********************************************************************************************************************************************************
| 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 |
********************************************************************************************************************************************************
Normally the Loubère method involves a stepwise approach of consecutive numbers, i.e., 1,2,3...n2. For example,
A new generalized Loubère procedure where the initial number is placed anywhere on any
n - 1
cells of the first row. However, in this new method although the numbers are added consecutively starting with 1 and ending with
n2, the final square is transformed into a modified
Loubère, having numbers greater than n2 by modifying a block or grid of numbers. The initial number is added either at
the normal Loubère
sites, i.e., (the center of the last row or last column) or on the main diagonal. Every number on the diagonal can be modified, up to n - 1.
Replacement of all n numbers on the diagonal leads to semi-magic squares.
This is done by taking the non-magic squares
and converting them into magic ones using a variety of means. These squares are depicted below in methods I and II.
The generation of these magic squares involves an almost normal approach:
Numbers are added consecutively starting out with 1 and ending with numbers greater
than n2 after modification. A break involves
translational moves (up, down or sideways).
Moreover, it must be stated here that the magic sum has been modified from the known equation
S = ½(n3 + n) to
the general equation:
S = ½(n3 ± an)
which takes into account these new squares. The variable a, an odd number, is equal to 1,3,5,7 or ... and may take on + or -
values. For example when a = 1 the normal magic sum S is implied.
When a takes on different odd values S gives the magic sum of a modified magic square.
It will be shown that the addition or subtraction of n2 to some of the cells in
the square gives rise to a new magic square.
Construction of 5x5 Block Modified Loubère Squares
Method IA: Start at lower left hand corner (1, 2 ⇒ break)
- Place 1 into the lower left hand corner.
- Add consecutive numbers up to the middle cell.
- Move, i.e. break, one cell down.
- Repeat the process until the square is filled as shown below in squares 1-3.
- As shown below this square is not magic because the two columns and two rows (in grey) sum to 50 instead of 75.
- Where the sums 50 cross corresponds to the small square in blue.
- Since the numbers 1 and 2 sit on a diagonal which sums to 75, these numbers remain unchanged.
- To square 3 adding n2 = 25 to both 20 and 3 (color change to
light green) gives
the magic square 4 where S = ½(n3 + 5n).
- To square 3 adding -n2 = -25 outside the block to 23, 18 and 6 (color change to
light green) gives
the magic square 5 where S = ½(n3 - 5n).
1
|   |   |   |
  |   |
|   |   |   |
  |   |
|   |   |   |
  |   |
|   | 2 |   |
  |   |
| 1 | 3 |   |
  |   |
|
⇒   |
2
| 7 | 9 | 16 |
18 |   |
| 8 | 15 | 22 |
  | 6 |
| 14 | 21 |   |
5 | 12 |
| 20 | 2 | 4 |
11 | 13 |
| 1 | 3 | 10 |
17 | 19 |
|
  ⇒   |
3
| 75 |
| 7 | 9 | 16 |
18 | 25 | 75 |
| 8 | 15 | 22 |
24 | 6 | 75 |
| 14 | 21 | 23 |
5 | 12 | 75 |
| 20 | 2 | 4 |
11 | 13 | 50 |
| 1 | 3 | 10 |
17 | 19 | 50 |
| 50 | 50 | 75 |
75 | 75 | 75 |
|
  ⇒   |
4
| 75 |
| 7 | 9 | 16 |
18 | 25 | 75 |
| 8 | 15 | 22 |
24 | 6 | 75 |
| 14 | 21 | 23 |
5 | 12 | 75 |
| 45 | 2 | 4 |
11 | 13 | 75 |
| 1 | 28 | 10 |
17 | 19 | 75 |
| 75 | 75 | 75 |
75 | 75 | 75 |
|
  +   |
5
| 50 |
| 7 | 9 | 16 |
-7 | 25 | 50 |
| 8 | 15 | 22 |
24 | -19 | 50 |
| 14 | 21 | -2 |
5 | 12 | 50 |
| 20 | 2 | 4 |
11 | 13 | 50 |
| 1 | 3 | 10 |
17 | 19 | 50 |
| 50 | 50 | 50 |
50 | 50 | 50 |
|
********************************************************************************************************************************************************
Method II: Start on the main diagonal one cell up from the center cell (1, 2 ⇒ break)
- Place 1 one cell up from the center of the main diagonal.
- Add consecutive numbers up to the right hand corner.
- Move, i.e. break, one cell down.
- Repeat the process until the square is filled as shown below in squares 1-3.
- As shown below this square is not magic because the two columns and two rows (in grey) sum to 50 instead of 75.
- Where the sums 50 cross corresponds to the small square in blue.
- Since the numbers 1 and 2 sit on a diagonal which sums to 75, these numbers remain unchanged.
- Adding n2 = 25 to both 20 and 3 gives the magic square 4
where S = ½(n3 + 5n).
- Similarly the square breaking to the left results a square identical to 4 except for rotation (not shown).
1
|   |   |   |
  | 2 |
|   |   |   |
1 | 3 |
|   |   |   |
  |   |
|   |   |   |
  |   |
|   |   |   |
  |   |
|
⇒   |
2
| 4 | 11 | 13 |
20 | 2 |
| 10 | 17 | 19 |
1 | 3 |
| 16 | 18 |   |
7 | 9 |
| 22 |   | 6 |
8 | 15 |
|   | 5 | 12 |
14 | 21 |
|
  ⇒   |
3
| 75 |
| 4 | 11 | 13 |
20 | 2 | 50 |
| 10 | 17 | 19 |
1 | 3 | 50 |
| 16 | 18 | 25 |
7 | 9 | 75 |
| 22 | 24 | 6 |
8 | 15 | 75 |
| 23 | 5 | 12 |
14 | 21 | 75 |
| 75 | 75 | 75 |
50 | 50 | 75 |
|
  ⇒   |
4
| 75 |
| 4 | 11 | 13 |
45 | 2 | 75 |
| 10 | 17 | 19 |
1 | 28 | 75 |
| 16 | 18 | 25 |
7 | 9 | 75 |
| 22 | 24 | 6 |
8 | 15 | 75 |
| 23 | 5 | 12 |
14 | 21 | 75 |
| 75 | 75 | 75 |
75 | 75 | 75 |
|
********************************************************************************************************************************************************
Method IB: Start at lower left hand corner (1, 2, 3, 4 ⇒ break)
- Place 1 into the lower left hand corner.
- Add consecutive numbers up to the n - 1 cell.
- Move, i.e. break, one cell down.
- Repeat the process until the square is filled as shown below in squares 1-2.
- As shown below this square is not magic because the two columns and two rows (in grey) sum to 35 and 60 instead of 80.
- Where the sums 60 cross corresponds to the small square in blue.
- Since the numbers 1, 2, 3 and 4 sit on a diagonal which sums to 35, two of these numbers will be modified. Also the left diagonal.
- Adding n2 = 25 to both (2,3,13,17) and (3,4,8,20)
(color change to light green) gives the magic squares 3 and 4
and where S = ½(n3 + 9n).
1
|   |   |   |
  |   |
|   |   |   |
4 |   |
|   |   | 3 |
5 |   |
|   | 2 |   |
  |   |
| 1 |   |   |
  |   |
|
  ⇒   |
2
| 35 |
| 7 | 14 | 16 |
23 | 25 | 85 |
| 13 | 15 | 22 |
4 | 6 | 60 |
| 19 | 21 | 3 |
5 | 12 | 60 |
| 20 | 2 | 9 |
11 | 13 | 60 |
| 1 | 8 | 10 |
17 | 24 | 60 |
| 60 | 60 | 60 |
60 | 85 | 60 |
|
  ⇒   |
3
| 85 |
| 7 | 14 | 16 |
23 | 25 | 85 |
| 38 | 15 | 22 |
4 | 6 | 85 |
| 19 | 21 | 28 |
5 | 12 | 85 |
| 20 | 27 | 9 |
11 | 13 | 85 |
| 1 | 8 | 10 |
42 | 24 | 85 |
| 85 | 85 | 85 |
85 | 85 | 85 |
|
  +   |
4
| 85 |
| 7 | 14 | 16 |
23 | 25 | 85 |
| 13 | 15 | 22 |
29 | 6 | 85 |
| 19 | 21 | 28 |
5 | 12 | 85 |
| 45 | 2 | 9 |
11 | 13 | 85 |
| 1 | 33 | 10 |
17 | 24 | 85 |
| 85 | 85 | 85 |
85 | 85 | 85 |
|
********************************************************************************************************************************************************
Method IIIA:Start at the center of the last column (1, 2 ⇒ break)
- Place 1 in the middle of the last column.
- For this 5x5 square add consecutive number 2.
- Move, i.e. break, one cell down.
- Repeat the process until the square is filled as shown below in squares 1-2.
- As shown below this square is not magic because the two columns and two rows (in grey) sum to 50 instead of 75.
- Where the sums 50 cross corresponds to the small square in blue.
- Since the four numbers do not sit on a diagonal, two possible squares are possible.
- Adding n2 = 25 to both (2 and 1) or (3 and 20) gives the magic squares 3 and 4.
1
|   |   |   |
  |   |
| 2 |   |   |
  |   |
| 3 |   |   |
  | 1 |
|   |   |   |
  |   |
|   |   |   |
  |   |
|
⇒   |
2
| 75 |
| 21 | 23 | 5 |
12 | 14 | 75 |
| 2 | 4 | 11 |
13 | 20 | 50 |
| 3 | 10 | 17 |
19 | 1 | 50 |
| 9 | 16 | 18 |
25 | 7 | 75 |
| 15 | 22 | 24 |
6 | 8 | 75 |
| 50 | 75 | 75 |
75 | 50 | 75 |
|
  ⇒   |
3
| 75 |
| 21 | 23 | 5 |
12 | 14 | 75 |
| 27 | 4 | 11 |
13 | 20 | 75 |
| 3 | 10 | 17 |
19 | 26 | 75 |
| 9 | 16 | 18 |
25 | 7 | 75 |
| 15 | 22 | 24 |
6 | 8 | 75 |
| 75 | 75 | 75 |
75 | 75 | 75 |
|
  +   |
4
| 75 |
| 21 | 23 | 5 |
12 | 14 | 75 |
| 2 | 4 | 11 |
13 | 45 | 75 |
| 28 | 10 | 17 |
19 | 1 | 75 |
| 9 | 16 | 18 |
25 | 7 | 75 |
| 15 | 22 | 24 |
6 | 8 | 75 |
| 75 | 75 | 75 |
75 | 75 | 75 |
|
********************************************************************************************************************************************************
Method IIIB:Start at the center of the last column (1, 2, 3 ⇒ break)
- Place 1 in the middle of the last column.
- For this 5x5 square add consecutive numbers 2 and 3.
- Move, i.e. break, one cell down.
- Repeat the process until the square is filled as shown below in squares 1-2.
- As shown below this square is not magic because the two columns and two rows (in grey) sum to 55 instead of 80.
- Where the sums 55 cross corresponds to the small square in blue.
- Since the numbers to be modified cannot sit on a diagonal, two possible squares are possible.
- Adding n2 = 25 to both (3, 8 and 20) or (1, 2 and 3) gives the magic squares 3 and 4
and where S = ½(n3 + 7n).
1
|   | 3 |   |
  |   |
| 2 | 4 |   |
  |   |
|   |   |   |
  | 1 |
|   |   |   |
  |   |
|   |   |   |
  |   |
|
⇒   |
2
| 80 |
| 21 | 3 | 5 |
12 | 14 | 55 |
| 2 | 4 | 11 |
18 | 20 | 55 |
| 8 | 10 | 17 |
19 | 1 | 55 |
| 9 | 16 | 23 |
25 | 7 | 80 |
| 15 | 22 | 24 |
6 | 13 | 80 |
| 55 | 55 | 80 |
80 | 55 | 80 |
|
  ⇒   |
3
| 80 |
| 21 | 28 | 5 |
12 | 14 | 80 |
| 2 | 4 | 11 |
18 | 45 | 80 |
| 33 | 10 | 17 |
19 | 1 | 80 |
| 9 | 16 | 23 |
25 | 7 | 80 |
| 15 | 22 | 24 |
6 | 13 | 80 |
| 80 | 80 | 80 |
80 | 55 | 80 |
|
  +   |
4
| 80 |
| 21 | 28 | 5 |
12 | 14 | 80 |
| 27 | 4 | 11 |
18 | 20 | 80 |
| 8 | 10 | 17 |
19 | 26 | 80 |
| 9 | 16 | 23 |
25 | 7 | 80 |
| 15 | 22 | 24 |
6 | 13 | 80 |
| 80 | 80 | 80 |
80 | 80 | 80 |
|
********************************************************************************************************************************************************
Method IVA:Start at the center of the last row (1, 2 ⇒ break)
- Place 1 in the middle of the last row.
- For this 5x5 square add consecutive number 2.
- Move, i.e. break, one cell down.
- Repeat the process until the square is filled as shown below in squares 1-2.
- As shown below this square is not magic because the two columns and two rows (in grey) sum to 50 instead of 75.
- Where the sums 50 cross corresponds to the small square in blue.
- Since one of the six number sits on a diagonal which adds to 50 the magic square must modify this number.
- Adding n2 = 25 to 1 and 2 gives the magic square 3.
1
|   |   |   |
  |   |
|   |   |   |
  |   |
|   |   |   |
  |   |
|   |   |   |
2 | 3 |
|   |   | 1 |
  |   |
|
⇒   |
2
| 75 |
| 18 | 25 | 7 |
9 | 16 | 75 |
| 24 | 6 | 8 |
15 | 22 | 75 |
| 5 | 12 | 14 |
21 | 23 | 75 |
| 11 | 13 | 20 |
2 | 4 | 50 |
| 17 | 19 | 1 |
3 | 10 | 50 |
| 75 | 75 | 50 |
50 | 75 | 50 |
|
  ⇒   |
3
| 75 |
| 18 | 25 | 7 |
9 | 16 | 75 |
| 24 | 6 | 8 |
15 | 22 | 75 |
| 5 | 12 | 14 |
21 | 23 | 75 |
| 11 | 13 | 20 |
27 | 4 | 75 |
| 17 | 19 | 26 |
3 | 10 | 75 |
| 75 | 75 | 75 |
75 | 75 | 75 |
|
********************************************************************************************************************************************************
Method IVB:Start at the center of the last row (1, 2, 3 ⇒ break)
- Place 1 in the middle of the last row.
- For this 5x5 square add consecutive numbers 2 and 3.
- Move, i.e. break, one cell down.
- Repeat the process until the square is filled as shown below in squares 1-2.
- As shown below this square is not magic because the two columns and two rows (in grey) sum to 55 instead of 80.
- Where the sums 50 cross corresponds to the small square in blue.
- Since one of the six number sits on a diagonal which adds to 55, two magic square are possible.
- Adding n2 = 25 to (1, 2 and 3) or (10, 20 and 21) gives the magic squares 3 and 4.
1
|   |   |   |
  |   |
|   |   |   |
  |   |
|   |   |   |
  | 3 |
|   |   |   |
2 | 4 |
|   |   | 1 |
  |   |
|
⇒   |
2
| 80 |
| 23 | 25 | 7 |
9 | 16 | 80 |
| 24 | 6 | 13 |
15 | 22 | 80 |
| 5 | 12 | 14 |
21 | 3 | 55 |
| 11 | 18 | 20 |
2 | 4 | 55 |
| 17 | 19 | 1 |
8 | 10 | 55 |
| 80 | 80 | 55 |
55 | 55 | 55 |
|
  ⇒   |
3
| 80 |
| 23 | 25 | 7 |
9 | 16 | 80 |
| 24 | 6 | 13 |
15 | 22 | 80 |
| 5 | 12 | 14 |
21 | 28 | 80 |
| 11 | 18 | 20 |
27 | 4 | 80 |
| 17 | 19 | 26 |
8 | 10 | 80 |
| 80 | 80 | 80 |
80 | 80 | 80 |
|
  +   |
4
| 80 |
| 23 | 25 | 7 |
9 | 16 | 80 |
| 24 | 6 | 13 |
15 | 22 | 80 |
| 5 | 12 | 14 |
46 | 3 | 80 |
| 11 | 18 | 45 |
2 | 4 | 80 |
| 17 | 19 | 1 |
8 | 35 | 80 |
| 80 | 80 | 80 |
80 | 80 | 80 |
|
********************************************************************************************************************************************************
This completes this section on the new block Loubère Method (Part I). The next section deals with
Continuation of block Loubère Method (Part II). To return to homepage.
Copyright © 2009 by Eddie N Gutierrez. E-Mail: Fiboguti89@Yahoo.com