### Random Post

### Recent Posts

### Recent Comments

### Archives

### Categories

- article (11)
- enigma (1,158)
- misc (2)
- project euler (2)
- puzzle (40)
- site news (44)
- tantalizer (42)
- teaser (3)

### Site Stats

- 178,002 hits

Advertisements

Programming Enigma Puzzles

8 July 2013

Posted by on **From New Scientist #2574, 21st October 2006**

Baseball’s so-called World Series is won by the first of the two teams involved to win four matches. Since matches cannot be tied, that means that it may be decided in 4, 5, 6 or 7 matches. Matches 1 and 2 are held on Team A’s ground, matches 3, 4 and (if required) 5 on Team B’s ground, and (if required) matches 6 and 7 on Team A’s ground.

1. Assume that each team has an equal chance of winning each match and tell me what, as a percentage expressed to as many decimal place as are necessary, is the probability that (a) the same number of matches will be played on each ground; (b) match 7 will be played.

2. Now assume that there is a 60 percent probability that any match will be won by the home team and answer questions (a) and (b) above.

[enigma1414]

Advertisements

%d bloggers like this:

This Python 3 program uses the

fractionsmodule to maintain accuracy. It runs in 79ms.Solution:(1a) 43.75%; (1b) 31.25%; (2a) 43.008%; (2b) 32.032%.