Teaser 2453: [Half a dozen]
From The Sunday Times, 27th September 2009 [link]
In the following three statements, I have consistently replaced digits with letters, using a different letter for each different digit. In this way, I discover that:
SIX × TWO = TWELVE
FIVE is divisible by 5
SIX is divisible by 6With a little guile, you can solve this and answer the following question:
What is the number for SOLVE?
This puzzle was originally published with no title.
[teaser2453]
Jim Randell 8:13 am on 6 March 2026 Permalink |
Here is a solution using the [[
SubstitutedExpression]] solver from the enigma.py library, that is a direct interpretation of the puzzle text.The following run file executes in 86ms. (Internal runtime of the generated code is 5.8ms).
Solution: SOLVE = 95380.
We have:
LikeLike
ruudvanderham 2:45 pm on 6 March 2026 Permalink |
Very brute force:
for s, i, x, t, w, o, l, f, e, v in istr.permutations(range(10)): if (s | i | x) * (t | w | o) == (t | w | e | l | v | e) and (f | i | v | e).is_divisible_by(5) and (s | i | x).is_divisible_by(6): peek(s | o | l | v | e)and a bit less brute:
for five in istr.range(1000, 10000, 5): for six in istr.range(102, 1000, 6): if five[1] == six[1]: istr.decompose(five | six, "fivesix") if len(fivesix := set(five) | set(six)) == 6: for t, w, o in istr.permutations(set(istr.range(10)) - set(fivesix), 3): twelve = six * (two := t | w | o) if len(twelve) == 6: istr.decompose(twelve, "TWElVF") if T == t and W == w and E == F == e and V == v: if len({f, i, v, e, s, i, x, t, w, o, t, w, e, l, v, e}) == 10: solve = istr("=solve") peek(five, six, two, twelve, solve)LikeLike