Produces a magic square of order \(4n+2\) using Conway's “LUX” method
magic.4np2(m)
returns a magic square of order \(n=4m+2\) for \(m\geq 1\), using Conway's “LUX” construction
http://mathworld.wolfram.com/MagicSquare.html
magic
# NOT RUN { magic.4np2(1) is.magic(magic.4np2(3)) # }
Run the code above in your browser using DataLab