Brain-Teaser 339: Cross country
From The Sunday Times, 5th November 1967 [link]
Tom, Dick and Harry had come up the school together and in three successive years had competed in the Junior, Colts and Senior, cross-country races.
Every year they finished in the same positions but interchanged so that no boy came in the same position twice. The same applied to the numbers on their vests, all six numbers being different, odd, and greater than 1.
When each boy multiplied his position number by the number he was wearing at the time, the nine results were all different and together totalled 841.
Dick beat the other two in the Junior race, but the number he was wearing was smaller than his position number; but he was wearing the highest card number in the Senior race, and this was [also] smaller than his position number.
Harry’s three products had a sum smaller than that of either of the other two.
What were the three boys’ positions in the Colts race and what numbers were they wearing?
This puzzle is included in the book Sunday Times Brain Teasers (1974). The puzzle text is taken from the book.
[teaser339]
Jim Randell 8:20 am on 18 June 2024 Permalink |
Let the finishing positions be (best to worst) (a, b, c), and the runner numbers be (smallest to largest) (x, y, z).
These six numbers are all different, odd, and greater than 1.
Taking the cartesian product of these sets we get:
And for each boy in each race the product of his runner number and his finishing position gives a unique value, so they correspond directly with the 9 values produced by this cartesian product.
The following Python program considers divisor pairs of 841, and then splits each divisor into 3 odd numbers meeting the requirements. We then use the [[
SubstitutedExpression()
]] solver from the enigma.py library to assign runner numbers and finishing positions in each race.The program runs in 116ms. (Internal runtime is 38ms).
Run: [ @replit ]
Solution: In the Colts race Tom (#15) finished 5th; Dick (#11) finished 7th; Harry (#3) finished 17th.
The full results are:
In each race the runner numbers are #3, #11, #15 and the positions are 5th, 7th, 17th.
And the sum of the nine different products of these numbers is:
In fact the only viable factorisation of 841 is 29 × 29.
LikeLike