UPSC CSAT 2023 Q79: Painted Cuboid Cut into Unit Cubes — Solved

A cuboid of dimensions 7 cm × 5 cm × 3 cm is painted red, green and blue colour on each pair of opposite faces of dimensions 7 cm × 5 cm, 5 cm × 3 cm, 7 cm × 3 cm respectively. Then the cuboid is cut and separated into various cubes each of side length 1 cm. Which of the following statements is/are correct?

1. There are exactly 15 small cubes with no paint on any face.

2. There are exactly 6 small cubes with exactly two faces, one painted with blue and the other with green.

Select the correct answer using the code given below:

  1. 1 only
  2. 2 only
  3. Both 1 and 2
  4. Neither 1 nor 2

Answer: (a) 1 only

Solution

  1. Fix the colours to the dimensions. Red is on the two 7 × 5 faces, so red is the top and bottom and height = 3. Green is on the two 5 × 3 faces, so green is the pair of ends that cut across the length of 7. Blue is on the two 7 × 3 faces, so blue is the pair of sides that cut across the width of 5.
  2. Count the small cubes. 7 × 5 × 3 = 105 cubes of side 1 cm.
  3. Statement 1: cubes with no paint. These cubes do not touch any outer face. Remove one layer from each end of every dimension: (7 − 2) × (5 − 2) × (3 − 2) = 5 × 3 × 1 = 15. So there are exactly 15 unpainted cubes. Statement 1 is correct.
  4. Statement 2: cubes with exactly two painted faces, one blue and one green. A cube with exactly two painted faces sits on an edge of the cuboid but not at a corner. The two colours on it are the colours of the two faces that meet at that edge.
  5. Find where blue meets green. A green face (5 × 3) and a blue face (7 × 3) share only the side of length 3. So blue and green meet along the vertical edges of length 3. The cuboid has 4 such edges.
  6. Count the non-corner cubes on one such edge. The edge holds 3 cubes. The 2 end cubes are corners and have 3 painted faces (red, green, blue). That leaves 3 − 2 = 1 cube with exactly two faces painted, one blue and one green.
  7. Total blue–green cubes = 4 edges × 1 = 4, not 6. Statement 2 is incorrect.
  8. Cross-check with all edge cubes. Edges of length 7 (red meets blue): 4 × (7 − 2) = 20. Edges of length 5 (red meets green): 4 × (5 − 2) = 12. Edges of length 3 (blue meets green): 4 × (3 − 2) = 4. Total two-face cubes = 36. This matches the standard formula 4 × [(7 − 2) + (5 − 2) + (3 − 2)] = 4 × 9 = 36.
  9. Only Statement 1 is correct. Answer: 1 only.

Option-wise explanation

  • a: correct — Statement 1 holds: (7 − 2)(5 − 2)(3 − 2) = 15 unpainted cubes. Statement 2 fails: blue and green meet only on the four edges of length 3, and each gives 3 − 2 = 1 cube, so there are 4 such cubes, not 6.
  • b: incorrect — This needs exactly 6 blue–green cubes, but the count is 4 × (3 − 2) = 4. It also rejects Statement 1, which is correct, since 5 × 3 × 1 = 15.
  • c: incorrect — Statement 2 is false. The trap is counting every cube on the four length-3 edges (4 × 3 = 12), or counting 2 cubes per edge, instead of removing the two corner cubes from each edge, which leaves 1 per edge and 4 in total.
  • d: incorrect — Statement 1 is correct. The trap is taking 2 off only some of the dimensions (for example 7 × 5 × 1 = 35, or 5 × 3 × 3 = 45) instead of taking 2 off all three.

How to eliminate

Do Statement 1 first. It is one line: (7 − 2)(5 − 2)(3 − 2) = 15. It is true, so the answer is either '1 only' or 'Both'. Two options are gone at once.

For Statement 2, ask one question: which side length do the blue face (7 × 3) and the green face (5 × 3) share? The common number is 3, so they meet along the edges of length 3. Each such edge gives 3 − 2 = 1 non-corner cube, and there are 4 such edges, so the count is 4. That is not 6, so the answer is '1 only'.

Shortcut rule: the edge where two colours meet always has the length that their two face dimensions share. You never need to draw the full cuboid.

Time: about 45–60 seconds. Attempt it in the first round. It needs only n − 2 counting and no heavy arithmetic.

Know more

Painted cuboid a × b × c, cut into unit cubes

Take 2 off a dimension for its two painted ends. On an edge, the 2 end cubes are corners.

Painted faces Where the cubes are Count
3 corners 8
2 edges, not corners 4[(a−2)+(b−2)+(c−2)]
1 face centres 2[(a−2)(b−2)+(b−2)(c−2)+(c−2)(a−2)]
0 interior (a−2)(b−2)(c−2)

The four counts add up to abc.

When faces have different colours. The cubes painted with two particular colours lie on the edges where those two faces meet. That edge has the length the two faces share. There are 4 such edges, so the count is 4 × (shared length − 2).

Worked variant. A cuboid of 6 × 4 × 5 has yellow on the 6 × 4 faces and black on the 4 × 5 faces. How many cubes are exactly yellow + black? The shared length is 4, so the count is 4 × (4 − 2) = 8. Unpainted cubes: 4 × 2 × 3 = 24. Exactly two faces painted: 4 × (4 + 2 + 3) = 36. Check the total: 8 corners + 36 + one-face 2(4×2 + 2×3 + 3×4) = 52, + 24 unpainted = 120 = 6 × 4 × 5. ✓

Edge cases. If a dimension is 1, the cuboid is a single layer. The n − 2 rule then gives negative numbers, so count those cubes directly. If a dimension is 2, there are no interior cubes in that direction.