give expressions in the variable n, n ≥ 3 for the number of sugar cubes in the n*n*n cube with 0,1,2, or 3 painted faces, respectively

number with one side = 6 (n-2)(n-2) because 6 sides, only those off the edges.

number with two sides = number of edges * n - number of corners = 12n -8

number with 3 sides = number of corners = 8