Octagon Algorithm for Border Wheel Squares (Part XI)

Picture of a wheel

The Eight Node Way - (1,4,7) Squares

The previous sections Part X introduced the Octagon I and K algorithm for the construction of 5×5 thru 11×11 Wheel Border Squares (WBS). The type of Wheel Border squares in Part IX was of the type (a,b,e). This section will look at WBS are of the type (a,d,f) where a and is 1, d is 4 and e is 7, i.e., the start of each wheel spoke is (1,4,7). This part will introduce a new algorithm Octagon L along with Octagon I will be used to generate Border squares by the use of consecutive numbers (c,d,r) as the last cells in the central, diagonal and row spokes adjacent to the center cell in the square.

It will be shown that c, d and r can take on certain values only, as shown in Table I for the 5th order square case Wheel 5(0), with c originally odd or even. We have to decide what consecutive three numbers to place into the empty cells so that each row, column and diagonal of the central 3×3 square sums to 39. The numbers 8, 9 and 10 fit the description since they are not present as numbers in the other spoke cells. It is also shown to be the only triplet in Table I having the requisite properties, since all the odd and the rest of the even triplets have at least one number in common with a number in every spoke of the wheel:

Table I
Odd cEven c
1,2,32,3,4
3,4,54,5,6
5,6,76,7,8
7,8,98,9,10
9,10,1110,11,12
   
Wheel 5(0)
22 1 15
17 14
7 1316 19
12 18
11 25 4

Moreover, the triplet (8,9,10) ensures that the upper part of the complementary Table II allows for the two pair (even parity) of adjacent numbers (2,3) and (5,6) to be available for for insertion into the square. The rule is that numbers that are not paired up (odd parity) will not produce Wheel magic squares. :

Table II
123 456 78 910 1112

We can thus summarize that 4n+1 odd order squares (5,9,13...) use the even c and the 4n+3 order squares (3,7,11...) use the odd c. This is due to the fact that the last numbers to be included in a triplet are even for the 4n+1 and odd for the 4n+3. What this means as shown in Table I is that the number one will always be unpaired when c is even but not when c is odd as in Table IV for a 7th order square.

Table IIIa
Odd c
1,2,3
3,4,5
5,6,7
7,8,9
9,10,11
11,12,13
Table IIIb
Odd c
13,14,15
15,16,17
17,18,19
19,20,21
21,22,23
   
Table IV
123 456 789 10111213 1415 161718192021
1516 17
1718 19
19 2021

The numbers after the main diagonal is filled run in the order 1 (top center), 4 (bottom right) and 7 (left center). A difference (Δ) of 7 is then added to each of the numbers followed by either of the three triplets in Table IIIb since all the other triplets will have a number common with those already in the spokes (see Border 5(15,16,17), Border 5(17,18,19 and Border 5(19,20,21) fully developed squares below). But before that the wheel portion of the square is filled according to Part X, using the blue color values from Table IIIb. This ensures that in the internal 3×3 square every row, column and diagonal adds up to the magic sum of 75. The second part of the process is addition of the non spoke cells employing the following two algorithms, which use graph theory, as was done previously in Part X.

Picture of an octagon

Final construction of the squares involve employing the Octagon I algorithm for the blue color cells and the L algorithm for the green color cells.

Border 5(8,9,10)l
2224 13 15
2017 814 6
710 1316 19
512 189 21
112 2523 4
   
Border 7(15,16,17)il
4647 411 102 28
639 328 192744
3729 3415 262113
714 1725 3336 43
1220 2435 163038
4523 1842 31115
223 949 4048 4
   
Border 7(17,18,19)il
4647 411 102 28
639 358 162744
3729 3217 262113
714 1925 3136 43
1220 2433 183038
4523 1542 34115
223 949 4048 4
   
Border 7(19,20,21)il
4647 411 102 28
639 358 162744
3732 3019 261813
714 2125 2936 43
1217 2431 203338
4523 1542 34115
223 949 4048 4

If we shift all the initial numbers over by two, first once and then twice the two squares 7a and 7b are obtained using table IIIb to fill in the internal squares with the sums=75. Only two of the entries in Table IIIb are possible since the entry (15,16,17), employed above, contains the number 16, a number already present in the center row. Only two squares of 7b, the (17,18,19) and the (19,20,21) are possible and only the one for 7c.

Table IIIb
Odd c
13,14,15
15,16,17
17,18,19
19,20,21
21,22,23
   
Border 7b(17,18,19)il
4448 433 81 28
537 3610 152745
3829 3217 262112
916 1925 3134 41
1120 2433 183039
4623 1440 35134
222 747 4249 6
   
Border 7b(19,20,21)il
4448 433 81 28
537 3610 152745
3832 3019 261812
916 2125 2934 41
1117 2431 203339
4623 1440 35134
222 747 4249 6
   
Border 7c(19,20,21)il
4244 485 71 28
435 3712 142746
4033 3019 261710
1118 2125 2932 39
916 2431 203441
4723 1338 36153
226 245 4349 8

This completes the Octagon I and L method. Go to Part XII. Go back to Part IX. Go back to homepage.


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