Panmagic squares of order 4n, 6n+1 and 6n-1
Produce a panmagic square of order 4n or 6n+/-1 using a classical method
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
panmagic.6np1(1) panmagic.6npm1(13) all(sapply(panmagic.6np1(1:3),is.panmagic))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.