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

- 177,972 hits

Advertisements

Programming Enigma Puzzles

7 December 2011

Posted by on **From New Scientist #2811, 7th May 2011** [link]

In my street the odd-numbered houses are on the left and the even-numbered houses are on the right. The first house on the left, number 1, is immediately opposite number 2, then number 3 is opposite number 4, and so on. Each house has its number on the gate.

On a recent walk I started at house number 1 and walked up the left-hand side of the road to the very end, then I crossed to the house opposite and walked back down the right-hand side until I reached my own house.

I counted the number of occurrences of the digit 1 that I had seen on the gates, and the number of occurrences of the digit 2: after entering my own gate the product of these two totals was a two-figure number.

Had I stopped counting at the house opposite my own, then the product would have been smaller; in fact it would have been the reverse of the eventual product.

What is my house number?

[enigma1645]

Advertisements

%d bloggers like this:

The following Python code runs in 32ms.

Solution:Your house number is 32.