A solid, n-inch cube of wood is coated with blue paint on all six sides.

Then the cube is cut into smaller one-inch cubes. These new one-inch cubes will have either Three blue sides, Two blue sides, One blue side, or No blue sides.

How many of each type 1 – inch cube will there be?

### Solution:

This puzzle can be solved logically or mathematically.

After cutting,

total no of cubes will be: n*n*n = n^3

Then,

Number of each type of cube can be found out by using the following formulas:

- 1 sided painted =
**6 * (n-2)^2** - 2 sided painted =
**12 *(n-2 )** - 3 sided painted =
**Always 8**(a cube has 8 corner) - No sided painted =
**(n-2)^3**

### Examples:

**Question 1:**

A solid, 4-inch cube of wood is coated with blue paint on all six sides.Then the cube is cut into smaller one-inch cubes.These new one-inch cubes will have either Three blue sides, Two blue sides, One blue side, or No blue sides.then How many of each 1-inch cube will there be?

**Solution:**

given n=4 then

No sided painted =**(4-2)^3 ** =>8

1 sided painted =**6 * (n-2)^2 ** =>24

2 sided painted = **12 *(n-2 ) ** => 24

3 sided painted = **Always 8** (a cube has 8 corner)

**Question 2:**

A solid, 8-inch cube of wood is coated with blue paint on all six sides.Then the cube is cut into smaller one-inch cubes.These new one-inch cubes will have either Three blue sides, Two blue sides, One blue side, or No blue sides.then How many of each 1-inch cube will there be?

**Solution:**

given n=8 then

No sided painted =**(8-2)^3 ** =>216

1 sided painted =**6 * (n-2)^2 ** =>216

2 sided painted = **12 *(n-2 ) ** => 72

3 sided painted = **Always 8** (a cube has 8 corner)

**Question 3:**

when 64 inch cube cut into smaller 4 inch cube then **n=given_size/cutting_size**

for given question

n=64/4 =16

then

No sided painted =**(16-2)^3 ** =>2744

1 sided painted =**6 * (16-2)^2 ** =>1176

2 sided painted = **12 *(n-2 ) ** => 168

3 sided painted = **Always 8** (a cube has 8 corner)

Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the **DSA Self Paced Course** at a student-friendly price and become industry ready.

## Recommended Posts:

- Puzzle 31 | (Minimum cut Puzzle)
- Puzzle 47 | Red Hat vs Blue Hat
- The Blue – eyed Island puzzle
- Puzzle | 50 red marbles and 50 blue marbles
- Percentage increase in volume of the cube if a side of cube is increased by a given percentage
- Puzzle | 3 cuts to cut round cake into 8 equal pieces
- Puzzle | Maximum pieces that can be cut from a Circle using 6 straight lines
- Puzzle | Six colored cube
- Paper Cut into Minimum Number of Squares
- Maximum of smallest possible area that can get with exactly k cut of given rectangular
- Minimum squares to evenly cut a rectangle
- Maximum given sized rectangles that can be cut out of a sheet of paper
- Find if there exists multiple ways to draw line through (x, y) to cut rectangle in equal halfs
- Number of ways to cut a stick of length N into in even length at most K units long pieces
- Puzzle 15 | (Camel and Banana Puzzle)
- Puzzle 24 | (10 Coins Puzzle)
- Puzzle 27 | (Hourglasses Puzzle)
- Puzzle 28 | (Newspaper Puzzle)
- Puzzle 29 | (Car Wheel Puzzle)
- Puzzle 33 | ( Rs 500 Note Puzzle )

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.