### Random Post

### Recent Posts

- Enigma 1065: Cute cubes
- Enigma 444: Rows and rows
- Puzzle 50: Football and addition
- Enigma 1066: Members of the clubs
- Enigma 443: The bells they are a-changing
- Tantalizer 455: Ballistico
- Tantalizer 456: Square deal
- Enigma 1067: Bye!
- Enigma 442b: Oh yes I did! Oh no you didn’t!
- Puzzle 51: A multiplication

### Recent Comments

Brian Gladman on Enigma 1065: Cute cubes | |

Jim Randell on Enigma 1065: Cute cubes | |

geoffrounce on Enigma 444: Rows and rows | |

Jim Randell on Enigma 444: Rows and rows | |

geoffrounce on Enigma 1611: Three sister… |

### Archives

### Categories

- article (11)
- enigma (1,167)
- misc (2)
- project euler (2)
- puzzle (42)
- site news (45)
- tantalizer (45)
- teaser (3)

### Site Stats

- 180,599 hits

Advertisements

This Python program calculates possible sequences of times. It runs in 61ms.

Solution:You last looked at your watch at 9:49pm on Sunday.I was half-hoping that there would be some sneaky solution to do with putting the clocks back from BST to GMT (if the watch was a radio controlled watch it would happen automatically at 2:00am on Sunday morning, being changed to 1:00am on Sunday morning). But there aren’t any candidate times that work.

Analytically we can see there are 12×60 = 720 positions for the hour hand in any 12-hour period. The program above calculates the angular difference between the hour and minute hand for each of these positions using units of 1/720th of a full circle, or ½°. Clearly the maximum angular difference is 360 (=180°) and whatever the final angle is we need to know the time at 2×, 4×, 8×, 16×, 32×, 64×, 128× and 256× this value. But for 256× the final angle to be 360 or less the final angle can only be 0 or 1.

The degenerate solution of 0 doesn’t work, as there is only one time where this works – 12:00. And we can’t fit 9 of them into four phases of the clock. However if the final angle is 1 (=½°), then each multiple of the angle has two possible choices. In fact it turns out there are 128 possible sequences of times that will fit within four phases of the clock, and for all of these the final time is 9:49pm on Sunday.

Here’s a diagram of one possible sequence of times. The setter must be very good at assessing small angles.