Octagon Algorithm for Border Wheel Squares (Part V)

Picture of a wheel

The Eight Node Way - 7×7 Squares

The previous section Part IV introduced the Octagon E and F algorithma for the construction of 5×5 Wheel Squares. This section will cover Wheel Border squares a topic which was discussed in 2015 using 7×7 squares. The method of construction, then, required using some little difficult to follow math. I have found a the Octagon method is a better way of tackling this problem which doesn't use math at all but employs directed graphs to fill in the non spoke cells. Border squares are magic squares whose internal lower number magic squares are also magic. As stated above, border squares can be constructed using the Wheel algorithm but with the wheel portion first constructed but in reverse order from that listed in Part II.

Thus, according to the discussion in Part I there are seven wheels which can be constructed for a 7th order wheel square. Some of these will be displayed, fully constructed, while two others will be constructed step by step using computer programs. All will use the 7×7 complementary table as a guide for picking the 25 wheel spoke numbers and the 24 non spoke numbers:


12345678910 1112131415161718192021 222324
25
4948474645444342414039 38373635343332313029 282726

To fill in the non spoke numbers a new algorithm, Octagon E, is used starting with the initial node at the middle left node of the octagon:


Picture of an octagon

The first three squares using the E algorithm are shown below, where 7(n) signifies a 7th order square with n as the number from column 1 of Table I from Part II.

Border Square 7(0)E
4413 173 343826
1045 212 302740
1418 461 283236
98 725 4342 41
3531 2249 41915
3923 2948 20511
2437 3347 1612 6
   
Border Square 7(1)E
4213 175 343826
143 214 302749
1418 443 283236
1110 925 4140 39
3531 2247 61915
4823 2946 2072
2437 3345 1612 8
   
Border Square 7(2)E
404 177 344726
141 216 302749
1418 425 283236
1312 1125 3938 37
3531 2245 81915
4823 2944 2092
2446 3343 163 10

In addition, we can depict the squares 7(5)E and 7(6)E using colored border format:

Border Square 7(5)E
34 4 8 13 43 47 26
135 2112 3027 49
59 3611 2841 45
1918 1725 3332 31
4440 2239 1410 6
4823 2238 2015 2
24 46 42 37 7 3 16
   
Border Square 7(6)E
324 815 4347 26
133 1214 3927 49
59 3413 2841 45
2120 1925 3130 29
4440 2237 1610 6
4823 3836 117 2
2446 4235 73 18

We start by adding the lowest spoke number on the complementary table to position (1,0), i.e., position (row, column), on the square. For example, in 7(0)E, the first non spoke number, 10, goes into cell corresponding to node 1. Using the Octagon E, one follows the arrows and deposits a number into the appropriate white cell of the square. The difference between this algorithm and the previous ones is that the complements of the first four numbers no longer reside on the same row or column but reside across the octagon. Comparing the tuples of Octagon A from Part II with Octagon E, all tuples of A sum to 9 while E have sums of 8 and 10, respectively, as shown:

A (1,8),(7,2),(4,5),(6,3)
E (1,7),(8,2),(4,6),(5,3)

An alternative Octagon F, which has no edges superimposed onto the edges of the octagon, uses the following where node 1 is now at the bottom right of the octagon.

Picture of an octagon
Border Square 7(0)F
4411 153 364026
3745 192 322713
3329 461 282117
98 725 4342 41
1620 2249 43034
1223 3148 18538
2439 3547 1410 6
   
Border Square 7(1)F
422 155 364926
3743 194 322713
3329 443 282117
1110 925 4140 39
1620 2247 63034
1223 3146 18738
2448 3545 141 8
   
Border Square 7(2)F
402 157 364926
4641 196 32274
3329 425 282117
1312 1125 3938 37
1620 2245 83034
323 3144 18947
2448 3543 141 10

The upshot is that both these algorithms along with the reversed wheel algorithm produce border squares, where the inner 3×3, inner 5×5 and outer 7×7 squares have magic sums of 75, 125 and 175, respectively.

Computer Coding for 7×7 Border Squares

Coding for these border squares is similar to those for the regular Octagon/Wheel squares, except on how the cells are filled. Programs 7aE and 7bE are the Octagon E series while programs 7cF and 7dF belong to the Octagon F series. Both programs use a step by step procedure for filling of the non spoke section portion of each square. The table gives two programs for both the Octagon E and F algorithms, and depend on how the numbers and complements are inserted into the square. In addition, both sets [(a) and (b)] and [(c) and (d)] give identical squares with the initial starting number.

(a) Border 7(3)aE12 numbers followed by 12 complements
(b) Border 7(3)bE3×(4 numbers followed by 4 complements)
(c) Border 7(4)cF12 numbers followed by 12 complements
(a) Border 7(4)dF3×(4 numbers followed by 4 complements)

This completes the Octagon E and F method for 7×7 squares.
Go to Part VI Go back to Part IV. Go back to homepage.


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