Sunday Times Teaser 3286 – Water Stop
by Howard Williams
Published Sunday September 14 2025 (link)
Chuck and his brother live on a long straight road that runs from west to east through their ranches. Chuck’s ranch is 13 km west of his brother’s. The two brothers often go from one ranch to the other on horseback, but go via a nearby river so that their horses may be watered. The shortest route via the river consists of two straight sections, one being 11 km longer than the other. The point at which they reach the river is 6 km north of the road.
What is the total length of the route between the ranches that goes via the river?
7 Comments
Leave one →
This one requires the solution of two simultaneous equations, one linear and one quadratic. This is straightforward in Mathematica and once the equations are produced there is no Python left to code. Here is my Mathematica code:
The answer doesn’t seem to make much sense.
Most MiniZinc solvers (other than SCIP) can’t solve this model
For some reason get_model(“int”) doesn’t seem to work.
A Solution in Python using ChatGPT to generate the code.
perplexity.ai for this Teaser gives an incorrect answer and generates Python code that causes a “ValueError”.
@Frits:
If you ask it to do a manual solution, it gave the answer.for me.
After ChatGPT produced the SymPy solution, I asked AI to come up with a faster solution. It produced a numerical binary search solution which fulfilled the brief.