# God's number for the $n \times n \times n$-cube

This is a question about Rubik's Cube and generalizations of this puzzle, such as Rubik's Revenge, Professor's cube or in general the $n \times n \times n$ cube.

Let $g(n)$ be the smallest number $m$, such that every realizable arrangement of the $n \times n \times n$ cube can be solved with $m$ moves. In other words, this is the "radius" of the Cayley graph of the $n \times n \times n$ cube group with respect to the canonical generating system.

We have $g(1)=0$, $g(2)=11$ and - quite recently - in 2010 it was proven that $g(3)=20$: God's number is 20.

Question. Is anything known about $g(4)$ or $g(5)$?

I expect that the precise number is unkwown since the calculation for Rubik's cube already took three decades. Nevertheless, is there any work in progress? Are any lower or upper bounds known?

I would like to ask the same question about $g(n)$ for $n>5$, or rather:

Question. Is anything known about the asymptotic value of $g(n)$?

• Perhaps it should be mentioned that this result is for the half-turn metric. In light of the comments at matthewkahle.wordpress.com/tag/gods-number, it appears that the situation for the quarter-turn metric will prove to be more elegant mathematically, where the answer is expected to be 26 with a unique position requiring 26 moves to solve. (Also, why restrict to three dimensions? Let's ask for the asymptotics for God's number for the n^k cube). – Peter McNamara Oct 11 '11 at 20:19
• Thanks Peter; I didn't know that 20 refers to the half-turn metric. And now I'm rather disappointed that the number for the quater-turn metric (which seems much more natural to me) is still unknown! – Martin Brandenburg Oct 12 '11 at 12:29
• An estimate for God's number for the 4x4x4 cube was around 30, in a cubing forum. – user50630 May 10 '14 at 1:55

## 2 Answers

I am not an expert, but I remember seeing this press release from MIT not too long ago. The corresponding arXiv article should answer your second question.

• Just to make the answer to Q2 explicit: $g(n)= \Theta(n^2 / \log n)$. – Joseph O'Rourke Oct 11 '11 at 17:36
• This is fantastic! I will try to read the paper. This indeed answers Q2. I should have asked Q1 separatedly. – Martin Brandenburg Oct 11 '11 at 19:56
• Erik Demaine mentioned this result last week at his public lecture "Geometric puzzles: Algorithms and complexity" in the Joint Meetings. math.harvard.edu/~elkies/Pix/jmm12/demaine5.jpg – Noam D. Elkies Jan 14 '12 at 20:09

Based on this discussion from 2015, God's number for the 4x4x4 cube lies beween 35 and 55 (inclusive) for the outer block turn metric, with the corresponding bounds being 32 and 53 for the single slice turn metric, and 29 and 53 for the block turn metric. Scroll down to the comments for the optimal bounds.

The choice of metric is irrelevant for the asymptotic results of Demaine, Demaine, Eisenstat, Lubiw and Winslow which gives $$\Theta(n^2/\log(n))$$ as the answer to question two.

Since this question was first asked, cube20.org claims to have also shown that God's number for the quarter turn metric is 26.

As for the 5x5x5, one can find this post claiming an upper bound of 130 for the outer block turning metric.