Teaser 3000: The three thousandth
From The Sunday Times, 22nd March 2020 [link] [link]
In this addition digits have been consistently replaced by letters, different letters representing different digits. But instead of an addition in base 10 in which the letters represent the digits 0 to 9 this is an addition in base 11, using X for the extra digit, in which the letters represent the digits 1 to X, with 0 unused.
Please submit the number (still in base 11) represented by TEASER.
Congratulations to The Sunday Times for publishing 3000 Teaser puzzles.
[teaser3000]

Jim Randell 4:30 pm on 20 March 2020 Permalink |
We can use the [[
SubstitutedSum()]] solver from the enigma.py library to solve this puzzle.The following run file executes in 126ms.
Run: [ @replit ]
Solution: TEASER = 12X523.
There are two ways to assign values to the letters, as D and O are interchangeable:
LikeLike
Jim Randell 12:08 pm on 1 July 2023 Permalink |
Here is a faster solution using the [[
SubstitutedExpression.split_sum]] solver from the enigma.py library.The internal runtime of this run file is 495µs.
Run: [ @replit ]
#! python3 -m enigma -rr SubstitutedExpression.split_sum --base="11" "{THREE} + {THOUS} + {ANDTH} = {TEASER}" --invalid="0,ADEHNORSTU" # no 0 digits --code="base_digits('0123456789X')" # use X for digit 10 --answer="int2base({TEASER}, 11)" # output solution in base 11LikeLike
GeoffR 1:48 pm on 21 March 2020 Permalink |
The teaser uses the 10 different letters ([T,H,R,E,O,U,S,A,N,D] in this teaser), which can convieniently represent the digits (1..10), as zero is not required,
The programme produces a single solution with the third digit as 10 (or X), alltough there are two sets of digits, with values of O and D interchangeable.
The programme uses the standard method of adding digits in columns, with carry digits to adjacent columns for column digit sums exceeding 11.
LikeLike