ExamSaathi learning library · Government exams · SSC CGL general intelligence and reasoning; published syllabus labelled 2024 · General intelligence and reasoning

Cube cutting and painting: counting small cubes with painted faces

Count the corner, edge, face and hidden small cubes of a painted cube or cuboid, the cuts needed, the most pieces from a set number of cuts, and the cubes with given colours or from a cube painted on only some faces.

Status: original pilot lesson. Teacher review is pending. It is not a complete course or official exam material.

You will learn to

Before you start

Imagine a solid wooden cube whose outside is painted. It is cut, with straight cuts parallel to its faces, into equal small cubes, n of them along every edge. That gives n layers, each an n by n square of small cubes, so n x n x n = n^3 small cubes in all. A cube has 6 faces, 12 edges and 8 corners. A small cube can show paint only on sides that were on the outside of the big cube, so its place decides its paint: at a corner it touches three outer faces, along an edge two, in the middle of a face one, and deep inside none. In this lesson n is the number of small cubes along one edge, never the total; for 216 small cubes, n is the cube root, 6. Every count is a whole number, and x means multiply.

Corner, edge, face and hidden cubes

Let a cube painted on all six faces be cut with n at least 2. Three painted faces: the 8 corner cubes, whatever n is. Exactly two: along each edge, the cubes between its two corners, n - 2 per edge, so 12(n - 2) in all. Exactly one: the middle part of each face, a square of (n - 2) by (n - 2), so 6(n - 2)^2. None: the hidden block inside, (n - 2)^3. The four groups must add up to the whole: 8 + 12(n - 2) + 6(n - 2)^2 + (n - 2)^3 = n^3. For n = 5 the groups are 8, 36, 54 and 27, and 8 + 36 + 54 + 27 = 125. For n = 2 every small cube is a corner. Cubes with at least one painted face number n^3 - (n - 2)^3, which is 125 - 27 = 98 for n = 5.

Counting cuts and the most pieces

Here a cut is one flat slice right through the block, parallel to a pair of faces, and the pieces are not moved or stacked between cuts. To make n equal pieces along an edge you need n - 1 cuts in that direction, and a cube has three directions, so n^3 equal small cubes need 3(n - 1) cuts; 64 cubes (n = 4) need 9. With a cuts in one direction, b in the second and c in the third, the block falls into (a + 1)(b + 1)(c + 1) pieces. For a fixed total of cuts this product is largest when a, b and c are as equal as possible. With 7 cuts, 2, 2 and 3 give 3 x 3 x 4 = 36 pieces, while 1, 3 and 3 give 2 x 4 x 4 = 32, and all 7 in one direction give just 8.

Cuboids, and faces painted in colour pairs

A cuboid built from l x b x h unit cubes, with each of l, b and h at least 2 and paint on all faces, works the same way. Corners: 8. Exactly two painted faces: four edges hold l - 2 such cubes each, four hold b - 2 and four hold h - 2, so 4(l - 2) + 4(b - 2) + 4(h - 2). Exactly one: 2[(l - 2)(b - 2) + (b - 2)(h - 2) + (l - 2)(h - 2)]. None: (l - 2)(b - 2)(h - 2). Now paint a cube's top and bottom red, its front and back blue, and its left and right green. Opposite faces never meet, so each edge joins two different colours. Each red face meets each blue face along one edge, so 4 edges are red-blue and 4(n - 2) small cubes carry red and blue only. Every corner touches one face of each pair, so it has all three colours. A cube with red only sits in the middle of a red face: 2(n - 2)^2 of them.

A cube painted on some faces only

When some faces are left bare, the all-faces counts fail; ask, for each group of small cubes, which of its outer sides were painted. Take n = 5, with the four side faces painted and the top and bottom bare. No small cube has three painted faces, since every corner also touches a bare face. The 4 upright edges hold 5 cubes each with two painted sides, so 20 have two. Each side face has 25 cubes, 10 of them on its two upright edges, so 15 have one painted face, and 4 x 15 = 60 in all. The rest, 125 - 20 - 60 = 45, have none: a 3 by 3 block running through all 5 layers.

