Uses John Conway's lozenge algorithm to produce magic squares of odd order.
lozenge(m)
magic square returned is of order n=2m+1
n=2m+1
magic.4np2
# NOT RUN { lozenge(4) all(sapply(1:10,function(n){is.magic(lozenge(n))})) # }
Run the code above in your browser using DataLab