### Random Post

### Recent Posts

- Enigma 471: What you do is what you get
- Enigma 1040: Elusive cube
- Tantalizer 443: Roses, roses all the way
- Enigma 470: One for the road
- Enigma 1041: Lucky sixes
- Puzzle 38: Division — some missing figures
- Enigma 469: Enigmatic dominoes
- Enigma 1042: Days of the year
- Tantalizer 444: Mutual admiration
- Enigma 468: On the town

### Recent Comments

Jim Randell on Enigma 471: What you do is wha… | |

geoffrounce on Enigma 1040: Elusive cube | |

Jim Randell on Enigma 1040: Elusive cube | |

Tessa Fullwood on Tantalizer 443: Roses, roses a… | |

Brian Gladman on Enigma 1041: Lucky sixes |

### Archives

### Categories

- article (11)
- enigma (1,219)
- misc (3)
- project euler (2)
- puzzle (54)
- site news (48)
- tantalizer (57)
- teaser (4)

### Site Stats

- 194,721 hits

We’ve solved many puzzles in a similar vein to this one before. (See:

Enigma 405,Enigma 284,Enigma 197,Enigma 29,Puzzle 76).Here I’ve adapted my

MiniZincsolution toEnigma 197to solve this problem. This program uses theminizinc.pywrapper library. With the [[mzn-g12fd -a]] solver it runs in 442 ms.Solution:The correct numerical sum is: 944277 + 9148467 = 10092744.The corresponding alphametic sum is: PHHYBB + PLHXHAB = LRRPYBHH.

The incorrect letter is the units digit of the result. It is given as P, when it should be H.

Another approach is to use the

SubstitutedSum()solver from theenigma.pylibrary.Here is a general solver for this type of problem. This program runs in 773 ms.

Run:[ @repl.it ]