Teaser 2518: [Empty boxes]
From The Sunday Times, 26th December 2010 [link] [link]
For an appropriate Boxing Day exercise, write a digit in each of the empty boxes so that (counting all the digits from here to the final request) the following statements are true:
Number of occurrences of 0 = [ _ ]
Number of occurrences of 1 = [ _ ]
Total occurrences of 2s and 3s = [ _ ]
Total occurrences of 4s and 5s = [ _ ]
Total occurrences of 6s and 7s = [ _ ]
Total occurrences of 8s and 9s = [ _ ]
A digit you have written in another box = [ _ ]
The average of all your written digits = [ _ ]What, in order, are the digits in your boxes?
This puzzle was originally published with no title.
[teaser2518]
Jim Randell 8:20 am on 18 July 2025 Permalink |
There are 8 boxes to be filled out with a digit (from 0 to 9), and each of the digits 0 to 9 already occurs once before the boxes are filled out.
The first six boxes count the 10 given digits, plus those in the 8 boxes, so must sum to 18.
The first 2 boxes must contain 1 or more, and the next 4 boxes must contain 2 or more.
And the box with the mean must also be 2 or more.
Here is a solution using the [[
SubstitutedExpression]] solver from the enigma.py library.The following run file executes in 95ms. (Internal runtime of the generated code is 16.8ms).
Run: [ @codepad ]
Solution: The digits are: 1, 2, 8, 2, 2, 3, 3, 3.
The statements then become:
LikeLike
Frits 2:04 pm on 18 July 2025 Permalink |
@Jim, you can also add B in line 8 (ao because of line 32).
LikeLike