magic (version 1.5-9)

notmagic.2n: 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\)

References

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

Examples

Run this code
# NOT RUN {
  notmagic.2n(4)
  is.magic(notmagic.2n(4))
  is.semimagic(notmagic.2n(4))

# }

Run the code above in your browser using DataLab