TECHNOLOGIESTieInn Technologies

Cubes and dice

Cubes: a painted cube cut into small cubes

6 min read · 8 practice questions · free

Useful for:IT testsBanksSSC / Railways

What it is

A big cube is painted on every face, then cut into n × n × n equal small cubes. How many small cubes have paint on exactly 3, 2, 1 or 0 faces?

How to solve it

Think about where each small cube sits:

  • Corners have 3 painted faces. A cube has 8 corners, always.
  • Edges (not corners) have 2 painted faces. There are 12 edges, each with n − 2 such cubes: 12(n − 2).
  • Face centres (not on an edge) have 1 painted face. 6 faces, each with (n − 2)² such cubes: 6(n − 2)².
  • The inside has no paint: (n − 2)³.

Check: 8 + 12(n − 2) + 6(n − 2)² + (n − 2)³ = n³.

Tips and shortcuts

  • Subtract 2 from n for everything except the corners: the two end cubes on each edge are corners.
  • Learn for n = 3, 4, 5:
    • 3: 8, 12, 6, 1
    • 4: 8, 24, 24, 8
    • 5: 8, 36, 54, 27
  • Total cubes given? Take the cube root to get n: 125 small cubes means n = 5.
  • A face painted in two colours changes the question; read carefully.

Solved examples

Example 1 (easy): no paint

A painted cube is cut into 64 small cubes. How many have no paint?

n = 4. (4 − 2)³ = 8.

Example 2 (medium): two faces

A painted cube is cut into 216 small cubes. How many have exactly two painted faces?

n = 6. 12 × 4 = 48.

Example 3 (hard): one face

A painted cube is cut into 512 small cubes. How many have exactly one painted face?

n = 8. 6 × 6² = 216.

Example 4 (medium): three faces

A painted cube is cut into 1,000 small cubes. How many have three painted faces?

Always the corners: 8.

Example 5 (hard): painted on two opposite faces only

A cube painted on two opposite faces is cut into 27 small cubes. How many have no paint?

n = 3. The two painted faces cover 9 cubes each; the middle layer of 9 cubes has no paint. 9.

Try it

Pick an answer and press Check. Generated questions get new numbers every time you ask.

  1. Question 1easy

    A cube is painted on all faces and then cut into 64 equal small cubes (4 along each edge). How many small cubes have no face painted?

  2. Question 2easy

    A cube is painted on all faces and then cut into 729 equal small cubes (9 along each edge). How many small cubes have no face painted?

  3. Question 3easy

    A cube is painted on all faces and then cut into 1000 equal small cubes (10 along each edge). How many small cubes have no face painted?

  4. Question 4medium

    A cube is painted on all faces and then cut into 64 equal small cubes (4 along each edge). How many small cubes have exactly two faces painted?

  5. Question 5medium

    A cube is painted on all faces and then cut into 729 equal small cubes (9 along each edge). How many small cubes have exactly two faces painted?

  6. Question 6medium

    A cube is painted on all faces and then cut into 343 equal small cubes (7 along each edge). How many small cubes have exactly two faces painted?

  7. Question 7hard

    A cube is painted on all faces and then cut into 343 equal small cubes (7 along each edge). How many small cubes have exactly one face painted?

  8. Question 8hard

    A cube is painted on all faces and then cut into 64 equal small cubes (4 along each edge). How many small cubes have exactly one face painted?

Ready for a timed set?

Fresh questions on just this problem type, with a score and every explanation at the end. Free.

Test me on this →