notmagic.2n {magic} | R Documentation |
Returns a square of order n=2m
that has been claimed to
be magic, but isn't.
notmagic.2n(m)
m |
Order of square is |
This took me a whole evening to code up. And I was quite pleased with the final vectorized form: it matches Andrews's (8 by 8) example square exactly. What a crock
Robin K. S. Hankin
“Magic Squares and Cubes”, Andrews, (book)
notmagic.2n(4)
is.magic(notmagic.2n(4))
is.semimagic(notmagic.2n(4))