Teaser 2496: [Letter values]
From The Sunday Times, 25th July 2010 [link] [link]
I have chosen 10 different letters of the alphabet before U to represent the digits 0 to 9. I can tell you that 0’s letter is in the word NOUGHT, 1’s letter is in the word ONE, 2’s letter is in TWO, and so on up to 9’s letter being in the word NINE.
Furthermore, I can write down a particular five-figure number that is divisible by 8, and replacing the digits by their letters I get EIGHT. Similarly, a four-figure number divisible by 9 translates to NINE.
What number is represented by TEN?
This puzzle was originally published with no title.
[teaser2496]


Jim Randell 9:00 am on 4 October 2023 Permalink |
We only need to consider the letters A–T, and of these only ten of them appear in the words mentioned. So we can assign the digits 0-9 to the letters EFGHINORST (in some order).
We can use the [[
SubstitutedExpression]] solver from the enigma.py library to do this, subject to the necessary conditions.The following run file executes in 126ms. (Internal runtime is 949µs).
Run: [ @replit ]
#! python3 -m enigma -rr SubstitutedExpression "EIGHT % 8 = 0" "NINE % 9 = 0" "0 in {N, O, G, H, T}" "1 in {O, N, E}" "2 in {T, O}" "3 in {T, H, R, E}" "4 in {F, O, R}" "5 in {F, I, E}" "6 in {S, I}" "7 in {S, E, N}" "8 in {E, I, G, H, T}" "9 in {N, I, E}" --answer="TEN" --template=""Solution: TEN = 271.
The assignment of digits to (bold) letters is:
And:
LikeLike