### Random Post

### Recent Posts

- Enigma 1023: Semi-prime progressions
- Puzzle 29: Division (letters for digits)
- Teaser 2779: New Year Party
- Enigma 487: It still is one
- Enigma 1024: Regal progress
- Tantalizer 436: Rhyme and reason
- Enigma 486: Number please
- Enigma 1025: A score or more
- Puzzle 30: Football – new method (3 teams)
- Enigma 485: A digital question

### Recent Comments

Brian Gladman on Enigma 1023: Semi-prime p… | |

Jim Randell on Enigma 1023: Semi-prime p… | |

Jim Randell on Puzzle 29: Division (letters f… | |

Hugh Casement on Teaser 2779: New Year Par… | |

Hugh Casement on Teaser 2779: New Year Par… |

### Archives

### Categories

- article (11)
- enigma (1,252)
- misc (3)
- project euler (2)
- puzzle (63)
- site news (49)
- tantalizer (64)
- teaser (7)

### Site Stats

- 202,165 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 ]