Puzzle About Cubes (from the book thinking mathematically)

2.2k Views Asked by At

I want to confirm my solution to the given problem (solutions were not available in the book)

I have eight cubes. Two of them are painted red, two white, two blue and two yellow, but otherwise they are indistinguishable. I wish to assemble them into one large cube with each color appearing on each face. In how many different ways can I assemble the cube?

  1. The answer i got was 96 is this correct?
  2. I also tried to generalize the question such that given $n$ cubes and $\sqrt n$ number of colors, I came up with

$$n!\cdot2(n-\sqrt{n})!\cdot(n-2\sqrt{n})!\cdot2(n-(4\sqrt{n}-4))!$$

is the above generalization correct?

Thanks

EDIT

well to further explain my question, the rational behind the answer to the 1st question was we have 6 faces and if we take one of the faces we have 4! possibilities to arrange the 4 colors. that gives us 24 possibilities. and if move to the other faces, we have 2 faces of 2! possibilities and 3 faces of 1! possibilities thus total arrangements are 4!x2!x2!x1!x1!x1! = 96

for the second question yes the colors should be n^1/3 but for the generalization n should be no of colors.

for example if we take the current question

n=4

  1. if we take the front face as the base face we have n! = 24
  2. if we take the left face because of step 1 we have $(n-\sqrt n)! =2$
  3. if we take the back face because of step 2 we again have $(n-\sqrt n)! =2$
  4. if we take the right face because of step 1 and step 3 we have $(n-2\sqrt n)! =1$
  5. if we take the top face because of step 1,2,3,4 we have $(n-(4\sqrt n -4))! =1$
  6. if we take the bottom face again because of step 1,2,3,4 we have $(n-(4\sqrt n -4))! =1$

thus the result 4!x2!x2!x1!x1!x1! = 96

6

There are 6 best solutions below

0
On

Yes think like this to make a cube max side is $2$ as $2^3=8$ qnd we have $8$ eight cubes. Now take tge base . The four cubes can be arranged in $4!$ ways in the base. Now as we want each colour on each face $2$ cubes with colour different than base colour cubes can be arranged on top of two base cubes maybe row or column. So now they can be arranged in $2$ ways and same can be done with the cubes in other row or column .so these are $2$ ways. Hence total ways are $4!.2.2=96$ and may be number of colours in generalized formula should be $n^{1/3}$

0
On

It depends on how you define different ways to assemble the cube. If there are two constructions of the cube such that I can get from one to the next just by rotating the cube without disassembling and assembling, is that considered two different cubes or one?

If you look at the large cube as 8 defined spots for the 8 small cubes, and a cube created by rotating is different from the cube that it was rotated from, then I would say there are 24 possible constructions. On any given side, there are 4 locations for say the white cube. Once I choose it's location, the other white cube must go on the opposite corner of the large cube. Then I have 3 locations for the next color and two for the next. So the total number of combinations is 24.

If however a cube created by rotating is still the same cube, then as far as I am aware, there is only one construction. By flipping on all 6 sides and turning in all 4 ways, I believe you can get all 24 possibilities mentioned earlier.

9
On

Let's see. Label the eight positions FLB, FLT, FRB, FRT, bLB, bLT, bRB, bRT.

There 4 possible colors for FLB, 3 for FLT, 2 for FRB, 1 for FRT.

bLB cannot share its color with any L, of **B so the only color it can have is that of FRT. Each of the remaining three slots can only have the color of its opposite corner (Otherwise it will share a color with one of its three faces).

So there are 4! to color a 2x2 cube. Now there are 2 of each color so there are $2^4$ ways to chose which of the two cubes for each slot.

So there are $4!*2^4 = 24*16 = 384$.

But this distinguishes between rotations. If I distinguish that I will always start with, arbitrarily the first yellow cube in FLB position, and it must be adjacent to all three of the other colors and if I distinguish that, arbitrarily, a blue cube must be in FRB, then this is reduced by 8 (where the first yellow cube goes is 8 and what color to choose for FRB is 3) then there are 16 possibility.

