## Teaser 2888: Two sums

**From The Sunday Times, 28th January 2018** [link]

Digits have been systematically replaced by letters to give:

ONE + ONE = TWO

ONE + FOUR = FIVENo number consists of a consecutive set of digits.

What number is represented by

FIFTEEN?

[teaser2888]

## Jim Randell 10:10 am

on9 August 2019 Permalink |We can easily use the [[

`SubstitutedExpression()`

]] solver from theenigma.pylibrary to solve the alphametic sums, and we can use [[`--code`

]] parameters to provide the additional check that none of the numbers consist of a set of consecutive digits. The numbers are all composed of different digits, so that makes things a bit simpler.This run file executes in 139ms.

Run:[ @repl.it ]Solution:FIFTEEN = 9594663.We have:

There is one other solution to the alphametic sums that is eliminated because

FOURis composed from a set of (numerically) consecutive digits:So we could just generate both solutions to the alphametic sums, and remove the non-viable solution by inspection.

LikeLike

## GeoffR 3:05 pm

on11 August 2019 Permalink |LikeLike