General Method and Rules for Staircase Squares (Part I)

A stairs

Loubère and Méziriac Squares-Background

The Siamese method which includes both the Loubère and Méziriac magic squares have the property 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). In addition, the sum of the horizontal rows, vertical columns and corner diagonals are equal to the magic sum S. Both squares also require an upward stepwise addition of consecutive numbers, i.e., 1,2,3... It's also a fact that only one Loubère square per order n has been handed down thru the centuries. In addition, construction of the square requires a one down shift after filling of a diagonal to move to the next diagonal until the square is filled. This article will show that one can place the initial 1 in any cells of the square except main diagonal.

It was shown previously that one could generate stepwise squares using first row, middle column and left diagonal methods and that one could predict which squares are magic and which are not. It will be shown here that those methods are actually specific methods for those particular squares and that each of these methods can be combined into a general method that subsumes every position on the square. With the exception of the main diagonal and the first column and last row every cell in the square can be starting point for the construction of the square. The variable knight move for switching from the end of one step diagonal to the start of the next step diagonal will now depend on two values, k, a move across the square, and j, a move down the square.

The General Method

As mentioned above the starting 1 can be placed in any cell of a square that is being constructed except for the main diagonal, where placement of the number 1 results in an inconstructible square. In addition, the first column and last row, although the squares are constructible, produce squares that are not magic. The main diagonal is reserved only for those numbers from ½ (n2-n+2) to ½(n2+n) where n is the order of the square. The shift values, the end of one diagonal to the start of the next diagonal, consists of two variable numbers (k,j) where k and j are listed on the first row and last column, respectively, as depicted in the examples.

The values of k and j are listed in the following table where the ellipsis corresponds to larger and larger order squares. The numbers in this table will start originally with with 1 and end with n. Although the table consists only of odd numbers the even numbers will be incorporated during the construction of the squares in a revised table.

Knight Shifts (k,j)
k/j13579 111315171921232527...

Two types of squares will be constructed, one based on prime numbers the other on composite numbers. In addition, a comparison between this Staircase Grid method and the known Uniform Step Method for squares formed via what appears to be a variable knight group move is fully discussed in Part III where the methods appear to be intertwined. Though not explicitly stated the Siamese staircase squares may be produced from a series of six variables within the Lehmer Article in which the Uniform Step squares are discussed. But would this give someone the incentive to to go out and try to find if the Siamese method can be generalized. Since the article was published 90 years ago, the Siamese method consisted only of the original Loubère and Méziriac magic squares, however, all that has changed. I would also like to thank the reader who brought to my attention the Lehmer article which forced me to look into the differences and similarities between the Siamese and the Uniform Step methods discussed in Part III .

Part III is an addendum to this page and describes the Uniform Step Method as well as the type of magic squares formed, magic and magic diabolic, alike, as well as constructible and inconstructible non magic squares.

5th Order Squares

The following are examples of five order squares A1-A4. Only A1 and A2 produce magic squares, while A3 and A4 do not. It appears that when both the the starting 1 and the next number in the new diagonal, in this case 6, fall in the same column or row no magic occurs. This has verified when the starting 1 is placed in every cell of the first and last row and occurs with the larger squares. The first colored row and last column are the k/j knight moves used in constructing the squares. What the significance and meaning of these k/j numbers is explained just below.

Knight Shifts (k,j)
k/j13579
Knight Shifts (k,j)
k/j13024
A1 (3→,1↓)
13024k/j
8 1 24 17 151
5 23 16 14 73
222013 6 40
19 12 10 3 212
11 9 2 25 184
A2 (3→,3↓)
13024k/j
19 23 2 6 151
22 1 10 14 183
5913 17 210
8 12 16 25 42
11 20 24 3 74
A3 (3→,4↓)
13024k/j
5 20 10 25 151
19 9 24 14 43
82313 3 180
22 12 2 17 72
11 1 16 6 214
A4 (1→,2↓)
13024k/j
21 7 18 4 151
6 17 3 14 253
16213 24 100
1 12 23 9 202
11 22 8 19 54

7th Order Squares

The 7th order squares have been constructed on the previous specific methods stated above. This section will use the new general method to construct squares where the initia1 starting 1 is on the second or sixth row. Then we construct the k/j table as follows where the same values are used for both k and j. The k/j 2-tuple (k,j) is the ordered pair of numbers obtained at the starting position of 1 and are used in all knight moves during the construction of the square. In addition, the first knight move is depicted as green followed by blue.

Knight Shifts (k,j)
k/j13579 1113

However, since numbers equal or greater that 7 mean that we have made a knight move across the entire breadth of the square, 7 is subtracted from all those numbers greater than 7 to generate the revised table:

