The classic question takes a large cube, paints all six faces, cuts it into n × n × n equal small cubes, and asks how many small cubes have three, two, one or no painted faces. You do not need to picture all the small cubes. Every small cube is in exactly one of four places, and each place has a fixed number of painted faces.
- Corners touch three outer faces, so they have 3 painted faces. A cube always has 8 corners.
- Edges, excluding the corners, touch two faces: 2 painted faces. Each of the 12 edges has n − 2 such cubes.
- Face centres, away from edges, touch one face: 1 painted face. Each of the 6 faces has (n − 2)² of them.
- Core cubes are hidden inside: 0 painted faces. They form an inner cube of side n − 2.