Common mistakes

Taking n as the total: for 343 small cubes n = 7, not 343. Writing 12n or 12(n - 1) for the two-face cubes, or 6n^2 for the one-face cubes, which counts corners and edges again. Saying n cuts are needed in each direction instead of n - 1. Sharing cuts unevenly when the most pieces are wanted. Using cube counts for a cuboid with unequal sides. Reusing all-faces counts when some faces are bare; a bare face also takes paint away from the corners and edges next to it.

A routine for painted cube questions

1. Find n, the cube root of the total, or l, b and h. 2. Note which faces are painted, and in which colours. 3. Sort the small cubes into corners, edge cubes, face cubes and hidden cubes. 4. Count the painted sides of each group: 8, 12(n - 2), 6(n - 2)^2 and (n - 2)^3 when every face is painted, or the cuboid versions. 5. Add the groups and confirm the total is n^3 or l x b x h. 6. For cuts, use n - 1 per direction, and share a fixed number of cuts as equally as possible.

Worked examples

  1. A big wooden cube painted on all six faces is cut into 343 equal small cubes. How many cuts are needed, and how many small cubes have exactly two, exactly one and no painted faces?

    1. 343 = 7 x 7 x 7, so n = 7 and n - 2 = 5.
    2. Cuts: 7 - 1 = 6 in each of the three directions, 3 x 6 = 18 in all.
    3. Two painted faces: 12 x 5 = 60. One: 6 x 5^2 = 150. None: 5^3 = 125.
    4. Check: 8 corners + 60 + 150 + 125 = 343.

    Answer: 18 cuts; 60 cubes have two painted faces, 150 have one and 125 have none.

  2. A carpenter in Jaipur paints a block of 5 x 4 x 3 unit cubes (5 long, 4 wide, 3 high) on all its faces and takes it apart. How many unit cubes have exactly two, exactly one and no painted faces?

    1. l - 2 = 3, b - 2 = 2 and h - 2 = 1.
    2. Two painted faces: 4 x 3 + 4 x 2 + 4 x 1 = 24.
    3. One painted face: 2 x (3 x 2 + 2 x 1 + 3 x 1) = 2 x 11 = 22.
    4. None: 3 x 2 x 1 = 6. Check: 8 + 24 + 22 + 6 = 60 = 5 x 4 x 3.

    Answer: 24 cubes have two painted faces, 22 have one and 6 have none.

  3. A cube has its top and bottom painted red, front and back blue, and left and right green. It is cut into 125 equal small cubes. How many small cubes carry red and blue only, and how many carry green only?

    1. 125 = 5 x 5 x 5, so n = 5 and n - 2 = 3.
    2. Red and blue only: the non-corner cubes on the 4 red-blue edges, 4 x 3 = 12.
    3. Green only: the middle cubes of the 2 green faces, 2 x 3^2 = 18.
    4. The 8 corners carry all three colours, so they are in neither group.

    Answer: 12 small cubes are red and blue only, and 18 are green only.

Practice checks

  1. A cube painted on all faces is cut into 512 equal small cubes. How many of them have exactly two painted faces?
  2. Straight cuts are made through a cube, each parallel to a pair of faces, and the pieces are not moved between cuts. What is the largest number of pieces that 8 such cuts can give?
  3. A cube has its top and bottom red, front and back blue, and left and right green. It is cut into 216 equal small cubes. How many small cubes have red and green paint but no blue?
  4. A cube stands on the floor. Its top and four side faces are painted, the bottom is left bare, and it is cut into 64 equal small cubes. How many small cubes have no paint at all?
  5. A cuboid of 6 x 5 x 4 unit cubes is painted on all its faces and then taken apart. How many unit cubes have exactly one painted face?

Sources checked