Finding Number of cubes painted with its sides:
No Side Painted Cubes : (n-2) ^ 3
One Side Painted Cubes : 6 * (n-2) ^ 2
Two Side Painted Cubes : 12 * (n-2)
Three Side Painted Cubes : Its Always 8
Example:
If a Cube is 3X3 Cube Then,
No side Painted is : (3-2)^3=1
One side Painted : 6*(3-2)^2=6
Two side Painted : 12*(3-2)=
12
Three side Painted : 8
Last Updated Date: September 25, 2012
If you have any queries post it in Comments..