### 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 uses the

PrimesGenerator()class (originally written forEnigma 1267, but included in the latest version of theenigma.pylibrary) – although it turns out we don’t need to consider very many primes to find the solution. It runs in 48ms.Solution:The revised odds for the dog in Trap-2 would 1-1 (evens).Originally the odds would have been: 2-1, 3-1, 5-1, 7-1, 11-1 and 23-1. So corresponding stakes of £8, £6, £4, £3, £2 and £1 would give winnings of £24 whichever dog won.

One of the 2-1 and 5-1 runners withdraws and the stakes are combined giving odds on the remaining runner of 1-1. (The odds now being 1-1, 3-1, 7-1, 11-1 and 23-1, with corresponding stakes of £12, £6, £3, £2 and £1).

I don’t have a reference for the published solution (I think it would have been published with

Enigma 1271(New Scientist #2429)), but the solution given above seems to be correct.I confess my ignorance on dog race betting but how is 7-5 odds satisfying the condition that after trap 1 bets are merged into trap 2 the odds- to- one are still integers?

You’re right – I missed that bit. I’ll have to have another look at how the odds are recalculated.

For some reason I had assumed that the odds were in order, so Trap-1 and Trap-2 were the shortest odds, but it doesn’t say that in the question, so I need to revise my code to look at pairs of odds that combine to give integer fractional odds that don’t clash with the remaining odds. And it turns out there is only one choice: if the the 2-1 runner and the 5-1 runner are combined the resulting odds are 1-1.

I’ll update my code accordingly.

Isn’t it 1:1 the 2:1 and 5:1 bets are merged?