Answer:
B.
![6n^2-12 n +8](https://img.qammunity.org/2020/formulas/mathematics/high-school/75zjddaack9ft30g0v5vwj95h4kgcdbz4x.png)
Explanation:
Given,
The number of smaller cubes =
![n^3](https://img.qammunity.org/2020/formulas/computers-and-technology/college/2tvr96c7rnmnugp8k0fxm4a8ig0qv1k58a.png)
So, the number of cubes that have no coloured faces. =
,
Note : If a cube painted outside having side n is split into n³ cubes, then the volume volume that is not painted = (n-2)³
Thus, the remaining cubes that have been painted red on at least one of their faces
= Total cubes - cubes with no painted face
![= n^3 -(n-2)^3](https://img.qammunity.org/2020/formulas/mathematics/high-school/sb9m1xxf6t6cuvunlz8c2wt2bi9fzpoag4.png)
![=n^3 - (n^3 - 8 - 6n^2 +12n)](https://img.qammunity.org/2020/formulas/mathematics/high-school/f3w2s4a3hpo9nbcb9xwyzptlsiuiknlyd9.png)
![=6n^2-12 n +8](https://img.qammunity.org/2020/formulas/mathematics/high-school/k5fnynoh3rtjqclrgdimyntte1xlfsuv8s.png)
Hence, OPTION B is correct.