Albrecht Dürer (14711528) is generally considered to be Germany's most famous Renaissance artist. He was about 20 years younger than Leonardo da Vinci and around 1500 became greatly interested in the relationship between mathematics and art. Leonardo and his contemporary, mathematician Pacioli, almost certainly influenced Dürer in these studies. In 1514 he created the copperplate engraving named "Melancholia I" which contained his magic square  the first magic square published in Europe.
This copper engraving by Albrecht Dürer has been viewed as a self portrait of the artist and the essence of German Humanism. The winged figure illustrates simultaneously the dangers and satisfactions of the intellectual activity. It is the image of the creative spirit of the man alone with his inner thoughts. The ladder leaning against the building indicating that this is unfinished, the unsolved geometry problem, the cupid above a wheel, the hydrophobic dog, the falling sand of the hourglass, and the empty oscillating balance ... all this sums up despair to Melancholia.
Dürer's square from engraving 
Albrecht Dürer (self portrait at 28 years) 
Dürer's magic square, a bestknown and most enigmatic, is a magic square with magic constant 34 used in an engraving entitled Melancholia I by Albrecht Dürer (The British Museum, Burton 1989, Gellert et al. 1989). The engraving shows a disorganized jumble of scientific equipment lying unused while an intellectual sits absorbed in thought. Dürer's magic square is located in the upper righthand corner of the engraving. The numbers 15 and 14 appear in the middle of the bottom row, indicating the date of the engraving, 1514.
The sum 34 can be found in the rows, columns, diagonals, each of the quadrants, the center four squares, the corner squares, the four outer numbers clockwise from the corners (3+8+14+9) and likewise the four counterclockwise, the two sets of four symmetrical numbers (2+8+9+15 and 3+5+12+14) and the sum of the middle two entries of the two outer columns and rows (e.g. 5+9+8+12), as well as several kiteshaped quartets, e.g. 3+5+11+15. Actually, there are 86 different combinations of four numbers from the Dürer's square that sum to it's magic number, 34!
In the applet below, these numbers are reproduced in more modern style. Each row, each column, and each diagonal adds up to 34; these are the traditional magic properties. But there is more magic to be found here. There are actually thirteen different ways of dividing this square into four groups of four cells, with each group of four cells adding to 34. The menu in the applet can be used to select among these. If you click on one of the cells, then the numbers in its group will be enlarged and highlighted in red. These groupings of cells are not arbitrary. The positions in the Dürer square can be seen as a finite vector space, in which each set of four groups of four cells is a set of parallel affine planes.
Dürer's magic square has the additional property that the sums in any of the four quadrants, as well as the sum of the middle four numbers, are all 34 (Hunter and Madachy 1975, p. 24). It is thus a gnomon magic square. A gnomon magic square is a 4×4 magic square in which the elements in each 2×2 corner have the same sum. Dürer's magic square, illustrated above, is an example of a gnomon magic square since the sums in any of the four quadrants (as well as the sum of the middle four numbers) are all 34. In addition, any pair of numbers symmetrically placed about the center of the square sums to 17, a property making the square even more magical.
Interchanging columns does not change the column sums or the row sums. It usually changes the diagonal sums, but in this case both diagonal sums are still 34. So now our magic square matches the one in Dürer's etching. Dürer probably chose this particular 4by4 square because the date he did the work, 1514, occurs in the middle of the bottom row.
The eight figures of the magic square of Dürer are represented above. Remember that any magic square has eight different "forms" or eight different "figures", obtained by rotation (4 figures, including the original), by symmetry with respect to median (2 figures) and by symmetry in relation to the main diagonal (2 figures).



 
Original  Rotation ¼ 
Rotation ½  Rotation ¾  



 
Symmetry 1^{st} median  Symmetry 2^{nd} median 
Symmetry 2^{nd} diagonal  Symmetry 1^{st} diagonal 
This section presents some funny results pointed by David Bowman.
The year of the engraving is written as 1514, at bottom line. Even more, the number on the right is 1 which is the same as A in simple Masonic code of values [A=1, B=2, C=3, ... Z=26], and the number on the left of the date is 4 equaling D according to gematric value. Both numbers are therefore interchangeable with letters A, and D, which were almost religiously used as Albrecht Durer's monogram.
The sum of all the numbers in the Durer's magical square is 136, the number that conceals both the master and the title of the masterwork. Dürer used another, Latin, variant of the spelling of his name  ALBRECHT DVRER:
There is also another mathematical joke concealed in the numbers. If two fields are taken for a number (16 and 3 = 163, 2 and 13 = 213, 5 and 10 = 510, and so on) and added together than the value of 2368 is obtained. This number is significant since it equals the value of Jesus Christ in Greek:
The dimensions of Durer's engraving are approximately 18.9 x 24.1 cm, which comes very close to the ratio of 11:14. This specific ratio was used in classical compositions very often, mostly because it is derived from the ratio 22:7 that closely approximates Pi = 3.14159... and was known since ancient times. The importance of Pi for the composition of Melencolia I is emphasized by the sphere in the lower left corner of the engraving, which is simultaneously also a module of the composition.
The magic constant of a normal magic square depends only on n and has the value M = (n^{3} + n)/2. Here is the proof. Given an normal magic square, suppose M is the number that each row, column and diagonal must add up to. Then since there are n rows the sum of all the numbers in the magic square must be . But the numbers being added are 1, 2, 3, ... n^{2}, and so 1 + 2 + 3 + ... + n^{2} = . In summation notation, . Using the formula for this sum, we have , and then solving for M gives . Thus, a Lo Shu's normal magic square must have its rows, columns and diagonals adding to , a Albrecht Dürer's to M = 34, a Benjamin Franklin's to M = 260, and so on.
Among the most conspicuous are:
The square in the Melencholia is a special type of magic square; the sum in one of its four quadrants, and also the sum of the central square, are 34, the magical value of the square. This is a gnomon magic square. This square should be a positive influence against melancholy. In the middle of the last line, the numbers 15 and 14, which correspond to the date of the engraving, 1514, it is also the date of the death of Barbara, mother of Albrecht Dürer.
The engraving Melancholia I, features a frustrated thinker sitting by an uncommon polyhedron. Suggestions that a series of engravings on the subject was planned are not generally accepted. Instead it seems more likely that the "I" refers to the first of the three types of melancholia defined by the German humanist writer Cornelius Agrippa. In this type, Melencholia Imaginativa, which he held artists to be subject to, 'imagination' predominates over 'mind' or 'reason'. Erwin Panofsky (a German Jewish art historian) proposed the most authoritative interpretation of Melencolia I as Dürer's "spiritual self portrait". Patrick Doorly has shown that the engraving is much indebted to Plato's Hippias Major and even more to Luca Pacioli's book De Divina Proportia. John Read has commented on the alchemic symbolism of the engraving.