### Random Post

### Recent Posts

### Recent Comments

### Archives

### Categories

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

### Site Stats

- 168,282 hits

Programming Enigma Puzzles

17 April 2013

Posted by on **From New Scientist #2913, 20th April 2013** [link]

I have before me a number of solid cubes. I make a single straight cut through each of them, avoiding cutting through any of the vertices. The resulting solids have between them the same number of even-sided faces as odd-sided faces. The number of cubes I started with is the minimum compatible with the information given above.

How many cubes did I start with?

[enigma1745]

Advertisements

%d bloggers like this:

If I’ve found all the different ways to cut the cube, and calculated the number of even-sided and odd-sided faces correctly, this code should give the answer. Ideally I’d like the program to calculate the different slices and enumerate the faces, but that will be more work. On the plus side, it only takes 34ms to run.

Solution:You started with 4 cubes.If I have counted the correct number (not guaranteed) of even and odd faces from these diagrams: