Magic squares of doubly even order: Difference between revisions
Content added Content deleted
Line 53: | Line 53: | ||
set maybePowerOfTwo to asPowerOfTwo(sqr) |
set maybePowerOfTwo to asPowerOfTwo(sqr) |
||
if maybePowerOfTwo is not missing value then |
if maybePowerOfTwo is not missing value then |
||
-- For integer powers of 2, the (append not) 'magic' series directly |
-- For integer powers of 2, the (append not) 'magic' series directly |
||
-- yields the truth table that we need |
-- yields the truth table that we need |
||
set truthSeries to magicSeries(maybePowerOfTwo) |
set truthSeries to magicSeries(maybePowerOfTwo) |
||
else |
else |
||
-- where n is not |
-- where n is not an integer power of 2, we can replicate a |
||
-- minimum truth table, horizontally and vertically |
-- minimum truth table, horizontally and vertically |
||
set truthSeries to ¬ |
set truthSeries to ¬ |