A cube is painted yellow on all its faces and then cut into 64 identical small cubes, as shown.
How many small cubes have exactly one face painted?
Given: n = 4 (since 4³ = 64).
One face: the middle part of each of the 6 faces.
Each face has (n − 2)² = 2² = 4.
6 × 4 = 24.
Answer: 24