rev. Knight Shifts (k,j)
k/j13502 46

and these are the new values of k and j posted above and to the side of each square where k is a move to the right (→) and j a move down (↓). These four squares G1, G2, G3 and G4 and their symmetrical counterparts, obtained by 180o rotation along the main (the right) diagonal and identical to the the four mentioned, are all magic.

G1 (5→,3↓)
1350246k/j
32 36 47 21317 281
42 46 1 12 1627 313
45 7 11 15 2630 415
6102125 29 40440
9 20 24 35 3943 52
19 23 34 38 494 84
22 33 3748 3 14186
G2 (2→,3↓)
1350246k/j
47 17 36 13322 281
16 42 12 31 127 463
41 11 30 7 2645 155
1029625 44 21400
35 5 24 43 2039 92
4 23 49 19 388 344
22 48 1837 14 3336
G3 (5→,4↓)
1350246k/j
6 33 11 381643 281
32 10 37 15 4927 53
9 36 21 48 264 315
42204725 3 3080
19 46 24 2 2914 412
45 23 1 35 1340 184
22 7 3412 39 17446
G4 (2→,4↓)
1350246k/j
16 11 6 433833 281
10 5 49 37 3227 153
4 48 36 31 2621 95
47423025 20 830
41 29 24 19 142 462
35 23 18 13 145 404
22 17 127 44 39346

9th Order Composite Squares

Construction of squares with composite numbers however, generates a much smaller number of magic squares besides the known Loubère and Méziriac squares. Squares G5 and G6 are not magic but G7 and G8 are. I have found that a square is not magic if the starting number in one of the secondary rising diagonals, not the starting one, falls on one of the cells in the first column, last row or right principal diagonal and where that number is a multiple of C×n + 1. C being the squares composite order and n being greater than 0.

For example, for C = 9 that multiple number is M = 10. See Squares G5 and G6 which follow the rule and, thus, are not magic. Table C/M shows the multiples that can occur for six composite odd numbers found so far. It appears that when the composite number is composed of one prime that one multiple, M, is found. For example, in the 49th order square the multiple appears at the 10th diagonal.

C/M
C91521253549
M1016,3122,645171,106491
G5 (3→ 5↓)
135702468k/j
30 24 18378 725751451
23 17 27771 56 5044 33
16 1 767055 49 4328 225
9 75 696348 42 3621 157
7468624741 35 201480
67 61 464034 19 137 732
60 54 393327 12 681 664
53 38 322611 5 8065 596
37 31 25104 79 6458 528
G6 (6→ 5↓)
135702468k/j
3 51 185724 72 3078 451
50 17 562371 29 7744 23
16 55 227028 76 431 495
63 21 693675 42 948 157
2068357441 8 4714620
67 34 73407 46 1361 192
33 81 39654 12 6027 664
80 38 55311 59 2665 326
37 4 521058 25 6431 798
G7 (3→ 4↓)
135702468k/j
74 31 692655 12507451
30 68 256311 49 644 733
67 24 621048 5 4381 295
23 61 18474 42 8028 667
601746341 79 3665220
16 54 24078 35 6421 592
53 1 397734 72 2058 154
9 38 763371 19 5714 526
37 75 327027 56 1351 88
G8 (6→ 4↓)
135702468k/j
50 55 69747 12 2631 451
63 68 73611 25 3044 493
67 81 51024 29 4348 625
80 4 182328 42 4761 667
317223641 46 6065790
16 21 354054 59 6478 22
20 34 395358 72 771 154
33 38 525771 76 914 196
37 51 567075 8 1327 328

Squares G8 and G9 where the positions of the initial 1 in the middle column differ only by position below or over the central cell. G8 is magic but not G9.

G8 (0→ 4↓)
135702468k/j
26 7 695031 127455451
6 68 493011 73 6344 253
67 48 291081 62 4324 55
47 28 188061 42 234 667
3617796041 22 365460
16 78 594021 2 6454 352
77 58 39201 72 5334 184
57 38 19971 52 3314 766
37 27 87051 32 1375 568
G9 (0→ 5↓)
135702468k/j
57 78 183051 72 324 451
77 17 295071 2 2344 563
16 28 49701 22 4355 765
36 48 69921 42 6375 157
476882041 62 7414350
67 7 194061 73 1334 462
6 27 396081 12 3354 664
26 38 598011 32 5365 56
37 58 791031 52 644 258

This completes this section (Part I). To go to Part II or Part III. To return to homepage.


Copyright © 2020 by Eddie N Gutierrez. E-Mail: enaguti1949@gmail.com