For creating magic squares, there are algorithms to make odd and doubly even (divisible by 4) squares. However, there are no know methods of making a singly even magic square without going through all of the permutations. This brute force method seems very inefficient (and very processor-consuming). The number of permutations for a board are N!, where N is the number of slots on the board. Thus, a 3x3 grid would have 9 values, so 9! (362,880) variations. However, the smallest singly even magic square is 6x6, which entails 3.71993327 × 1041 combinations to be tested.
My question is this: does anybody have any ideas for ways to cut down on the number of permutations that need to be tested? My computer is by far lacking the computing power to test out a 6x6 grid, let alone anything larger.
(PS: I wasn't sure whether this should go here or The Help Desk. Hopefully I chose correctly. Also, I found no duplicate threads in either place by searching for "magic square.")
