HOME //// STARTSEITE

Make Magic Squares like a Renaissance Artist!

Albrecht Dürer ranks as one of my favorite artists, and wouldn't you know it, Renaissance artists were obsessed with math - probably moreso than me, or any of us reading (unless Terence Tao has found his way on my neocities :þ).

I would like to focus in on this with one of his most famous works, that being Melencolia I

 (from Wikipedia) Melencolia I is a large 1514 engraving by the German Renaissance artist Albrecht Dürer. Its central subject is an enigmatic and gloomy winged female figure thought to be a personification of melancholia – melancholy. Holding her head in her hand, she stares past the busy scene in front of her. The area is strewn with symbols and tools associated with craft and carpentry, including an hourglass, weighing scales, a hand plane, a claw hammer, and a saw. Other objects relate to alchemy, geometry or numerology. Behind the figure is a structure with an embedded magic square, and a ladder leading beyond the frame. The sky contains a rainbow, a comet or planet, and a bat-like creature bearing the text that has become the print's title.

(above image is sourced from Wikimedia)

Specifically, in the background, you can see a 4x4 square of numbers - these are:

16 3 2 13 5 10 11 8 9 6 7 12 4 15 14 1

when adding any row or column of these numbers, it will always add up to the same number, which is 34 in this case. We call squares of numbers with this property "magic squares," In addition, when all of the diagonals also add up to that same number, we call it "pandiagonal." Further still, the number "opposite" any other number in the Melencolia square adds up to 17, which makes it a "symmetric" magic square.

So, we have a single square of numbers satisfying loads of cool, unique properties - is that why am I making a post about it? No! I'm talking about it because it's NOT unique!

Tons of other magic squares are pandiagonal and/or symmetric - I've done so by playing around with Euler's Method (not to be confused with Euler's Method in calculus, or the billion other things named after Leonhard Euler). What I wanted, however, was to generalize a specific property of the Melencolia square I find very unique and satisfying.

My favorite property of the Melencolia square is one I have failed to mention up until now: it has a very unique pattern to how numbers are placed. I kind of struggle to describe it in words, so I hope this makes sense (I may rewrite this later if it's too confusing)

  1. Place a 1 in the bottom right (or whatever corner you like, if you're willing to flip the directions in this guide)
  2. Place numbers increasing by 1 going left to right BUT cross to the opposite row on the first move and then every other move after that. (in this case, we go from bottom row to top row for 1 to 2. We have only 3 moves, so we stay in the top for 2 to 3 and the go back down for 3 to 4)
  3. There's a number of heuristics to "continue" the pattern, but they should do the same thing. I like to repeat the process by placing the largest number in the opposite corner to where the 1 is placed, then repeat the above process but going in the opposite direction and counting down. This completes the bottom and top rows. Then, with the last number i wrote down in a given row, I put the number that would follow it on the same column, but as far away as possible vertically (look at the distance between 13 and 12 or 5 and 4 on the Melencolia square, for instance.) Then I repeat step 2 with the remaining space.

ONE MUST NOTE!!!: This only works for magic squares whose side lengths are divisible by 4 - if its odd, you're left with a single middle row and the instructions fall apart - if it's even but not divisible by four, you're left with a situation where the the 4 numbers in the middle have to add up to n^2+1 with both the number opposite them AND the number directly above/below them, which cannot be done if we're using unique numbers in each column (which we kind of have to, otherwise we could just put in a magic square full of nothing but the number 1 and call it a day)

So, as an example, I composed a magic square of side length 12 following that same sort of pattern as the Melencolia square, since you should do the 8x8 by yourself, as its the easiest to do using this method besides the Melancolia square itself:

144 11 10 141 140 7 6 137 136 3 2 133 13 122 123 16 17 126 127 20 21 130 131 24 120 35 34 117 116 31 30 113 112 27 26 109 37 98 99 40 41 102 103 44 45 106 107 48 96 59 58 93 92 55 54 89 88 51 50 85 61 74 75 64 65 78 79 68 69 82 83 72 73 62 63 76 77 66 67 80 81 70 71 84 60 95 94 57 56 91 90 53 52 87 86 49 97 38 39 100 101 42 43 104 105 46 47 108 36 119 118 33 32 115 114 29 28 111 110 25 121 14 15 124 125 18 19 128 129 22 23 132 12 143 142 9 8 139 138 5 4 135 134 1