If further the 2 cubes of the same color are indistinguishable then I must reduce by the choices of which blue, white and red cubes. Or $2^3$ leaving only 2 possibilities.

If we allow symmetries then there is only one possibility.

But if that were the interpretation there'd be simpler way to do the puzzle. The Yellow must go somewhere. On one of the faces the the yellow will be next to the blue (and on another face next to the yellow and the third next to the white). Orientate ourselves to that face and rotate it so the blue is to the right of the yellow. Our only choice is whether the red or the white should go above the yellow. This is essentially choosing whether we want a "right or left handed orientation".

To extend to an $n \times n \times n$ cube is different problem entirely as there are center unviewed cubes and not all cubes are on all three face.

To extend a 2 cube to the n-th dimension would be $2^{n-1}!*2^{2^{n-1}}$ and with respect to orientation $2^{n-1}!*2^{2^{n-1}}/2^n*n!$. (I think).

If we don't distinguish between individual cubes of the same color, I think, this will be $2^{n-2}$ which I believe are the number of left-handed/right-handed orientations. Or maybe it is only 2.

3
On

If you are allowed to rotate the assembled cube freely there is exactly one way to assemble it.

Proof. Let $\{0,1,2,3\}$ be the set of colors. Color each vertex of the assembled $2$-cube with the color of the $1$-cube it belongs to. Vertices of the assembled cube having the same color are necessarily space-diagonally opposite. Assume that a vertex having color $0$ is facing you. Then its three adjacent vertices have colors $1$, $2$, $3$, arranged either counterclockwise or clockwise. Now convince yourself of the following: If $1$, $2$, $3$ are arranged counterclockwise, then $1$, $2$, $3$ will be arranged clockwise if you look at the assembled cube with the opposite $0$-vertex facing you.$\qquad\square$

It is so far unclear how this problem can be meaningfully formulated for an $n\times n\times n$ assembled cube.

0
On

This answer looks at Question 2, specifically the generalization to $n=3$.

Consider the problem of assembling a $3\times 3\times 3$ cube using a collection of $3^3=27$ cubies of $3^2=9$ colors, with $3$ cubies of each color, so that each color appears once on each face. There are four roles a cubie may play:

  • a corner cubie contributes its color to three faces;
  • an edge cubie contributes its color to two faces;
  • a center-of-face cubie contributes its color to one face;
  • the center-of-body cubie contributes its color to no faces.

Now each of the $9$ colors must appear on six faces. There are three ways to obtain $6$ as a sum of three numbers taken from $\{3,2,1,0\}$. They are $3+3+0$, $3+2+1$, and $2+2+2$. One of the nine colors must be used for the center-of-body cubie, so the other two cubies of that color must be diagonally opposite corner cubies (in order to have that color on all six faces). This leaves six other corners; since $3+3+0$ can only be used once, these remaining corners must each appear as part of the $3+2+1$ pattern, which means that each must be of a different color. This implies that the six center-of-face cubies must be of the same six different colors, as must six of the 12 edge cubies. There remain six edge cubies and two unused colors, which implies that the $2+2+2$ pattern must be used for the last two colors. That is, of the six remaining edge cubies, three are of one of the two remaining colors, and the other three are of the other remaining color.

Let the center-of-body cubie be of color $1$, and let the six center-of-face cubies be of colors $2$–$7$. We therefore start with the coloring $$ \begin{array}{ccccccccccccc} 1&x&x&\phantom{x}&\phantom{x}&x&4&x&\phantom{x}&\phantom{x}&x&x&x\\ x&2&x&&&6&1&7&&&x&3&x\\ x&x&x&&&x&5&x&&&x&x&1 \end{array}, $$ where the first $3\times3$ square represents the front face, the second $3\times3$ square represents the middle layer, and the third $3\times3$ square represents the back face, all viewed from the front. We see that, for example, the center of the front face has color $2$, which implies that one of the corner cubies on the back face must also have color $2$. There are three possible corners; once a corner is chosen, then the edge cubie with color $2$ is uniquely determined. We may proceed in this manner to find many ways of assembling the cube. A few of these are below.

