God's Number - Looking for the optimal Rubik's Cube solution (2024)

Home » Rubik's Cube » God's Number - Looking for the optimal Rubik's Cube solution

Mathematicians love the Rubik’s Cube. There’s no denying it. They are amazed at how such a seemingly simply puzzle can hold so many secrets. There is always something new to learn about the cube (if you are willing to learn, of course). Perhaps the biggest secret of all, one that took over 30 years for mathematicians to crack is God’s Number.

God's Number - Looking for the optimal Rubik's Cube solution (1)

God’s Number, as many cube enthusiasts will already know, is the maximum number of moves required to solve any of the 43,252,003,274,489,856,000 combinations of the cube. It has been proven that this number is 20 (cube20.org), however the discovery is fairly recent (July 2010). The term “God’s Number” was coined because the mind of a being able to find the shortest sequence of moves to solve any scramble sequence would have to be thousands of times more powerful than our own, able to test millions of different combinations in the blink of an eye, something that mathematicians believe only a Deity could possess.

This number may seem low, but theoretically it should be even lower. Only around 490,000,000 combinations require the full 20 moves to be solved. Although 490 million is a huge number, it is only a fraction of the 43 quintillion possible combinations (0.0000011328955% to be precise). The chances of generating a random scramble that can only be solved in 20 moves, no more no less, is around 1 in a billion. However, the number of combinations that can be solved in 19 moves is approximately 1.5 quintillion. This means that God’s Number is much closer to 19 than 20, but unfortunately even if only 1 scramble sequence was impossible to solve in less than 20 moves, God’s Number would still be 20.

The Super-Flip

God's Number - Looking for the optimal Rubik's Cube solution (2)Perhapsthe most famous of the rare scrambles that require exactly 20 moves to solve is the super-flip position (pictured). This is achieved by performing the following sequence of moves - R L U2 F U’ D F2 R2 B2 L U2 F’ B’ U R2 D F2 U R2 U from any orientation. The position is recognisable as every single corner is solved in its place, while every single edge is flipped in its place. This was also the first position that was found that could not be solve in less than 20 moves, raising the lower bound of God’s Number to 20 in 1995.

History of God's Number

Work began on the search for God’s Number back in 1981, when a man named Morwen Thistlewaite proved using a complex algorithm he devised himself that 52 moves was enough to solve any of the 43 quintillion different scrambles. This number began to fall slowly as better, more efficient methods were devised for solving the huge number of possible combinations in the fewest moves possible.

God's Number - Looking for the optimal Rubik's Cube solution (3)

Of course, not all 43 quintillion combinations were tested individually by computers. Many ingenious patterns were spotted to reduce this number to a fraction of its original quantity. For example, if you were to perform the super-flip algorithm on a Rubik’s Cube and rotate the entire cube by 180 degrees, you would have theoretically created another of the 43 quintillion combinations without increasing the number of moves required to solve it. The reason for this is because 43 quintillion is the number of positions, not the number of completely unique patterns. If you were to hold the white face on the top and the green face on the front, that would be one position. If you were to rotate the puzzle so you are still holding the white face on the top but instead you had the red face on the front, you would have another position. Therefore, by multiplying the number of different possible “top faces” (6, one for each colour) by the number of different possible “front faces” for each different “top face” (4), you would be left with 24 different ways to position the cube for any given state. This automatically reduces the enormous number of 43 quintillion possible positions that would actually need to be tested to 1,802,166,800,000,000,000 (a mere 4% of the original number). By factoring in other similarities such as mirrors, this number reduces further, making God’s Number much easier to calculate.


Two different “positions” out of the 43 quintillion possible

God’s Number can also be implemented for other twisty puzzles, such as using an original Rubik’s Cube with certain restraints, or using smaller or bigger puzzles. God’s Number for a Rubik’s Cube solved using only quarter turns (where no face can be rotated more than 90 degrees at a time either clockwise or anticlockwise) has been proven much more recently (2014) to be 26 moves.

God's Algorithm for 2x2x2 Cubes

God’s Number for the 2x2 puzzle (having only 3,674,160 different positions) has been proven to be 11 moves using the half turn metric, or 14 using the quarter turn metric (half turns count as 2 rotations). Unfortunately God’s Number has yet to be calculated for the 4x4 cube, or higher.

The Devil's Number

As we have discussed on the Mathematics of the Rubik's Cube page, every algorithm (permutation) has a degree in group theory. Every sequence of moves, if repeated enough times, will return the cube to the original state. For example a simple face turn needs 4 repetitions, the R'D'RD algorithm needs to be applied six times, going through 24 states.

Obviously, there's an algorithm that goes through all 43,252,003,274,489,856,000 possible positions of the cube. If we would apply this algorithm to any random scramble then it would certainly go thorugh the solved state at some point.

The Devil's algorithm is about about looking for the smallest number of moves needed to visit every position at least once. One algorithm, that applied repeatedly to any scramble will return to the solved state, not necessarily at the end of of the sequence. Devil's Number is the amount of moves in the shortest algorithm that does this.

Imagine that you could solve the Rubik's Cube knowing just one algorithm. The problem is that this would be extremely long. Finding the Devil's algorithm is much much harder than finding the optimal solution.

The fact is that we still don't know the Devil's algorithm for the 2x2x2 cube, despite that it has much fewer possible positions. So don't expect this to be found for the Rubik's Cube any time soon. Unfortunately the numbers are so imaginably high that even the 2x2x2 attempts have failed.

Let's see an example for the Devil's algorithm. If we scramble a 2x2x2 cube allowing only half turns, we can come back to the solved position repeating the following: R2 U2 R2 U2 R2 B2 R2.

Fewest move challengein official competitions

