Conway's lozenge algorithm for magic squares
Uses John Conway's lozenge algorithm to produce magic squares of odd order.
lozenge(m)
m |
magic square returned is of order |
Robin Hankin
lozenge(4) all(sapply(1:10,function(n){is.magic(lozenge(n))}))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.