Teaser 2656: Wrong adding
From The Sunday Times, 18th August 2013 [link] [link]
Here is an addition sum in which digits have consistently been replaced by letters, with different letters used for different digits. The six-figure total is even:
Unfortunately, once again I have made a mistake. In just one place in the display I have written an incorrect letter.
What is the correct numerical value of the six-figure total?
[teaser2656]

Jim Randell 12:31 pm on 12 October 2023 Permalink |
I’ve added the [[
bungled_sum()]] solver (from Puzzle 56 etc.) to the enigma.py library as a class method on [[SubstitutedSum]], and also allowed it to be called from the command line.Using this solver we find there are two possibilities for as single letter mistake in the translation.
The following command line executes in 270ms.
Run: [ @replit ]
% python3 -m enigma -r SubstitutedSum.bungled_sum "AGAIN + WRONG = ADDING" G AGAIN + WRONI = ADDING / @[1,4] G -> I 14195 + 86759 = 100954 / A=1 D=0 G=4 I=9 N=5 O=7 R=6 W=8 G AGAIN + WRONG = ADDINA / @[2,5] G -> A 16195 + 84756 = 100951 / A=1 D=0 G=6 I=9 N=5 O=7 R=4 W=8But we are told that in the original numerical sum the result is even, so we are looking at the first possibility.
Solution: The result of the sum is 100954.
The original sum was: 14195 + 86759 = 100954.
And it should have been encoded as: AGAIN + WRONI = ADDING.
LikeLike