### Random Post

### Recent Posts

### Recent Comments

### Archives

### Categories

- article (11)
- enigma (1,123)
- misc (2)
- project euler (2)
- puzzle (31)
- site news (43)
- tantalizer (31)
- teaser (3)

### Site Stats

- 168,282 hits

Programming Enigma Puzzles

7 July 2014

Posted by on **From New Scientist #2469, 16th October 2004**

I have a clock with a sweep second hand, and I watch how the three hands – hour (H), minute (M) and second (S) – come together and spread apart. Let us call their span, at any given moment, the smallest fraction of the clock face to contain all three hands.

I ignore the hands’ thickness, so at 12.00.00 the span is zero. At 12.00.01 it is just under 1/60, because H has just past 0 (the vertical); S is in position 1/60 (that is 1/60th of the clock face from 0); and M is between them. After that the span gets bigger, but by 12.01.00 it is down again to exactly 1/60, with S at 0, M at 1/60 and, this time, H in between.

(a) Between 12.00.01 and 18.00.00, at what time is the span a minimum? (Give your answer to the nearest minute)

(b) What exact fraction is this minimum span?

[enigma1311]

Advertisements

%d bloggers like this:

Assuming all hands move smoothly and continuously, I used the observation that for any given minute the hour and minute hands will only move slightly, whereas the second hand can be positioned anywhere, and in particular at any point between the hour and minute hands. The minute hand will move faster than the hour hand, so if the minute hand is past the hour hand then the hands will be moving apart, so the minimal span will be when the second hand is coincident with the hour hand. Conversely if the hour hand is past the minute hand then the hands will be moving together, so the minimal span will also be when the second hand is coincident with the hour hand. And finally if the minute hand overtakes the hour hand then the minimal span will be zero when all three hands are coincident, so again we can just consider when the second hand is coincident with the hour hand (although, in fact, this situation doesn’t happen).

So for each minute we only need to consider the distance between the minute and hour hands at the time that the second hand is coincident with the hour hand. (We could further reduce the number of cases considered by looking at times when the hour and minute hands are “close”, i.e. close to the time that they are coincident).

Also for simplicity I consider the time period between 00:00 and 06:00, the hand movements will be identical to the period in the question.

This Python program runs in 80ms.

Solution:(a) The minimum span occurs at 15:16 (to the nearest minute); (b) The minimum span is 1/719 of the clock face.To the nearest millisecond the time of the minimum span is 3:16:16.356. The fractional part of the seconds is 256/719. The span is slightly more than 0.5°.

The same span will also occur at 8:43:43.644 (the fractional part of the seconds is 463/719), but this is outside the specified time period.

This version is based on Jim’s observation that the minimum span will occur when the hour and second hands coincide.