Description Usage Arguments Details Author(s) References See Also Examples
Produce a panmagic square of order 4n or 6n+/-1 using a classical method
1 2 3 4 | panmagic.6npm1(n)
panmagic.6np1(m)
panmagic.6nm1(m)
panmagic.4n(m)
|
m |
Function Function |
n |
Function |
Function panmagic.6npm1(n)
will return a square if n
is
not of the form 6n+/-1, but it is not necessarily
magic.
Robin K. S. Hankin
“Pandiagonal magic square.” Wikipedia, The Free Encyclopedia. Wikimedia Foundation, Inc. 13 February 2013
1 2 3 4 | panmagic.6np1(1)
panmagic.6npm1(13)
all(sapply(panmagic.6np1(1:3),is.panmagic))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.