magic.4np2 | R Documentation |
Produces a magic square of order 4n+2 using Conway's “LUX” method
magic.4np2(m)
m |
returns a magic square of order n=4m+2 for m>=1, using Conway's “LUX” construction |
I am not entirely happy with the method used: it's too complicated
Robin K. S. Hankin
https://mathworld.wolfram.com/MagicSquare.html
magic
magic.4np2(1) is.magic(magic.4np2(3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.