In official Rubik’s Cube competitions organised by the World Cube Association (WCA), there is an event called Fewest Move Count (FMC), which involves taking a random computer generated scramble and solving it in as few moves as possible. A computer would be able to find the most efficient solution possible that takes the least amount of moves in seconds, however in this event competitors have 1 hour to try and find the most efficient solution that they physically can. The World Record for this event went below 20 moves many times. In 2019 Sebastiano Tronto (Italy) found a solution on an official competition in 16 moves. Keep track of the evolution of FMC records on the official WCA website here.

To conclude, God’s Number is a fascinating theory. It shows us how such a simple looking puzzle can have over 5 and a half times more combinations than there are grains of sand on the Earth, and it also proves that computers will always be infinitely better than humans at almost any task.

Computer programs

The Cube Explorer program by the German mathematician, Herbert Kociemba is able to find the optimal solution in 20 steps using the half turn metric (half turns count as one move). Test our program which is using the same algorithm. It's looking for the solution in 20 moves but if the program doesn't return any result below the time threshold then it switches to 24 steps which is also very close to the God's number.

Optimal Rubik’s Cube Solver »

Comments

God's Number - Looking for the optimal Rubik's Cube solution (2024)

FAQs

What is God's number Rubik's cube Solver? ›

At long last, God's Number has been shown to be 20. It took fifteen years after the introduction of the Cube to find the first position that provably requires twenty moves to solve; it is appropriate that fifteen years after that, we prove that twenty moves suffice for all positions.

What is the optimal number of moves to solve a Rubik's cube? ›

All were proved solvable in 29 moves, with most solvable in 26. Those that could not initially be solved in 26 moves were then solved explicitly, and shown that they too could be solved in 26 moves. Tomas Rokicki reported in a 2008 computational proof that all unsolved cubes could be solved in 25 moves or fewer.

What is the God's number on the 2x2x2 Rubik's cube? ›

God's Algorithm for 2x2x2 Cubes

God's Number for the 2x2 puzzle (having only 3,674,160 different positions) has been proven to be 11 moves using the half turn metric, or 14 using the quarter turn metric (half turns count as 2 rotations).

What is the number for the Rubik's cube solution? ›

The original 3x3x3 Rubik's cube has 43 252 003 274 489 856 000 combinations, or 43 quintillion. Again, as pointed out on this website's main page, this is a manageably imaginable number. It's a little less than the square of the earth's population, for example.

What is God's algorithm 3x3x3? ›

That said, it is possible to solve a Cube from any naturally occurring position (ie: no corner twists) in 20 moves or less, making 20, “God's Number.” At least, it's 20 for a 3x3x3. Can a 3x3 Rubik's cube be solved with one algorithm?

Is God's number 777? ›

The number refers to a triumph of "God's number" 7 over the Devil's number 666. On the AWB flag, the numbers are arranged in a triskelion shape, resembling the Nazi swastika.

What is the God's number for 4x4? ›

It is very difficult to estimate the God's number of the Rubik's revenge mainly because the centre piece of it isn't fixed because of which OLL and PLL parities occur. For 3x3 this number is 20, and using this result God's number for 4x4 comes out to 45.

What is the superflip algorithm? ›

One optimal solution in HTM for the superflip is U R2 F B R B2 R U2 L B2 R U' D' R2 F R' L B2 U2 F2. The superflip also requires a minimum of 24 quarter turns to solve, and a minimum of 16 slice turns. One example of an optimal solution which requires 16 slice turns is S U B2 D2 M D' M2 S U R2 D M2 U B2 U S2.

What is God's number? ›

The term "God's number" is sometimes given to the graph diameter of Rubik's graph, which is the minimum number of turns required to solve a Rubik's cube from an arbitrary starting position (i.e., in the worst case). Rokicki et al. (2010) showed that this number equals 20.

What is the God's number algorithm? ›

A solution is optimal if the sequence of moves is as short as possible. The highest value of this, among all initial configurations, is known as God's number, or, more formally, the minimax value. God's algorithm, then, for a given puzzle, is an algorithm that solves the puzzle and produces only optimal solutions.

What is God's number 999? ›

What does 999 mean? The angel number 999 is associated with completion. In this sense, seeing 999 means things in your current situation are coming to an end in order for new opportunities to present themselves.

Can I solve a Rubik's cube in 20 moves? ›

Solve any 3x3 Rubik's Cube using the Super-Flip method.

There's more than one way to solve a Rubik's cube, but the Super-Flip allows you to solve it in exactly 20 steps!

What is the lucky number of God? ›

The significance of the number 7 in other cultures

In the Bible, scholars claim that God created the world in six days and used the seventh day to rest. Because of this, the number seven is used to illustrate an idea of completeness throughout the Bible. In both Islam and Judaism, there are seven heavens.

What is the holy number? ›

Religion and the arts. The number 108 is considered sacred by the Dharmic Religions, such as Hinduism, Buddhism, and Jainism.

What is God's favorite number? ›

He manifested himself as three persons in what we call the Trinity. But His favorite number of all is seven. He created the heavens and earth and rested on the seventh day.

Top Articles
Latest Posts
Article information

Author: Nathanael Baumbach

Last Updated:

Views: 5908

Rating: 4.4 / 5 (55 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Nathanael Baumbach

Birthday: 1998-12-02

Address: Apt. 829 751 Glover View, West Orlando, IN 22436

Phone: +901025288581

Job: Internal IT Coordinator

Hobby: Gunsmithing, Motor sports, Flying, Skiing, Hooping, Lego building, Ice skating

Introduction: My name is Nathanael Baumbach, I am a fantastic, nice, victorious, brave, healthy, cute, glorious person who loves writing and wants to share my knowledge and understanding with you.