From New Scientist #2820, 9th July 2011 [link] [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]
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.