Generate magic squares of all types
Magic square order: 4 (even) Constant: 34 1 15 14 4 12 6 7 9 8 10 11 5 13 3 2 16
Magic square order: 5 (odd) Constant: 65 17 24 1 8 15 23 5 7 14 16 4 6 13 20 22 10 12 19 21 3 11 18 25 2 9
Magic square order: 6 (singly even) Constant: 111 35 1 6 26 19 24 3 32 7 21 23 25 31 9 2 22 27 20 8 28 33 17 10 15 30 5 34 12 14 16 4 36 29 13 18 11
Magic square order: 8 (doubly even) Constant: 260 1 2 62 61 60 59 7 8 9 10 54 53 52 51 15 16 48 47 19 20 21 22 42 41 40 39 27 28 29 30 34 33 32 31 35 36 37 38 26 25 24 23 43 44 45 46 18 17 49 50 14 13 12 11 55 56 57 58 6 5 4 3 63 64