Cutting a painted cube
A cube is painted on the outside and then cut into equal small cubes. The question asks how many small cubes have three painted faces, or two, or one, or none. It looks like a counting job. It is not. The paint is only on the outer surface, so the number of painted faces on a small cube depends on one thing: where that small cube sits in the big cube.
The four positions
Say the cube is cut into n small cubes along every edge, so there are n × n × n small cubes in all. Every small cube is in exactly one of four positions.
- Corner. Three of its faces are on the outside, so three faces are painted. A cube has 8 corners, so there are always 8 of these, whatever n is.
- Edge, but not a corner. Two faces are on the outside. Each edge holds n small cubes. Remove the corner at each end and n − 2 are left. A cube has 12 edges, so the count is 12 × (n − 2).
- Face, but not on an edge. Only one face is on the outside. On each face these cubes form a smaller square of side n − 2, which is (n − 2)² cubes. A cube has 6 faces, so the count is 6 × (n − 2)².
- Inside. No face is on the outside, so there is no paint. Peel one layer off every side and a smaller cube of side n − 2 is left: (n − 2)³ cubes.
The whole method is in the phrase "take away two". Two ends come off every edge, so n becomes n − 2. Then an edge gives n − 2, a face gives its square, and the inside gives its cube.
Two worked examples
Cut into 3 × 3 × 3. Here n − 2 = 1.
- Three painted faces: 8
- Two painted faces: 12 × 1 = 12
- One painted face: 6 × 1 = 6
- No paint: 1
Check: 8 + 12 + 6 + 1 = 27, and 3 × 3 × 3 = 27.
Cut into 4 × 4 × 4. Here n − 2 = 2.
- Three painted faces: 8
- Two painted faces: 12 × 2 = 24
- One painted face: 6 × 4 = 24
- No paint: 2 × 2 × 2 = 8
Check: 8 + 24 + 24 + 8 = 64, and 4 × 4 × 4 = 64.
Always run this check. The four counts must add up to n³. If they do not, one of them is wrong.
The table
| Painted faces | Where the cube sits | Count | n = 3 | n = 4 | n = 5 |
|---|---|---|---|---|---|
| 3 | corner | 8 | 8 | 8 | 8 |
| 2 | edge, not corner | 12 × (n − 2) | 12 | 24 | 36 |
| 1 | middle of a face | 6 × (n − 2)² | 6 | 24 | 54 |
| 0 | inside | (n − 2)³ | 1 | 8 | 27 |
| total | n³ | 27 | 64 | 125 |
At least one painted face
Do not add the three painted kinds. Subtract instead: at least one painted face = total − inside. For 4 × 4 × 4 that is 64 − 8 = 56. For 6 × 6 × 6 it is 216 − 64 = 152.
A question may hide the inside cubes behind other words. "Cubes surrounded by other cubes on every side" are the inside cubes. So a block of 125 cubes has 3 × 3 × 3 = 27 of them.
Counting the cuts
To get n layers in one direction you need n − 1 cuts, just as two cuts divide a loaf into three pieces. There are three directions, so an n × n × n cutting needs 3 × (n − 1) cuts. For 27 pieces that is 2 + 2 + 2 = 6 cuts. For 64 pieces it is 3 + 3 + 3 = 9. This assumes the pieces stay where they are between cuts and are not restacked, so each cut is one straight slice through the whole block.
If the pieces need not be cubes, the three directions can have different numbers of layers. Sixty equal pieces can come from 3 × 4 × 5 layers, which needs 2 + 3 + 4 = 9 cuts. The fewest cuts come from the most even split.
Different colours, or only some faces painted
No new formula is needed. Go back to position and reason face by face.
Take a cube cut into 4 × 4 × 4. The top and bottom are red, the front and back are green, and the other two faces are black. How many small cubes carry red and green and nothing else? Such a cube must lie on an edge where a red face meets a green face, and it must not be a corner, because a corner also touches black. Red meets green along 4 edges. Each edge has n − 2 = 2 middle cubes. The answer is 4 × 2 = 8.
How many carry only red? They sit in the middle of a red face: (n − 2)² = 4 on each of the 2 red faces, so 8.
When only some faces are painted, the fixed counts no longer hold. If only the top and bottom of a 3 × 3 × 3 cube are painted, the whole middle layer of 9 cubes has no paint, not just 1. Count layer by layer.
A cuboid
The same idea works, one side at a time. For a painted cuboid of 6 × 4 × 3 cut into unit cubes, the cubes with no paint form a block with 2 taken off every side: 4 × 2 × 1 = 8. The corners are still 8. If one side is only 2 cubes long, that side gives 2 − 2 = 0, so no cube is free of paint.
Where students slip
- Using n instead of n − 2. On a 4 × 4 × 4 cube, an edge has 4 cubes, but two of them are corners. Only 2 have exactly two painted faces.
- Mixing up the multipliers. 8 goes with corners, 12 with edges, 6 with faces. Picture the cube: 8 corners, 12 edges, 6 faces.
- Taking the number of pieces as n. "Cut into 64 small cubes" means n = 4, not 64. Find n first.
- Cuts equal to layers. Four layers need three cuts, not four.
- Counting corners in a colour question. A cube with only two colours cannot be a corner when all three pairs of faces are painted.
- Skipping the check. Adding the four counts takes five seconds and catches most mistakes.
How to practise
Draw a 3 × 3 × 3 cube once and mark one corner cube, one edge cube and one face-centre cube. Then write the four counts for n = 3, 4, 5 and 6 without looking at the table, and check each row against n³. After that, change the paint: only two opposite faces, then three pairs in three colours, then a cuboid. For each, say aloud where the cube you want must sit before you count anything. When the position is clear, the count takes a few seconds.