Random Post
Recent Posts
- Enigma 769: Magic square
- BrainTwister #19: Angular arrangements
- Enigma 767: Safety in numbers
- BrainTwister #18: The arithmetical two-step
- Enigma 774: Sting in the tail
- BrainTwister #17: Semi-one numbers
- Enigma 773: Duodecimal
- BrainTwister #16: Order, order!
- Enigma 772: Have you seen the trailer?
- BrainTwister #15: Domino strips
Recent Comments
Archives
Categories
- article (11)
- braintwister (19)
- enigma (1,718)
- enigma-book-1982 (70)
- headscratchers-book-2023 (70)
- microteasers-book-1986 (11)
- misc (7)
- project euler (2)
- puzzle (90)
- puzzle# (249)
- site news (83)
- sphinx (4)
- tantalizer (254)
- tantalizer-book-1970 (40)
- teaser (7)
- today (1)
Site Stats
- 347,477 hits
The [[
SubstitutedSum()
]] solver from the enigma.py library can be used to solve this. I added a [[go()
]] method to the solver that outputs all solutions (that pass an optional filter), which lets you solve problems like this with a one-liner.The following Python program runs in 54ms.
Solution: JONNY = 52331.
There are two corresponding sums:
L and S are 6 and 7, but it doesn’t matter which way round.