### Random Post

### Recent Posts

### Recent Comments

### Archives

### Categories

- article (11)
- enigma (1,367)
- misc (4)
- project euler (2)
- puzzle (90)
- puzzle# (48)
- site news (58)
- tantalizer (94)
- teaser (7)

### Site Stats

- 233,129 hits

Programming Enigma Puzzles

3 January 2020

Posted by on **From New Scientist #2132, 2nd May 1998** [link]

Anne, Barbara and Christine walk at 4 mph and drive at 48 mph. They have a journey of 24 miles to do but their car only takes 2 people. So Anne sets off walking, while Barbara drives so far with Christine, who then gets out and walks the rest of the journey. Barbara drives back until she meets Anne, picks her up and the drive the rest of the journey. They choose Christine’s dropping place so as to minimise the time taken by the last person to arrive.

1. How many minutes did the last person take for the journey?

Donald, Eric and Frank have to make a journey of 265 miles. They each walk at a speed which is a whole number of mph and the speed of their 2-seater car is a whole number times their walking speed and is less than 50 mph. They use the same plan as the ladies. The last person to arrive takes an odd number of hours for the journey.

2. How many hours did the last person take for the journey?

[enigma977]

%d bloggers like this:

In general if the total distance is

t, and X travels a distancexin the car at a speed ofv, and then walks the remaining(t – x)distance at a walking speed ofw, then we have a total time of:And if Y walks an initial distance of

yand is driven the remaining(t – y)distance then we have:This Python program finds the minimal times numerically using the [[

`find_min()`

]] function from theenigma.pylibrary. It runs in 110ms.Run:[ @repl.it ]Solution:(1) 74 minutes; (2) 53 hours.C is dropped off at a distance of 20.8 miles from the start (and has to walk the last 3.2 miles in 48 minutes). A is picked up having walked the first 3.2 miles (in 48 minutes), and everyone arrives together after 74 minutes.

The men walk at 2mph and drive at 10mph.

One of the men is dropped off a distance of 198.75 miles from the start (and has to walk the last 66.25 miles in 33 hours, 7½ minutes). Another one of the men has to walk the first 66.25 miles, and is then picked up. They all arrive together after 53 hours.