Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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

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))

magic

Create and Investigate Magic Squares

v1.5-9
GPL-2
Authors
Robin K. S. Hankin
Initial release
2018-09-14

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.