Assembly 1: $$ \begin{array}{ccccccccccccc} 1&7&6&\phantom{x}&\phantom{x}&3&4&9&\phantom{x}&\phantom{x}&5&8&2\\ 8&2&5&&&6&1&7&&&9&3&4\\ 4&9&3&&&2&5&8&&&7&6&1 \end{array} $$

Assembly 2: $$ \begin{array}{ccccccccccccc} 1&7&6&\phantom{x}&\phantom{x}&9&4&3&\phantom{x}&\phantom{x}&5&8&2\\ 8&2&5&&&6&1&7&&&4&3&9\\ 3&9&4&&&2&5&8&&&7&6&1 \end{array} $$

Assembly 3: $$ \begin{array}{ccccccccccccc} 1&7&6&\phantom{x}&\phantom{x}&3&4&9&\phantom{x}&\phantom{x}&2&8&5\\ 5&2&8&&&6&1&7&&&9&3&4\\ 4&9&3&&&8&5&2&&&7&6&1 \end{array} $$

These three are certainly not equivalent, even up to permutation of colors and rotation. To see this, observe that in the third assembly the corner cubie of color $j=2,3,\ldots,7$ on the face opposite the face on which color $j$ appears as the center-of-face cubie is always diagonally across from color $1$, but that this is true of only four of the faces in the first assembly, and of only two in the second assembly.

Added: Up to rotation, reflection, and permutations of colors, the three assemblies above are the only ones possible. The fact is proved and then used to give a complete enumeration below.

As above, we initially suppose that the center-of-body cubie is of color $1$, which means that two body-diagonally opposite corners, which we will take to be front, top, left and back, bottom, right, are also of color $1$. Denote these corners $a$ and $b$.

Two colors, which we will suppose to be colors $8$ and $9$, are used only as edge cubies. Let $E$ be the set of three edges on which color $8$ appears. The $12$ edges of the cube come in three parallel classes of four edges each. No face of the cube may contain two edges of $E$ since each edge of $E$ must contribute two new faces to the total of six faces on which color $8$ is to appear. Furthermore, $E$ cannot contain two edges that are parallel and across the body center from each other, since the two faces that are left without color $8$ are then opposite each other, and have no edge in common that would allow color $8$ to appear on both. Hence $E$ must consist of one edge from each parallel class.

The edges of $E$ will be incident on a total of six corners and nonincident on two, the latter of which are necessarily body-diagonally opposite. (If the two non-incident corners were opposite on a face, then that face would not contain color $8$; if they were joined by an edge, then the two edges parallel to that edge and opposite to it on the coincident faces would have to contain color $8$, an arrangement that we have already ruled out.) The set $F$ of edges on which color $9$ appears has the same properties. The sets $E$ and $F$ are, of course, disjoint.

There are now three possibilities for the incidence of $a$ and $b$ on $E$ and $F$:

  1. neither $a$ nor $b$ is incident on any edge of $E$ or $F$;
  2. each of $a$ and $b$ is incident on an edge of one set, say $E$, and nonincident on any edge of the other;
  3. each of $a$ and $b$ is incident on an edge of both $E$ and $F$.

In case 1, since the three edges incident on $a$ and the three edges incident on $b$ are not used in $E$ or $F$, the set $E\cup F$ consists of all six remaining edges, which form a $6$-cycle. The edge of this $6$-cycle will alternate between the colors $8$ and $9$, giving two possible edge $2$-colorings, one of which is shown.

Case 1, with 6-cycle highlighted

After arbitrarily choosing one of the two possible edge $2$-colorings, say the one shown, and then arbitrarily assigning colors $2$–$7$ to the center-of face cubies, we have $$ \begin{array}{ccccccccccccc} 1&x&x&\phantom{x}&\phantom{x}&x&4&8&\phantom{x}&\phantom{x}&x&9&x\\ x&2&9&&&6&1&7&&&8&3&x\\ x&8&x&&&9&5&x&&&x&x&1 \end{array}. $$ We then find that the colors of all remaining cubies are forced, and the result is the third assembly above. As an example of this forcing: one of the three uncolored corners on the back face must receive color $2$. Whichever choice is made, we need to place one more cubie of color $2$, and it must be on an edge. Furthermore, the choice of edge is forced by the condition that every face contain the color $2$. We find that the color $2$ corner on the back face must be in the top left, since the other two choices would require the color $2$ edge cubie to be placed on an edge that is already occupied. Similar considerations force the placement of the remaining cubies of colors $3$, $4$, $5$, $6$, and $7$.

