Teaching Kids Programming – How Many Solvable Permutations for a 3×3 Rubik’s Cube? (Math, Combinatorics)


Teaching Kids Programming: Videos on Data Structures and Algorithms

Given a 3×3 Rubik Cube, how many Permutations does it have (solvable)?

rubik-cube Teaching Kids Programming - How Many Solvable Permutations for a 3x3 Rubik's Cube? (Math, Combinatorics) Combinatoric Mathematics math proof without words Rubik Cubes teaching kids programming tutorial

3×3 rubik cube

There are 6 cores (the pieces in the middle) which don’t change and if we break the rubik cube, these pieces are fixed.

There are 12 edge pieces (two colors) and 8 corner pieces (three colors).

To install the edge pieces without considering the colors is:

tex_780d1e112c62ed52e55dd4f6034e8c48 Teaching Kids Programming - How Many Solvable Permutations for a 3x3 Rubik's Cube? (Math, Combinatorics) Combinatoric Mathematics math proof without words Rubik Cubes teaching kids programming tutorial which is 12! (factorial)

To assemble the corner pieces, similar idea without considering the colors is:

tex_ce3d3e4302f03fc8831185404e5abb81 Teaching Kids Programming - How Many Solvable Permutations for a 3x3 Rubik's Cube? (Math, Combinatorics) Combinatoric Mathematics math proof without words Rubik Cubes teaching kids programming tutorial which is 8! (factorial).

For each edge pieces, we can flip it (two permutations), for each corner pieces, we can twist it three times. And thus, the total number of states that we can re-assemble a 3×3 rubik’s cube is:

tex_bae6eda295042493d09a680d74e7c08a Teaching Kids Programming - How Many Solvable Permutations for a 3x3 Rubik's Cube? (Math, Combinatorics) Combinatoric Mathematics math proof without words Rubik Cubes teaching kids programming tutorial

This is the number of permutations that we can re-assemble the 3×3 rubik cube, however, not all of them can be solvable (can be obtained from a solvable state).

unsolvable-3x3-rubik-cube Teaching Kids Programming - How Many Solvable Permutations for a 3x3 Rubik's Cube? (Math, Combinatorics) Combinatoric Mathematics math proof without words Rubik Cubes teaching kids programming tutorial

unsolvable-3×3-rubik-cube

For the last corner cube, we can only have 1 solvable state – thus 1/3 of them is solvable.

For the last edge pixel, we can only 1 out of 2 have solvable state (we can’t just simply flip them).

And we can’t simply swap any two edge pieces without affecting other pieces, thus only 1/2 is solvable.

And that is tex_d4a246396ad87a9bc27a4724ab63e3e9 Teaching Kids Programming - How Many Solvable Permutations for a 3x3 Rubik's Cube? (Math, Combinatorics) Combinatoric Mathematics math proof without words Rubik Cubes teaching kids programming tutorial (one twelvth) is solvable from all states:

tex_52b901b318d805fa0881dd254605f574 Teaching Kids Programming - How Many Solvable Permutations for a 3x3 Rubik's Cube? (Math, Combinatorics) Combinatoric Mathematics math proof without words Rubik Cubes teaching kids programming tutorial

–EOF (The Ultimate Computing & Technology Blog) —

GD Star Rating
loading...
570 words
Last Post: Teaching Kids Programming - Greedy/Simulation Algorithm to Validate Stack Sequences
Next Post: Teaching Kids Programming - Counting the Number of Squares and Rectangles of a NxN Rubik Cube

The Permanent URL is: Teaching Kids Programming – How Many Solvable Permutations for a 3×3 Rubik’s Cube? (Math, Combinatorics)

Leave a Reply