### Random Post

### Recent Posts

### Recent Comments

### Archives

### Categories

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

### Site Stats

- 166,357 hits

Programming Enigma Puzzles

7 January 2015

Posted by on **From New Scientist #2421, 15th November 2003** [link]

George was celebrating the fact that on a charity night at his local greyhound track there was no betting tax and the bookmakers’ odds precisely reflected the amounts staked on each dog.

In the first race, the quoted odds-to-one-against each of the six dogs were all different prime numbers. George placed a bet on each dog – £1 on the outsider, higher integer amounts on the others. He then calculated that, irrespective of which dog won, his winnings (including the return of his winning stake) would equal the total amount he staked.

While he was thinking this was a rather pointless exercise, the dog in Trap-1 was withdrawn. George then calculated that if all the bets on that dog (including his) were transferred to the dog in Trap-2, and the odds recalculated accordingly, the odds-to-one-against the five runners would still be different integers.

If this happened, what would be the revised odds for the dog in Trap-2?

[enigma1265]

Advertisements

%d bloggers like this:

This Python program uses the

PrimesGenerator()class (originally written for Enigma 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?