To enumerate the number of arrangements in this case, observe that we may color one face arbitrarily in $9!$ ways. We now need to decide which of the four body diagonals is to be the fixed-color one. Once this choice has been made, the rest of the arrangement is uniquely determined, giving $4\cdot9!$ arrangements.

In case 2, we choose one of the three edges incident on $a$ to be an element of $E$. The edge incident on $b$ parallel to this one cannot be in $E$, but one of the remaining two edges incident on $b$ must be chosen to be in $E$. The third element of $E$ is uniquely determined by these choices. We also find that the condition that no edge of $F$ be incident on $a$ or $b$ uniquely determines $F$ once $E$ has been specified. The edges of $E\cup F$ do not form a 6-cycle in this case. Instead, they form two disjoint paths of length $3$, one of which connects $a$ to $b$. An example is shown below.

Case 2

In this example we chose to put color $8$ on the front-left edge, incident on vertex $a$, and then on the right-bottom edge, incident on vertex $b$. The color $8$ was then forced on the back-top edge. Since color $9$ is not to be placed on an edge incident on $a$ or $b$, the $9$ on the front-bottom edge is forced. The other two $9$s are then also forced. Arbitrarily assigning colors $2$–$7$ to the six center-of-face cubies, we have $$ \begin{array}{ccccccccccccc} 1&x&x&\phantom{x}&\phantom{x}&x&4&9&\phantom{x}&\phantom{x}&x&8&x\\ 8&2&x&&&6&1&7&&&9&3&x\\ x&9&x&&&x&5&8&&&x&x&1 \end{array}. $$ The placement of colors $2$ and $3$ is then forced: $$ \begin{array}{ccccccccccccc} 1&x&x&\phantom{x}&\phantom{x}&3&4&9&\phantom{x}&\phantom{x}&x&8&2\\ 8&2&x&&&6&1&7&&&9&3&x\\ x&9&3&&&2&5&8&&&x&x&1 \end{array}. $$ Color $6$ needs to be used on a corner of the right face, only one of which is not yet assigned. This then forces color $6$ on the back-bottom edge. Similarly, the placement of color $5$ is forced: $$ \begin{array}{ccccccccccccc} 1&x&6&\phantom{x}&\phantom{x}&3&4&9&\phantom{x}&\phantom{x}&5&8&2\\ 8&2&5&&&6&1&7&&&9&3&x\\ x&9&3&&&2&5&8&&&x&6&1 \end{array}. $$ We now find that colors $4$ and $7$ can be placed in only one way, giving the first assembly above.

To enumerate the number of arrangements in case 2, observe that we may again color one face arbitrarily in $9!$ ways, and that we again need to decide which of the four body diagonals is to be the fixed-color one. Finally we need to choose among the six possibilities for the set $E$. Therefore in case 2 there are $4\cdot6\cdot9!$ ways of assembling the cube.

In case 3, we must choose the set $E$ as in case 2, but there are now three ways to choose the set $F$. (There are two ways to choose the edge in $F$ incident on $a$. If the chosen edge does not form a path with two edges of $E$, then the other two elements of $F$ are forced, as in the first picture below. If the chosen edge does connect two edges of $E$, then there are two ways to complete $F$, shown in the second and third pictures below.)

enter image description hereenter image description hereenter image description here

The first two of these are equivalent up to rotation of the cube; in these configurations, $E\cup F$ consists of two disjoint paths of length $3$. We find, however, that it is not possible to complete these configurations to a valid arrangement. For, taking the first one, we have $$ \begin{array}{ccccccccccccc} 1&9&x&\phantom{x}&\phantom{x}&x&4&x&\phantom{x}&\phantom{x}&x&8&x\\ 8&2&x&&&6&1&7&&&x&3&9\\ x&x&x&&&9&5&8&&&x&x&1 \end{array}. $$ We must now put color $2$ bottom-left corner of the back face and color $3$ on the bottom-right corner of the front face. Then color $4$ is forced to go on the front-left corner of the bottom face, which is impossible since then color $4$ would also have to go on the back-right edge, which is already occupied by color $9$.

