### Random Post

### Recent Posts

### Recent Comments

### Archives

### Categories

- article (11)
- enigma (1,314)
- misc (3)
- project euler (2)
- puzzle (78)
- puzzle# (21)
- site news (54)
- tantalizer (80)
- teaser (7)

### Site Stats

- 217,165 hits

Programming Enigma Puzzles

20 March 2019

Posted by on **From New Scientist #984, 22nd January 1976** [link]

Once a year, when the sand is right for sand castles, the trout are rising nicely in the streams and the hart is doing its proverbial panting, the

New Scientistdecides to remove the grime from its typewriters and moth from its editors. The latter then take off for the hills, having summoned the old team of Amble, Bumble, Crumble and Dimwit to attend the former.The task always takes longer than it should because the four worthies are not all available. Three years ago Amble, Bumble and Crumble did it in 12 days. Two years ago Bumble, Crumble and Dimwit managed it in 15 days. Last year Amble, Crumble and Dimwit knocked it off in 18 days. And this year Amble, Bumble and Dimwit were expecting to romp through it in 20 days, until Amble and Bumble fell under a bus.

If the whole job falls on Dimwit, how many days will it take?

[tantalizer433]

%d bloggers like this:

Suppose there is 1 unit of work to be done, and A, B, C, D represent how much work each person can do in a day, then we have the following equations:

These equations are solved to give:

Here’s a program that uses the Gaussian elimination solver for linear equations in the

enigma.pylibrary. (Originally written forEnigma 287). It runs in 91ms.Run:[ @repl.it ]Solution:It would take Dimwit 540 days to complete to task by himself.That is nearly 1.5 years, which for a yearly task is a bit long.

Although if Crumble comes to help they could manage it between them in 27 days.

Run it for 17, 23, 26, 28 days in that order.

If we look at the proportion of work done by each, then in the original puzzle it is:

If you thought D wasn’t pulling his weight, in Paul’s variation we have:

To do the task by himself it would take D nearly 1169 years.