Cube Coloring

Suppose we have a 3X3X3 cube. Dip the cube in red paint and split it into 27 cubes each with size 1X1X1. How many of the 1X1X1 cubes are painted on exactly two faces?

A cube has 8 vertices, 12 edges and 6 faces.  Since three faces meet at each of the 8 vertices in a cube, the eight 1X1X1 cubes at each vertex will have 3 faces painted.  Cubes with two faces painted are the cubes corresponding to the 12 edges of the 3X3X3 cube.  Six of the 1X1X1 cubes in each face of the 3X3X3 are painted one face.

The number of 1X1X1 cubes with:

3 faces painted = 8

2 faces painted = 12                                                                             

1 face painted = 6

No faces painted=1

So there are twelve 1X1X1 cubes with two faces painted.




It is clear that the vertices, edges and the faces of the cube play a major role in finding the painted faces when splitting a 3X3X3 cube into 27 1X1X1 cubes.

Is it possible to generalize this? Yes. For any integer N>= 3, consider the NxNxN cube. Paint this cube and then split it into 1X1X1 cubes. Clearly we will get N3  1X1X1 cubes.

The number of 1X1X1 cubes with:

3 faces painted = 8

2 faces painted = 12(N-2)

1 face painted   =  6(N-2)^{2}

No faces painted=(N-2)^{3}

We can see that 


We will look at example now. Take N=5. Then the cube is 5X5x5. After painting, we will get 125 1X1X1 cubes.

The number of 1X1X1 cubes with:

3 faces painted = 8

2 faces painted = 12(N-2) = 12(5-2)=36

1 face painted   = 6(N-2)^{2}   = 6(5-2)2=54

No faces painted= (N-2)^{3}  = (5-2)3 = 27.

We will look at some problems based on this concept.

  1. In a birthday party, an NxNxN cubical special cake frosted on all 6 faces was cut into 1X1X1 cakes and distributed to all the participants. The number of people who got the cakes with no frost in it was 8 times the number of people who received the cakes with 3 faces frosted. How many people were there in the party?

Solution:  Since there are 8 cakes with 3 faces frosted(the vertices), the number of people who got cakes with no frost is 8X8 = 64.

So, (N-2)^{3}  = 64 = 43

So, N=6.

Therefore: NxNxN  = 6X6X6 = 216

Number of people in the party is 216.

Try these problems:

     2. A cube of cheese is 4 cm wide, 4 cm long and 4 cm high. Three faces of the cube that meet in a corner are covered with thin layer of wax. The cheese is then cut into 64 small cubes with sides of length 1 cm. How many of these small cubes have no wax on them?

     3. A cubical box without a top is 4 cm on each edge. It contains 64 identical 1-cm cubes that exactly fill the box. How many of these small cubes actually touch the box?