Octagon Algorithm for Border Wheel Squares (Part IX)

Picture of a wheel

The Eight Node Way - (1,2,5) Squares

The previous sections Part VI and Part VII introduced the Octagon G and H algorithm for the construction of 5×5 and 7×7 Wheel Border Squares (WBS). The type of Wheel Border squares in those sections were of the type (a,b,c) where the a, b and c were consecutive numbers. This section will look at WBS are of the type (a,b,e) where a and b are 1 and 2 and e is 5, i.e., the start of each wheel spoke is (1,2,5) and the difference (Δ) between the terms in two of the spokes is 5, while a third spoke will be modified where one of the Δ terms is equal to 7. This is to ensure that the internal 3×3 square is magic, otherwise without this modification these (a,b,e) squares, unlike the (a,b,c), will be non magic.

To start, the wheel part of the square is first constructed using the (Δ) value of 5 followed by the non wheel portion (i.e, non spokes) which uses either the Octagon I (only the 5th order) and K algorithm to fill in the empty cells. The method can be summarized as follows where regular means with a degree of separation (Δ) between numbers:

a) the main diagonal is first filled in with the numbers from ½ (n2-n+2) to ½(n2+n)
b) the central column is filled in regular order starting at the topmost cell and moving to the bottom cell
c) the left diagonal is filled in regular order starting at the right bottom cell and moving to the leftmost top cell
d) the central row is the row to be modified with the last Δ value is 2 less than the current Δ value
filled in regular order starting at the leftmost cell and moving to the rightmost cell

Picture of an octagon

By first using the Wheel algorithm, square 5(05)j is filled using Δ=5 for the first central and left diagonal spokes, while the central row is filled with one Δ= 3. The 7(05)ij and the 9(05)ij are both filled as usual except that the center row is first filled using a Δ=5; followed by a Δ=3;. The latter Δ=3 is always added last to ensure that the inner 3×3 square is magic. Once the wheel is complete the Octagon J algorithm is only used to complete the 5th order square. To complete the larger squares, Octagon I is used with the number 3 and Octagon J with numbers 14 and 18 for the 7th order square while Octagon I is used with the numbers 3, 13 and 25 and Octagon J with the numbers 21, 29 and 33 for the 9th order square:

Border 5(05)j
2422 13 15
1619 614 10
58 1318 21
912 207 17
114 2523 2
   
Border 7(05)ij
4846 351 143 28
943 316 182741
3329 3811 262117
510 1325 3740 45
1620 2439 123034
4223 1944 3278
224 1549 3647 2
   
Border 9(05)ij
807868 601 2113 345
97556 52629 25 4473
202870 4811 334354 62
585046 6516 42363224
510 1518 4164 6772 77
233135 4066 17475159
635539 3471 49122719
743826 307653 577 8
37414 2281 6169792

The caption in the tables is used for numbering the squares. For example, 5(05)j corresponds to n=5, 0 is the wheel type, 5 is the Δ and j is the algorithm used, in this case Octagon J; while the caption for 7(05)ij corresponds to n=7, 0 is the wheel type, 5 is the Δ and ij means that both algorithms, Octagon I and J, are used to develop the squares.

By first using the Wheel algorithm, square 5(07)j is filled using Δ=7 for the first central and left diagonal spokes, while the central row is filled with one Δ= 5. The 7(07)ij and the 9(07)ij are both filled as usual while the center row is first filled using a Δ=7; followed by a Δ=5;. The latter Δ=5 is always added last to ensure that the inner 3×3 square is magic. Once the wheel is complete the Octagon J algorithm is only used to complete the 5th order square. To complete the larger squares, Octagon I is used with the number 3 and Octagon J with the numbers 10 and 18 for the 7th order square while Octagon I is used with the numbers 3, 10 and 25 and Octagon J with the numbers 18, 29 and 33 for the 9th order square:

Border 5(07)j
2422 13 15
1917 814 7
510 1316 21
612 189 20
114 2523 2
   
Border 7(07)ij
4846 391 103 28
741 318 182743
3629 3415 262114
512 1725 3338 45
1320 2435 163037
4423 1942 3296
224 1149 4047 2
   
Border 9(07)ij
807871 631 1810 345
77356 52829 25 4475
142866 4815 334354 68
615046 5922 42363221
512 1924 4158 6370 77
203135 4060 23475162
695539 3467 49162713
763826 307453 5796
37411 1981 6472792

By first using the Wheel algorithm, square 11(05)ij is filled using Δ=5 for the first central and left diagonal spokes, while the central row is filled with one Δ= 3. Square 11(07)ij is filled using Δ=7 for the first central and left diagonal spokes, while the central row is filled with one Δ= 5. The squares are filled as usual with the latter Δs always added last to ensure that the inner 3×3 square is magic. Once the wheels are complete the Octagon I and J algorithms are used to complete the 11th order squares:

Border 11(05)ij
120118103 9591130 2618 366
911589 858164036 32 65113
2535110 77731148 446487 97
293971 1056916 5263518393
89794767 10021 62 55754333
510 1520 2361 99102 107112 117
32427654 60101 2268468090
94845059 53106 7017723828
98885845 4911174 78123424
114573337 41116 82869078
5641927 31121 92961041192
   
Border 11(07)ij
120118111 10397124 1810 366
711389 858184036 32 65115
1435106 77731548 446487 108
213971 996922 52635183101
94794767 9229 62 55754328
512 1926 3161 9196 103110 117
27427654 6093 3068468095
102845059 53100 7023723820
109885845 4910774 78163413
116573337 41114 82869096
5641119 25121 981041121192

It's interesting that the squares use the Octagon J algorithm by employing the set of triangular numbers (0,1,3,6,10,15...) with n(n+1)/2, while the Octagon I algorithm employs the set of natural numbers (1,2,3,4,...) in producing the squares.

This completes the Octagon I and J method. Go to Part X for (a,d,e) squares. Go back to homepage.


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