Octagon Algorithm for Border Wheel Squares (Part X)

Picture of a wheel

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

The previous sections Part IX introduced the Octagon I and J 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,e) where a and is 1, d is 4 and e is 5, i.e., the start of each wheel spoke is (1,4,5). The difference (Δ) between the terms in the central row spoke spoke will be modified so that one of the Δ terms is equal to 7 in one set of squares and 9 in the other. Otherwise the Δs are either 5 in the first set and 7 in the other. 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 row is the row to be modified with the last Δ value is 2 more than the current Δ value
filled in regular order starting at 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 column is 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)k is filled using Δ=7 for the first central column spoke, while the left diagonal and central row are filled using a Δ= 5. The 7(05)ik and the 9(05)ik are both filled as usual except that the center column is first filled using Δ=5; followed by a final Δ=7;. The latter Δ=3 is always added last to ensure that the inner 3×3 square is magic. Once the wheel is complete the Octagon K algorithm is only used to complete the 5th order square. To complete the larger squares, Octagon I is used with the number 2 and Octagon K with numbers 12 and 19 for the 7th order square while Octagon I is used with the numbers 2, 12 and 25 and Octagon K with the numbers 22, 30 and 34 for the 9th order square:

Border 5(05)k
2224 13 15
717 814 19
510 1316 21
2012 189 6
112 2523 4
   
Border 7(05)ik
4647 391 122 28
841 326 192742
1721 3613 262933
510 1525 3540 45
3430 2437 142016
4323 1844 3197
223 1149 3848 4
   
Border 9(05)ik
787969 611 2212 245
87356 53630 25 4474
172868 4911 344354 65
243236 6318 42465058
510 1520 4162 6772 77
595147 4064 19353123
665539 3371 48142716
753826 297652 579 7
37313 2181 6070804

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

The 5th order square for this series is inconstructible. The 7(07)ik and the 9(07)ik are both filled as usual while the center column is first filled using a Δ=7; followed by a Δ=9;. The latter Δ=9 is always added last to ensure that the inner 3×3 square is magic. To complete the larger squares, Octagon I is used with the number 2 and Octagon K with the numbers 10 and 16 for the 7th order square while Octagon I is used with the numbers 2, 9 and 22 and Octagon K with the numbers 17, 30 and 34 for the 9th order square:

Border 7(07)ik
4647 411 102 28
739 358 162743
1421 3217 262936
512 1925 3138 45
3730 2433 182013
4423 1542 34116
223 949 4048 4
   
Border 9(07)ik
787972 661 179 245
77159 53830 22 4475
142864 4915 344354 68
213236 5724 42465061
512 1926 4156 6370 77
625147 4058 25353120
695539 3367 48182713
763823 297452 60116
37310 1681 6573804

By first using the Wheel algorithm, square 11(05)ik is filled using Δ=5 for the first central column followed by one Δ=7. The latter Δ=7 is always added last to ensure that the inner 3×3 square is magic. The left diagonal and the central row are both filled in using only a Δ= 5. Square 11(07)ik is filled in using Δ=7 for the first central column followed by one Δ=9, while the left diagonal and the central row are filled using only a Δ= 7. 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 K algorithms are used to complete the 11th order squares:

Border 11(05)ik
118119109 10094129 2112 266
811389 858264136 32 65114
1835108 77731149 446487 104
273947 1037016 5363758395
31435155 9823 62 67717991
510 1520 2561 97102 107112 117
92807268 6099 2454504230
96847659 52106 6919463826
105885845 4811173 78143417
115573337 40116 81869097
5631322 28121 931011101204
   
Border 11(07)ik
118119112 10599124 169 366
711192 858284136 29 65115
1435104 77741549 446487 108
213951 977022 53637183101
28434755 9031 62 67757994
512 1926 3361 8996 103110 117
95807268 6091 3254504227
102847659 52100 6925463820
109885845 4810773 78183413
116573037 40114 818693116
5631017 23121 981061131204

It's interesting that the Octagon I algorithm employs 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. It's a reversal of Part IX where the Octagon I uses the natural numbers.

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


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