panmagic.6npm1 {magic} | R Documentation |
Panmagic squares of order 4n, 6n+1 and 6n-1
Description
Produce a panmagic square of order or
using a
classical method
Usage
panmagic.6npm1(n)
panmagic.6np1(m)
panmagic.6nm1(m)
panmagic.4n(m)
Arguments
m |
Function Function |
n |
Function |
Details
Function panmagic.6npm1(n)
will return a square if n
is
not of the form , but it is not necessarily
magic.
Author(s)
Robin K. S. Hankin
References
“Pandiagonal magic square.” Wikipedia, The Free Encyclopedia. Wikimedia Foundation, Inc. 13 February 2013
See Also
Examples
panmagic.6np1(1)
panmagic.6npm1(13)
all(sapply(panmagic.6np1(1:3),is.panmagic))
[Package magic version 1.6-1 Index]