The Soma cube is a solid dissection puzzle invented by Piet Hein in 1936 during a lecture on quantum mechanics conducted by Werner Heisenberg. Seven pieces made out of unit cubes must be assembled into a 3×3×3 cube. The pieces can also be used to make a variety of other 3D shapes.
The pieces of the Soma cube consist of all possible combinations of three or four unit cubes, joined at their faces, such that at least one inside corner is formed. There is one combination of three cubes that satisfies this condition, and six combinations of four cubes that satisfy this condition, of which two are mirror images of each other (see Chirality). Thus, 3 + (6 × 4) is 27, which is exactly the number of cells in a 3×3×3 cube.
The Soma cube was analyzed in detail by Martin Gardner and John Horton Conway in the September 1958 Mathematical Games column in Scientific American, and the book Winning Ways for your Mathematical Plays also contains a detailed analysis of the Soma cube problem. There are 240 distinct solutions of the Soma cube puzzle, excluding rotations and reflections: these are easily generated by a simple recursive backtracking search computer program similar to that used for the eight queens puzzle.
The seven Soma pieces are six polycubes of order four, and one of order three:
Piet Hein authorized a finely crafted rosewood version of the Soma cube manufactured by Theodor Skjøde Knudsen's company Skjøde Skjern (of Denmark). Beginning in about 1967, it was marketed in the U.S. for several years by the game manufacturer Parker Brothers. Plastic Soma cube sets were also commercially produced by Parker Brothers in several colors (blue, red, and orange) during the 1970s. The package for the Parker Brothers version claimed there were 1,105,920 possible solutions. This figure includes rotations and reflections of each solution as well as rotations of the individual pieces. The puzzle is currently sold as a logic game by ThinkFun (formerly Binary Arts) under the name Block by Block.