Painted Cube

No of cubes

Size of cube

No. of cubes with 6 red faces

No. of cubes with 5 red faces

No. of cubes with 4 red faces

No. of cubes with 3 red faces

27

3 x 3 x 3

1

6

12

8

64

4 x 4 x 4

8

24

24

8

125

5 x 5 x 5

27

54

36

8

216

6 x 6 x 6

64

96

48

8

 

 

 

 

 

 

 

 

 

 

 

 

1000

10 x 10 x 10

512

384

96

8

12167

23 x 23 x 23

9261

2646

252

8

 

n by n by n

(n-2)^3

6(n-2)^2

12(n-2)

8