### Random Post

### Recent Posts

### Recent Comments

### Archives

### Categories

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

### Site Stats

- 175,242 hits

Advertisements

Programming Enigma Puzzles

12 December 2011

Posted by on **From New Scientist #2801, 26th February 2011** [link]

Our niece Ennie, nephew Iggy and their friend Marty were born on different dates in December. Ennie’s birth date is the 19th and Iggy’s is the 21st. The trio have tried writing down all numbers that can be expressed as a multiple of 19 plus a multiple of 21 plus a multiple of Marty’s birth date, where in each case the whole-number multiple can be zero or more.

They have managed to express 189 as a sum of multiples, and indeed any higher number can be similarly expressed. But it is impossible to express 188 in this way.

What is Marty’s birth date?

[enigma1635]

Advertisements

%d bloggers like this:

The following Python program executes in 29ms.

Solution:Marty’s birthdate is 23rd December.