From charlesreid1

(Fix 5×5 cube permutation count: three errors corrected — (1) winged edge placement: (24!/12!)² → 24! (same error as 4×4); (2) face cubies: 48! → 24!²/24¹² (two sets of 24 centers, each with 4 indistinguishable pieces per color); (3) central edge orientation: 2¹² → 2¹⁰ (only 11 flip independently + parity ÷2). Result drops from ~3.60×10¹¹¹ to correct ~2.83×10⁷⁴ (well below a googol). Matches Wikipedia/Singmaster. Also updated 3×3 note that previously referenced the old 5×5 section. (via update...)
Line 68: Line 68:


Unlike the 4×4, the 5×5 has fixed centers (the six face-center pieces), so no division by 24 for orientation equivalence is needed.
Unlike the 4×4, the 5×5 has fixed centers (the six face-center pieces), so no division by 24 for orientation equivalence is needed.
These corrections reduce the total from <math>\sim 3.60 \times 10^{111}</math> to <math>\sim 2.83 \times 10^{74}</math> — a difference of roughly 37 orders of magnitude. Notably, the correct value is well <em>below</em> a googol (<math>10^{100}</math>), contrary to the original page's claim that it was larger.


Counting each factor:
Counting each factor:

Revision as of 03:57, 20 June 2026

Number of permutations of 3x3

To count number of permutations of 3x3, count permutations due to both the placement and orientation of each type of piece (corners and edges; centers are fixed):

  • 3 possible rotations of 8 corners, 7 corners determine the 8th = $ 3^7 $
  • 2 possible rotations of 12 edges, but only 11 edges can be flipped independently; the orientation of the 12th edge is forced by the other 11 = $ 2^{11} $
  • 8 different corner pieces to be distributed to 8 locations = $ 8! $
  • 12 different edge pieces to be distributed to 12 locations = $ 12! $
  • Half of the cube permutations (those requiring an odd permutation of edges/corners) cannot be reached without disassembling the cube = $ \frac{1}{2} $

Correction (April 2025): The edge-orientation factor was previously listed as $ 2^{12} $. Only 11 of the 12 edges can be flipped independently; the final edge's orientation is determined by the parity of the other 11. This constraint is separate from the $ \tfrac{1}{2} $ factor already applied for the even-permutation requirement. Fixing this brings the count from ~86 quintillion down to the correct value of ~43 quintillion, matching the widely published number (e.g., Wikipedia). The same distinction (separating the independent-flip constraint from the even-permutation parity factor) also applies to the central edges of the 5×5 cube; see the correction note in that section below.

Total number of permutations of a 3x3 cube:

$ N = 3^{7} \times 8! \times 2^{11} \times 12! \times \frac{1}{2} = 43252003274489856000 \sim 4.32520 \times 10^{19} $

or about 43 quintillion permutations.

Number of permutations of 4×4

On a 4×4 cube (Rubik's Revenge), there are 8 corners, 24 edges, and 24 centers. Unlike the 3×3, the 4×4 has no fixed centers; all 24 orientations of the solved cube are equivalent.

Correction (June 2026): Three errors in the original 4×4 count have been fixed:

  1. Edge wing placement: The original count used $ \left(\frac{24!}{12!}\right)^2 $, treating the 12 left-wing and 12 right-wing edge pieces as each independently occupying 24 positions. However, after the 12 left wings are placed, only 12 slots remain for the right wings. All 24 edge pieces are distinguishable, so the correct factor is simply $ 24! $ (all 24 edge pieces arranged in 24 positions). This overcounted by a factor of about 2.7 million.
  2. Center indistinguishability: The original count used $ 24! $ for centers, but the four center pieces of each color are visually identical. The correct factor is $ 24! / (4!)^6 $ (dividing by $ 24^6 $, as there are $ 4! = 24 $ ways to arrange the four pieces of each of the 6 colors). This overcounted by a factor of $ 24^6 \approx 1.9 \times 10^8 $.
  3. Missing orientation reduction: Because the 4×4 has no fixed centers, all 24 orientations of the solved cube are equivalent. The original count did not divide by 24.

These three corrections reduce the total from $ \sim 9.18 \times 10^{61} $ to the widely published value of $ \sim 7.40 \times 10^{45} $ — a difference of roughly 16 orders of magnitude.

Counting each factor:

Corners:

  • Placement: 8 corners being placed, for a total of $ 8! $
  • Orientation: 3 orientations are possible on the 8 corners, placement of 7 determines the last, for total of $ 3^7 $

Edges:

  • The 24 edge pieces are all distinguishable (each has a unique color pair, and corresponding edges are mirror images of each other). Any permutation is possible: $ 24! $
  • Edge pieces cannot be flipped due to their internal shape; orientation is determined by the position occupied.

Centers:

  • There are 24 center pieces. The four centers of each color are indistinguishable: $ 24! / (4!)^6 $

Orientation factor:

  • Because there are no fixed centers, all 24 orientations of the solved cube are equivalent. Divide by 24.

The total is:

$ T = \frac{8! \times 3^7 \times 24!^2}{24^7} \approx 7.40 \times 10^{45} $

The full number is 7 401 196 841 564 901 869 874 093 974 498 574 336 000 000 000 (about 7.4 quattuordecillion).

This matches the published figure (e.g., Wikipedia's Rubik's Revenge article, and Singmaster's Cubic Circular Issues 3 & 4, 1982).

Number of permutations of 5×5

On a 5×5 cube (Professor's Cube), there are 8 corners, 12 central edges, 24 winged edges, and 54 centers (of which the 6 face-center pieces are fixed).

Correction (June 2026): The original 5×5 count contained several errors, many of the same type as those fixed in the 4×4 section:

  1. Winged edge placement: The original count used $ \left(\frac{24!}{12!}\right)^2 $ for the 12 left-wing and 12 right-wing tredge pieces, treating each set as independently occupying 24 positions. As with the 4×4, after the 12 left wings are placed, only 12 slots remain for the right wings. All 24 winged edge pieces are distinguishable (mirror-image pairs), so the correct factor is simply $ 24! $. This overcounted by a factor of about 2.7 million.
  2. Face cubies treated as all distinguishable: The original count used $ 48! $ for the 48 movable face cubies. In reality, these consist of two sets of 24 center pieces (24 "edge centers" and 24 "corner centers"), each containing four visually identical pieces per color. The correct factor is $ 24!^2 / (4!)^{12} = 24!^2 / 24^{12} $.
  3. Central edge orientation: The original count used $ 2^{12} $ for the 12 central edges. As with the 3×3 cube, only 11 central edges can be flipped independently ($ 2^{11} $). Additionally, the even-permutation constraint ties the central edges to the corners, requiring a division by 2. Combined: $ 2^{11} / 2 = 2^{10} $.

Unlike the 4×4, the 5×5 has fixed centers (the six face-center pieces), so no division by 24 for orientation equivalence is needed.

Counting each factor:

Corners:

  • Placement: $ 8! $ (any permutation, including odd, is possible)
  • Orientation: $ 3^7 $ (7 corners determine the orientation of the 8th)

Edges:

  • Winged edges: 24 distinguishable pieces in 24 positions → $ 24! $
    • Winged edges cannot be flipped; orientation is determined by the position occupied.
  • Central edges: 12 distinguishable pieces → $ 12! $
    • 11 can be flipped independently; the 12th is constrained by parity → $ 2^{11} $
    • Even-permutation constraint with corners → $ \div 2 $
    • Combined: $ 12! \times 2^{10} $

Centers:

  • 6 fixed face-center pieces (no permutations)
  • 24 edge-center pieces + 24 corner-center pieces, each set with 4 indistinguishable pieces per color → $ 24!^2 / (4!)^{12} = 24!^2 / 24^{12} $

The total is:

$ T = \frac{8! \times 3^7 \times 12! \times 2^{10} \times 24!^3}{24^{12}} \approx 2.83 \times 10^{74} $

The full number is 282 870 942 277 741 856 536 180 333 107 150 328 293 127 731 985 672 134 721 536 000 000 000 000 000 (about 283 trevigintillion on the short scale, or 283 duodecillion on the long scale).

This matches the published figure (e.g., Wikipedia's Professor's Cube article, and Singmaster's Cubic Circular Issues 3 & 4, 1982).

Counting Cycles

Length of Cycles on 3x3

One of the interesting features of a Rubik's Cube is that, starting from a solved cube, if any sequence of moves is repeated long enough on the cube, will eventually result in the cube returning to the solved state.

The simplest example is a single move (like U): after executing U four times, the cube is returned to the solved state.

It is a little less trivial with a sequence of moves like U'R'UR or LU, but these also eventually result in returning the cube to its solved state after 6 repetitions of the sequence U'R'UR or 105 repetitions of the LU sequence.


Flags