### Random Post

### Recent Posts

### Recent Comments

### Archives

### Categories

- article (11)
- enigma (1,158)
- misc (2)
- project euler (2)
- puzzle (40)
- site news (44)
- tantalizer (42)
- teaser (3)

### Site Stats

- 178,002 hits

Advertisements

Programming Enigma Puzzles

21 March 2012

Posted by on **From New Scientist #2857, 24th March 2012** [link]

Dolly was the name given to the first cloned sheep at the UK’s Roslin Institute in 1996. The letters in the diagram represent, in some order, the numbers 1 to 16 forming a magic square where each row, column and main diagonal have the same sum. The letters of the word “clone”, and letters not within the square, have their values according to a=1, b=2 etc. but other letters within the square may or may not.

What is the sum d+o+l+l+y?

[enigma1690]

Advertisements

%d bloggers like this:

I adapted my Magic Square Solver (last seen in

Enigma 1682). I should probably wrap it up as a generic library.The following Python program runs in 100ms.

Solution:d+o+l+l+y = 77.I’ve folded the Magic Square solver into the

enigma.pymodule, so if you have the latest version of the module the program becomes:I will check your script. Thanks for your share.

Here is the magic square :

16-2-3-13

5-11-10-8

9-7-6-12

4-14-15-1

The answer is 77

(without running any program or script)

Once again an associative magic square where opposite pairs sum to 17, half the magic constant. It’s formed by writing the integers 1 to 16 in order and swapping opposite pairs on the two main diagonals. Dürer then transposed the middle two columns to give the year of his birth, 1514. I’m sure there are more interesting magic squares!