Nxn rubik's cube - how many orientations?

  • Thread starter DyslexicHobo
  • Start date
  • Tags
    Cube
In summary, the conversation discusses the number of possible orientations for a Rubik's Cube, taking into account the different orientations and positions of each piece. The question is raised about how to exclude physically impossible orientations, and a link is provided with a complex formula for calculating the number of possible orientations. The conversation also includes a translation of the formula into a programming language for easier understanding.
  • #1
DyslexicHobo
251
0
I'm sitting here with my new 5x5x5 rubik's cube, and I was just wondering how many possible orientations there were. I THOUGHT:
-Each corner has 3 orientations and 8 positions
-Each middle side has 2 orientations and 12 positions
-Each outer side has 2 orientations and 24 positions
-etc etc for each piece
-multiply each possible position and orientation together

However, I know that certain orientations are not physically possible to achieve. For example, you can't have a solved cube with only one corner with a different orientation. I'm not sure how to exclude these when trying to account for all physically possible orientations.


So my question: what is the total number of different ways a nxnxn rubik's cube can be presented assuming that with normal rotations of a rubik's cube, it can be solved. I tried generalizing it by looking at a 1x1x1 cube and 2x2x2 cube, but I'm still really lost.
 
Mathematics news on Phys.org
  • #2
It's a complicated question. I think the answer is http://www.research.att.com/~njas/sequences/A075152 (5) = 282870942277741856536180333107150328293127731985672134721536000000000000000.

(The offset seems to be wrong -- maybe I should email Dr. Sloane on this one!)
 
Last edited by a moderator:
  • #3
Yeah, I saw that number when browsing around google. That's an interesting function though. Looks even more difficult for even numbered cubes.

Code:
f := proc(n) local A, B, C, D, E, F, G; 
if n mod 2 = 1 then 
A := (n-1)/2; F := 0; B := 1; C := 1; D := 0; E := (n+1)*(n-3)/4; G := (n-1)*(n-3)/4; 

else A := n/2; F := 1; B := 1; C := 0; D := 0; E := n*(n-2)/4; G := (n-2)^2/4; fi; (2^A*((8!/2)*3^7)^B*((12!/2)*2^11)^C*((4^6)/2)^D*(24!/2)^E)/(24^F*((24^6)/2)^G); 

end;

I don't really understand the syntax, let alone the mathematics behind it, but thanks for the link. I guess it's a more complicated process than I thought.
 
  • #4
DyslexicHobo said:
I don't really understand the syntax, let alone the mathematics behind it, but thanks for the link. I guess it's a more complicated process than I thought.

Here's a fairly straightforward translation into Pari:
Code:
cube(n)={
	local(A, C, E, F, G);
	A = n >> 1;
	if(n%2,
		F = 0; C = 1; E = (n+1)*(n-3)/4; G = (n-1)*(n-3)/4;
	,
		F = 1; C = 0; E = n*(n-2)/4; G = (n-2)^2/4;
	);
	(2^A*((8!/2)*3^7)*((12!/2)*2^11)^C*(24!/2)^E)/(24^F*((24^6)/2)^G)
}

The first indented block sets up variables for n odd, the second for n even. The final result is the line starting "(2^A".
 

Related to Nxn rubik's cube - how many orientations?

What is a Nxn Rubik's cube?

A Nxn Rubik's cube is a twisty puzzle toy with multiple layers that can be rotated in different directions, creating a scrambled pattern. The most common version is the 3x3 Rubik's cube, but there are also Nxn variations with different numbers of layers, such as 4x4, 5x5, and so on.

How many orientations can a Nxn Rubik's cube have?

The number of orientations for a Nxn Rubik's cube depends on the size of the cube. For a 3x3 Rubik's cube, there are 43,252,003,274,489,856,000 possible orientations. For a 4x4 cube, there are 7,401,196,841,564,901,869,874,093,974,498,574,336,000,000,000 possible orientations.

What is the difference between orientations and permutations?

Orientations refer to the number of possible ways that the pieces on a Nxn Rubik's cube can be rotated. Permutations, on the other hand, refer to the number of possible ways that the pieces can be arranged. For a 3x3 cube, there are 43,252,003,274,489,856,000 orientations, but only 43,252,003,274,489,856,000 ÷ 12 = 3,674,160,250,406,000 permutations, as some orientations are equivalent due to the cube's symmetry.

Is it possible to solve a Nxn Rubik's cube in one move?

No, it is not possible to solve a Nxn Rubik's cube in one move. The minimum number of moves required to solve a 3x3 cube is 20, and for larger cubes, it is even more moves. This is because there are a huge number of possible orientations and permutations, making it extremely rare for a cube to be solved in just one move.

Can a Nxn Rubik's cube always be solved?

Yes, a Nxn Rubik's cube can always be solved, regardless of the number of layers. However, as the size of the cube increases, the number of possible orientations and permutations also increases, making it more challenging to solve. It may require more time, effort, and skill to solve larger cubes, but it is always possible with the right strategies and techniques.

Similar threads

Replies
4
Views
2K
  • General Discussion
Replies
23
Views
2K
Replies
1
Views
1K
  • Programming and Computer Science
Replies
14
Views
2K
  • General Math
Replies
33
Views
2K
Replies
4
Views
2K
Replies
6
Views
3K
  • Set Theory, Logic, Probability, Statistics
Replies
2
Views
1K
Replies
7
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
1
Views
2K
Back
Top