PYQ Vault

IMAT Logical Reasoning · Spatial and Sequence Reasoning

Painted Cubes, Cube Nets and Views of Solids

A large cube cut into small cubes splits into corners, edges, faces and a hidden core; a net folds into a cube with fixed opposite faces; a stack of cubes can be read from a grid of heights.

Why this matters

A 2024 ministry question asked how many small blocks of a painted cube carry paint. Cambridge questions asked which net folds into a given solid (2014), which views of a solid are possible (2014, 2017, 2018) and how many different ways the sides of a box can be coloured (2016).

Concept 1 of 3: Painted cubes: how many small cubes have 0, 1, 2 or 3 painted faces

Paint the outside of a big cube made of n×n×nn \times n \times n small cubes. The corner cubes show three faces, the cubes along the edges show two, the cubes in the middle of each face show one, and the cubes inside show none. Peel off one layer from every side and what is left is the unpainted core, a cube of side n−2n - 2.

Definition

For a painted cube of n×n×nn \times n \times n small cubes (n≥2n \ge 2):

  • 3 painted faces: the 8 corners.
  • 2 painted faces: n−2n - 2 on each of the 12 edges.
  • 1 painted face: an (n−2)×(n−2)(n-2) \times (n-2) square on each of the 6 faces.
  • 0 painted faces: the core, (n−2)3(n - 2)^3.
  • At least one painted face: everything except the core, n3−(n−2)3n^3 - (n - 2)^3.
  • If you are told the number of blocks, nn is its cube root (64 blocks give n=4n = 4).

Painted n × n × n cube

8  +  12(n−2)  +  6(n−2)2  +  (n−2)3  =  n38 \;+\; 12(n-2) \;+\; 6(n-2)^2 \;+\; (n-2)^3 \;=\; n^3
  • 88corners, 3 faces painted
  • 12(n−2)12(n-2)edge cubes, 2 faces painted
  • 6(n−2)26(n-2)^2face cubes, 1 face painted
  • (n−2)3(n-2)^3core, no paint

Worked example

A cube built from 125 small cubes is dipped in paint. How many small cubes have 3, 2, 1 and 0 painted faces?
Practice this conceptself-check · 3 quick reps

"At least one face" includes the corners and edges

The quickest route is total minus the hidden core: n3−(n−2)3n^3 - (n-2)^3. Answering with only the one-face cubes, or with the core itself, gives two of the usual wrong options.

Concept 2 of 3: Nets of a cube and finding opposite faces

A net is a cube cut along some edges and laid flat: six squares joined edge to edge. When you fold it back, squares that share an edge become neighbours, and squares in a straight line with exactly one square between them end up facing each other. Every face has exactly one opposite, so once two pairs are found, the last two faces are the third pair.

Definition

  • A net of a cube is six squares joined edge to edge that fold into a cube. There are 11 different nets.
  • Two squares sharing an edge in the net are adjacent faces of the cube.
  • Two squares in the same straight row or column with exactly one square between them are opposite faces.
  • Each face has 4 neighbours and 1 opposite face, so the three opposite pairs use all six faces.
  • Four squares in a row fold into a ring: the 1st and 3rd are opposite, and so are the 2nd and 4th.

Worked example

A net has a column of four squares numbered 1, 2, 3, 4 from top to bottom, with square 5 joined to the left of square 2 and square 6 joined to the right of square 2:
152634\begin{array}{ccc} & \boxed{1} & \\ \boxed{5} & \boxed{2} & \boxed{6} \\ & \boxed{3} & \\ & \boxed{4} & \end{array}
Which faces are opposite each other?
Practice this conceptself-check · 4 quick reps

Neighbours in the net are never opposite

Two squares that share an edge in the net always end up as neighbouring faces of the cube. The opposite face is two steps away in a straight line, or is found by elimination once the other two pairs are known.

Concept 3 of 3: Views of a stack of cubes: front, side and top

A stack of cubes on a grid can be written as a grid of numbers, each number saying how many cubes stand on that square. From the front you see the tallest stack in each column, because a tall stack hides the shorter ones behind it. From above you see every square that holds at least one cube.

Definition

Write the stack as a height map: a grid with the number of cubes on each square (back row at the top).

  • Number of cubes: the sum of all the numbers.
  • Front view: for each column, the largest number in that column.
  • Side view: for each row, the largest number in that row.
  • Top view: the squares with a number of at least 1.
  • Hidden cubes cannot be seen in any single view, so one view alone never fixes the number of cubes.

Worked example

A stack of cubes has this height map (back row on top, front row below):
312102\begin{array}{ccc} 3 & 1 & 2 \\ 1 & 0 & 2 \end{array}
How many cubes are there, what heights does the front view show from left to right, and how many squares does the top view show?
Practice this conceptself-check · 3 quick reps

A view shows the tallest stack, not the total

Cubes hidden behind a taller stack add nothing to a front view. Adding up a column gives the number of cubes in it, not the height you see, and that sum is a common wrong option.

Summary — formulas & gotchas at a glance

A revision cheat-sheet for the formulas and gotchas above. Click any concept name to jump back to its full explanation.

Formulas (1)

Watch out for (3)

Drill the past-year questions on this topic

Open the bank with this topic pre-filtered.