Answer:
Explanation:
Define two ways of painting to be in the same class if one can be rotated to form the other.We can count the number of ways of painting for each specific class .
Case 1: Black-white color distribution is 0-6 (out of 6 total faces)
Trivially
=1 way to paint the cubes.
Case 2: Black-white color distribution is 1-5
Trivially all
=6 ways belong to the same class , so
ways to paint the cubes.
Case 3: Black-white color distribution is 2-4
There are two classes for this case: the class where the two red faces are touching and the other class where the two red faces are on opposite faces. There are 3 members of the latter class since there are 3 unordered pairs of 2 opposite faces of a cube. Thus, there are
-3=12 members of the former class . Thus,
ways to paint the cubes for this case.
Case 4: Black-white color distribution is 3-3
By simple intuition, there are also two classes for this case, the class where the three red faces meet at a single vertex, and the other class where the three red faces are in a "straight line" along the edges of the cube. Note that since there are 8 vertices in a cube, there are 8 members of the former class and
members of the latter class. Thus,
ways to paint the cubes for this case.
Note that by symmetry (since we are only switching the colors), the number of ways to paint the cubes for black-white color distributions 4-2, 5-1, and 6-0 is 2-4, 1-5, and 0-6 (respectively).
Thus, our total answer is