The correct option is A 18
Total number of smaller cubes
=4×4×41×1×1=64
n=sideofbigcubesideofsmallcube=41=4.
Number of smaller cubes having no side painted = Number of smaller cubes from inside the cube + Number of smaller cubes at 2 surfaces + Number of smaller cubes at one edge
=(n−2)3+(n−2)2×2+(n−2)×1
=8+8+2=18.