What it is
A big cube is painted on every face, then cut into n × n × n equal small cubes. How many small cubes have paint on exactly 3, 2, 1 or 0 faces?
How to solve it
Think about where each small cube sits:
- Corners have 3 painted faces. A cube has 8 corners, always.
- Edges (not corners) have 2 painted faces. There are 12 edges, each with n − 2 such cubes: 12(n − 2).
- Face centres (not on an edge) have 1 painted face. 6 faces, each with (n − 2)² such cubes: 6(n − 2)².
- The inside has no paint: (n − 2)³.
Check: 8 + 12(n − 2) + 6(n − 2)² + (n − 2)³ = n³.
Tips and shortcuts
- Subtract 2 from n for everything except the corners: the two end cubes on each edge are corners.
- Learn for n = 3, 4, 5:
- 3: 8, 12, 6, 1
- 4: 8, 24, 24, 8
- 5: 8, 36, 54, 27
- Total cubes given? Take the cube root to get n: 125 small cubes means n = 5.
- A face painted in two colours changes the question; read carefully.
Solved examples
Example 1 (easy): no paint
A painted cube is cut into 64 small cubes. How many have no paint?
n = 4. (4 − 2)³ = 8.
Example 2 (medium): two faces
A painted cube is cut into 216 small cubes. How many have exactly two painted faces?
n = 6. 12 × 4 = 48.
Example 3 (hard): one face
A painted cube is cut into 512 small cubes. How many have exactly one painted face?
n = 8. 6 × 6² = 216.
Example 4 (medium): three faces
A painted cube is cut into 1,000 small cubes. How many have three painted faces?
Always the corners: 8.
Example 5 (hard): painted on two opposite faces only
A cube painted on two opposite faces is cut into 27 small cubes. How many have no paint?
n = 3. The two painted faces cover 9 cubes each; the middle layer of 9 cubes has no paint. 9.