• Welcome to SpeedSolving.com — the world’s largest puzzle community!

    You’re currently browsing as a guest, which means you have limited access to discussions, resources, member profiles, and community features.

    Join 50,000+ cubers and puzzle enthusiasts from around the world to ask questions, share solves, improve faster, and be part of the community.

    Registration is free, fast, and easy — create your account today.

    Already a member? Log in here to hide this message and start participating.

The math behind the cube

goidlon

Regular
Joined
Jan 22, 2019
Messages
245
Location
UY-Scuti
YouTube
Visit Channel
Hey guys this is a project for school about the math behind the cube and I have been asked to do some research about it. I thought it would be a good idea to get some help from you guys! If you have any ideas or websites I should check out let me know.
 
Talk about why the equation for the amount of possibilities works. There's a great Popular Science article on it called 'the math behind the Rubik's cube' or something like that.
 
Talk about why the equation for the amount of possibilities works.

This is an explanation I wrote of how the equation for calculating the possible solvable cases works.


8! * 12! * 12^2 * 8^3 / 12 is the equation used to calculate the number of permutations on a 3x3. Here's why it works:

8! - there are 8 corners on the 3x3, each of which can be arranged uniquely. To find the number one set of items can be arranged(i.e, how many ways can 8 blocks be arranged), we take the number of items(8 corners) and multiply it with every previous number down to 1. This is called a factorial, and is represented with an !, so 8! is 8 * 7 * 6 * 5 * 4 * 3 * 2 * 1. The reason we need to do this is because the first corner can be put in 8 different positions, the second corner can now go in 7 different positions, the third can go in 6, etc.

* 12! - this does the same thing as the previous step, except for the edges

* 2^12 - last step, we calculated how many permutations that can be created with edges, but we didn't account for orientation. Each edge can have 2 orientations, so we multiply the number of orientations by itself for every unique edge. This is represented by an exponent, which can be written like this: x^y. So if we have 2^10, it would be 2 multiplied by itself 10 times, or 2*2*2*2*2*2*2*2*2*2.

* 3^8 - this does the same thing as the previous step, accounting for 8 corners, each with 3 unique orientations

/ 12 - this is to account for impossible cases, sometimes referred to as "parity cases". If you've ever twisted a corner, then you'll know that some cases are impossible to solve. I personally am not sure why exactly the number needed is 12, but I'm sure another member could explain. If we were to remove this from the equation, we would get all the possible combinations, including unsolvable ones.

So this is how we get the large number of 43,252,003,274,489,856,000.
 
Last edited:
The reason for that is that this equation counts a solved cube with white top green front and a solved cube as white top red front as two different positions.
Actually, no, the "white top red front" scenario isn't counted at all in the 43 quintillion figure. That figure is working under the assumption that the centres are fixed (i.e. the opposite of what you're trying to say).

I think you're trying to talk about symmetry reduction? (E.g. the sequences "U" and "R" lead to cube states that are essentially identical, up to a rotation.) Symmetry reduction is considerably more complicated because different cube states can have different numbers of equivalent states. For example, the solved state, the checkerboard state (M2 E2 S2) and the superflip state all have maximum symmetry, and hence have only one equivalent state each (which is to say, themselves and only themselves). In contrast, most cube states have only the trivial symmetry, and hence have 24 equivalent states (if you only allow proper rotations) or 48 equivalent states (if you allow reflections as well), or even 96 equivalent states (if you also allow inverting the cube state).

As different states can have different equivalence class sizes, you can't just divide the total number of states by 24 (or 48 or 96) to get the number of equivalence classes (although this will usually be a very good approximation). You need to go through this thing and painstakingly count the number of states with each symmetry subgroup.
 
Actually, no, the "white top red front" scenario isn't counted at all in the 43 quintillion figure. That figure is working under the assumption that the centres are fixed (i.e. the opposite of what you're trying to say).

I think you're trying to talk about symmetry reduction? (E.g. the sequences "U" and "R" lead to cube states that are essentially identical, up to a rotation.) Symmetry reduction is considerably more complicated because different cube states can have different numbers of equivalent states. For example, the solved state, the checkerboard state (M2 E2 S2) and the superflip state all have maximum symmetry, and hence have only one equivalent state each (which is to say, themselves and only themselves). In contrast, most cube states have only the trivial symmetry, and hence have 24 equivalent states (if you only allow proper rotations) or 48 equivalent states (if you allow reflections as well), or even 96 equivalent states (if you also allow inverting the cube state).

As different states can have different equivalence class sizes, you can't just divide the total number of states by 24 (or 48 or 96) to get the number of equivalence classes (although this will usually be a very good approximation). You need to go through this thing and painstakingly count the number of states with each symmetry subgroup.

Ok, I removed that part from my post. I thought I read about that somewhere, I must have forgotten something. Thanks!
 
/ 12 - this is to account for impossible cases, sometimes referred to as "parity cases". If you've ever twisted a corner, then you'll know that some cases are impossible to solve. I personally am not sure why exactly the number needed is 12, but I'm sure another member could explain. If we were to remove this from the equation, we would get all the possible combinations, including unsolvable ones.
If you randomly assemble the cube, as described in the previous steps:
50% chance of edge flip
67% (2/3) chance of corner twist
50% chance of parity (one edge-edge or corner-corner swap)

Therefore, the solvable permutations are the possible ones divided by 2*3*2, or 12.
 
If you randomly assemble the cube, as described in the previous steps:
50% chance of edge flip
67% (2/3) chance of corner twist
50% chance of parity (one edge-edge or corner-corner swap)

Therefore, the solvable permutations are the possible ones divided by 2*3*2, or 12.
What are the individual chances of a corner-corner swap or edge-edge swap?
 
Back
Top