- Practice
- About 15 min
- 5 practice questions
Stacks of cubes: totals, views and exposed faces
Read a table of stack heights to count cubes, find how many more make a bigger cube, count the faces seen from each side, and count all exposed faces with 6N minus 2P.
If something looks wrong, please tell us.
Another favourite question builds a solid from unit cubes and asks you to count them, to say how many can be seen from a side, or to say how many faces would be painted if the solid were dipped in paint. The solid is described by a table in which each number tells how many cubes are stacked on that square of the floor. Count by rows, not by picture.
Reading the height table
Imagine looking down on a 3 by 3 floor. Each number is the height of the stack on that square. The front row is the one nearest to you.
| Row | Left column | Middle column | Right column |
|---|---|---|---|
| Back | 3 | 3 | 2 |
| Middle | 3 | 2 | 1 |
| Front (nearest you) | 2 | 1 | 1 |
Four counts from the table
- Total cubes: add all nine numbers. Here 3 + 3 + 2 + 3 + 2 + 1 + 2 + 1 + 1 = 18.
- Cubes to add to make a larger cube: a 3 by 3 by 3 cube has 27 cubes, so 27 minus 18 = 9 more are needed.
- Looking from the top: each non-empty stack shows one top face, so 9 faces are seen.
- Looking from the front: in each column you see the tallest stack in that column, because it hides the shorter ones behind it. Left column: 3, middle: 3, right: 2. The number of square faces seen is 3 + 3 + 2 = 8. In the same way, from the left side take the tallest stack in each row: 3 + 3 + 2 = 8.
Each face you see belongs to a different cube, so 8 cubes show a face to the front viewer, and the other 18 minus 8 = 10 cubes show none.
Counting exposed faces
Every cube has 6 faces. Each time two cubes touch face to face, 2 faces (one of each cube) are hidden. So if N is the number of cubes and P is the number of touching pairs, the number of exposed faces is 6N minus 2P, counting the bottom faces. Count P in two parts: inside each stack there are (height minus 1) touching pairs, and between two neighbouring stacks there are as many touching pairs as the smaller height.
Worked examples
Example 1. In the table above, find the exposed faces. Working: N = 18. Pairs inside stacks: (3+3+2+3+2+1+2+1+1) minus 9 stacks = 9. Pairs between neighbours in a row (smaller height of each neighbouring pair): back row 3 + 2 = 5, middle row 2 + 1 = 3, front row 1 + 1 = 2, a total of 10. Pairs between neighbours in a column: left column 3 + 2 = 5, middle column 2 + 1 = 3, right column 1 + 1 = 2, a total of 10. So P = 9 + 10 + 10 = 29. Exposed faces: 6 times 18 minus 2 times 29 = 108 minus 58 = 50. Without the bottoms (nine faces on the table), 50 minus 9 = 41.
Example 2. A tower of 4 cubes stands on the table. Working: N = 4 and P = 3, since each of the 3 joins hides 2 faces. Exposed faces: 24 minus 6 = 18.
Example 3. A 2 by 2 floor has heights: back row 2 and 1, front row 1 and 1. How many faces are seen from the front? Working: left column tallest is 2, right column tallest is 1, so 2 + 1 = 3. Total cubes: 2 + 1 + 1 + 1 = 5.
Faces seen from a side: add the tallest stack in each line of sight. Exposed faces: 6N minus 2P.
Traps
- Adding up all the stack heights for a view. A view shows only the tallest stack in each line of sight.
- Forgetting whether the bottom faces count. Read the question: a solid standing on a table has its bottoms hidden from view but may still be painted if it was dipped.
- Counting the pairs between neighbouring stacks as the larger height instead of the smaller.
Key takeaways. Add the heights for the total. Take the tallest stack in each line for a view. Use 6N minus 2P for the faces of the whole solid.
Check your understanding
-
1. A 3 by 3 floor has stacks of heights back row 3, 3, 2; middle row 3, 2, 1; front row 2, 1, 1. How many more cubes make a 3 by 3 by 3 cube?
- 8
- 9
- 12
- 18
Show answer
Answer: B. The solid has 18 cubes and the 3 by 3 by 3 cube has 27. So 27 minus 18 = 9 more cubes.
-
2. Four cubes are joined in a straight row, and every outside face is painted. How many faces are painted?
- 16
- 20
- 18
- 24
Show answer
Answer: C. N = 4 and P = 3 touching pairs. Faces: 6 times 4 minus 2 times 3 = 24 minus 6 = 18.
-
3. A 2 by 2 floor has heights: back row 2 and 1, front row 1 and 1. How many square faces are seen from the front?
- 3
- 2
- 4
- 5
Show answer
Answer: A. Take the tallest stack in each column: 2 in the left column and 1 in the right column. So 2 + 1 = 3.
-
4. For the same 2 by 2 solid (5 cubes in all, with 5 touching pairs), how many faces are exposed, counting the bottoms?
- 15
- 25
- 30
- 20
Show answer
Answer: D. Exposed faces = 6N minus 2P = 30 minus 10 = 20.
-
5. In the 3 by 3 table (heights 3, 3, 2 / 3, 2, 1 / 2, 1, 1), how many cubes show no face to a viewer in front?
- 10
- 8
- 9
- 18
Show answer
Answer: A. The front view shows 3 + 3 + 2 = 8 faces, one on each of 8 different cubes. The other 18 minus 8 = 10 cubes show none.
Sign in to keep track of the lessons you finish.