In the third configuration, the edges of $E\cup F$ form a $6$-cycle containing corners $a$ and $b$, a condition that uniquely determines $F$ once $E$ is specified. Since there are six ways to choose $E$, there are six such 6-cycles, but they are equivalent in pairs under interchange of colors $8$ and $9$.

The configuration shown gives $$ \begin{array}{ccccccccccccc} 1&x&x&\phantom{x}&\phantom{x}&9&4&x&\phantom{x}&\phantom{x}&x&8&x\\ 8&2&x&&&6&1&7&&&x&3&9\\ x&9&x&&&x&5&8&&&x&x&1 \end{array}. $$ Color $6$, which must appear as a corner of the right face, can only go in the top-front corner. Likewise, color $7$ can only go in the back-bottom corner of the left face. Color $4$ must then go in the front-right corner of the bottom face and color $5$ in the back-left corner of the top face. The positions of colors $2$ and $3$ are then forced as well, giving the second assembly above.

To enumerate the number of arrangements in this subcase of case 3, once again we may color one face arbitrarily in $9!$ ways, and once again we need to decide which of the four body diagonals is to be the fixed-color one. Finally we need to choose among the three equivalence classes of $6$-cycles containing $a$ and $b$. Therefore in case 3 there are $4\cdot3\cdot9!$ ways of assembling the cube.

In conclusion, there are $4\cdot(1+6+3)\cdot9!$ arrangements of the $3\times3\times 3$ cube. For the $n\times n\times n$ cube, there seems to be a lot more flexibility when $n\ge4$, so I expect there to be many arrangements.

0
On

I will try to give a simple proof, by using the techniques taught in the book itself.

ENTRY Phase

  • Draw a diagram

enter image description here

  • Write down what you know

    • There are 8 cubes which are identical to each other, except for their colors. There are 2 red, 2 green, 2 blue and 2 orange cubes.
  • Be clear on what you want

    • We want to assemble as many larger 2X2 cubes from these 8 smaller cubes with the following constraint - each color should appear on each face.
    • Goal is to find the number of assemblies possible.

Specialize

Can you solve one particular case? Yes - as shown in the picture.

What else you notice? You could observe that cubes with same color are at diagonally opposite corners of the cube.

Also observe a hidden constraint that for any face to have each of the 4 colors, you need to have each of the color on all of the faces.

Attack

Can you conjecture based on the observation?

Specialize further by refining.

Conjecture:

To satisfy the given constraint, cubes of similar color has to be on diagonally opposite corners of the cube.

Visual Proof:

Let us represent positions of the smaller cubes using following matrix, with first matrix for the front face and second one for the rear face, both read from left to right. $$\begin{bmatrix}1 & 2\\3 & 4\end{bmatrix} \begin{bmatrix}5 & 6\\7 & 8\end{bmatrix}$$

  • If 2 cubes are next to each other on the same row in a face, that will violate the constraint on two faces. So (1,2) or (3,4) cannot be of same color. By symmetry, this is true for rear face as well. ie, (5,6) or (7,8) also can't be of same color.
  • If 2 cubes are diagonally opposite to each other on the same face, that will violate the constraint on that face. So (1,4) or (2,3) cannot be of same color. By symmetry, this is true for rear face as well. ie, (5,8) or (6,7) also can't be of same color.
  • By symmetry after rotation, it can be argued that 1,6 can't be of same color. Similarly, (2,5), (3,8) and (4,7) can't be of the same color.
  • Therefore same color pieces have to be in positions (1,8), (2,7), (3,6) and (4,5).

If we fix a given color, say blue at position 1, there are 24 combinations possible. If we swap blue with 3 other colors, there are another $24 \cdot 3$ possibilities.

So a total of $24 \cdot 4 = 96$ combinations are possible, which is the final answer.