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

4 December 2011

Posted by on **From New Scientist #2820, 9th July 2011** [link]

Shown right are two of the cards Joe asked Penny to make for him. Joe specified four colours (A, B, C and D) and Penny could choose any one of them for any of the four areas.

Penny had only made a few cards when she turned one round and noticed that it was the same as the one she had just made. She had assumed that all the cards must be different, so she set about calculating how many different cards made up a full set.

How many cards make up the set?

[enigma1654]

Advertisements

%d bloggers like this:

This Python program computes the unique colourings of the edges of a square with 4 colours. It runs in 29ms.

Solution:There are 70 cards in the set.