notmagic.2n {magic}R Documentation

An unmagic square

Description

Returns a square of order n=2m that has been claimed to be magic, but isn't.

Usage

notmagic.2n(m)

Arguments

m

Order of square is n=2m

Note

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

Author(s)

Robin K. S. Hankin

References

“Magic Squares and Cubes”, Andrews, (book)

Examples

  notmagic.2n(4)
  is.magic(notmagic.2n(4))
  is.semimagic(notmagic.2n(4))


[Package magic version 1.6-1 Index]