Learn R Programming

magic (version 1.3-20)

magic.4np2: Magic squares of order 4n+2

Description

Produces a magic square of order $4n+2$ using Conway's LUX method

Usage

magic.4np2(m)

Arguments

m
returns a magic square of order $n=4m+2$ for $n>1$, using Conway's ``LUX'' construction.

References

http://mathworld.wolfram.com/MagicSquare.html

See Also

magic

Examples

Run this code
magic.4np2(1)
is.magic(magic.4np2(3))

Run the code above in your browser using DataLab