Today Google celebrates puzzle’s 40th anniversary with an interactive Doodle. The game was invented by Hungarian professor of architecture Ernö Rubik in 1974 and won the German Game of the Year six years later. All the people born in the 70s had at least one of these cubes at home and tried to solve this almost impossible game.
To solve it, you must know taht there are 8!=40.320 ways to arrange the eight corner cubes and each of the seven first cubes can be orientated in 3 different ways (the eighth cube depends on the other seven!). So, you can arrange the eight corner cubes in 37 · 8! ways. For arranging the edges there are 12!/2 ways and there also are 211 ways to orientate these 12 edges.
So if you multiply the four quantities you will see that there are approximately 43.252.003.274.489.856.000 ways to solve Rubik’s cube.