Question 20
A wooden cube with edge length $n$ units (where $n$ is an integer $\gt2$) is painted black all over. By slices parallel to its faces, the cube is cut into $n^3$ smaller cubes each of unit edge length. If the number of smaller cubes with just one face painted black is equal to the number of smaller cubes completely free of paint, what is $n?$