### Random Post

### Recent Posts

### Recent Comments

### Archives

### Categories

- article (11)
- enigma (1,314)
- misc (3)
- project euler (2)
- puzzle (78)
- puzzle# (21)
- site news (54)
- tantalizer (80)
- teaser (7)

### Site Stats

- 217,165 hits

Programming Enigma Puzzles

14 August 2019

Posted by on **From New Scientist #1067, 1st September 1977** [link]

Each digit in the addition sum below is wrong. But the same wrong digit stands for the same correct digit wherever it appears, and the same correct digit is always represented by the same wrong digit.

Find the correct addition sum.

[puzzle16]

%d bloggers like this:

We can use the [[

SubstitutedSum()]] solver from theenigma.pylibrary to solve this puzzle. While it can cope with using the digits as symbols (which cannot stand for themselves). I think it is easier to understand if we replace the digits 1, 4, 7, 8 by the symbols A, B, C, D and solve the equivalent sum: BDA + BDB = CBC.The following run file executes in 137ms.

Run:[ @repl.it ]Solution:The correct sum is: 263 + 262 = 525.