ExamShortcut
medium importance~0-1 Q in Tier 14 formulas⚡ 4 shortcuts3 subtopics

Painted cube cut into small cubes

🔒 Log in to track

A cube of side n painted on all faces and cut into n³ unit cubes gives:

  • 3 faces painted: the 8 corner cubes
  • 2 faces painted: edge cubes, 12(n − 2)
  • 1 face painted: face centres, 6(n − 2)²
  • no face painted: the inner core, (n − 2)³

For a cuboid a × b × c, think the same way: corners 8, edges 4[(a−2)+(b−2)+(c−2)], faces 2[(a−2)(b−2)+(b−2)(c−2)+(c−2)(a−2)], core (a−2)(b−2)(c−2) (when every side is at least 2).

Detailed notes

The picture to keep in mind

A big cube of side n (made of n × n × n unit cubes) is painted on the outside and then cut into n³ unit cubes. A small cube keeps paint only on the faces that were on the surface of the big cube. Its position decides how many of its faces are painted.

The four counts

  • 3 faces painted — corners. A corner cube touches three faces of the big cube. There are always 8, whatever n is.
  • 2 faces painted — edges. Each of the 12 edges holds n cubes, but the 2 ends are corners, leaving n − 2 per edge: 12(n − 2).
  • 1 face painted — face centres. On each face, the cubes not on any edge form an (n − 2) × (n − 2) block: 6(n − 2)².
  • 0 faces painted — the core. Peeling one layer from every side leaves an (n − 2) × (n − 2) × (n − 2) block: (n − 2)³.

Why (n − 2) everywhere

A cube on an edge but not at a corner has lost 2 of its edge-mates to the corners; a face block has lost its border ring. Always subtract 2 before squaring or cubing — using n instead of (n − 2) is the classic error.

The total check

8 + 12(n − 2) + 6(n − 2)² + (n − 2)³ = n³. Test with n = 3: 8 + 12 + 6 + 1 = 27. Test with n = 4: 8 + 24 + 24 + 8 = 64. If your four counts do not add to n³, something is wrong.

Combined questions

  • At least one face painted: everything except the core, n³ − (n − 2)³.
  • At least two faces painted: corners plus edges, 8 + 12(n − 2).
  • Adding the counts of two classes is enough — no new formulas are needed.

Working backwards

Sometimes a count is given and n is asked. Divide: if exactly-two cubes number 12(n − 2) = 24, then n − 2 = 2 and n = 4. If exactly-one cubes number 6(n − 2)² = 54, then (n − 2)² = 9 and n = 5. Then answer the real question with n.

Cuboid a × b × c

The same positions, with each edge keeping its own leftover:

  • corners: 8;
  • edges: 4[(a − 2) + (b − 2) + (c − 2)];
  • face centres: 2[(a − 2)(b − 2) + (b − 2)(c − 2) + (c − 2)(a − 2)];
  • core: (a − 2)(b − 2)(c − 2). These hold when every side is at least 2. Check: 5 × 4 × 3 gives edges 4(3 + 2 + 1) = 24 and core 3 × 2 × 1 = 6.

Common mistakes

  • Writing n instead of (n − 2) inside the formulas.
  • Counting 8 corners as 12(n − 2) + 8 twice, or forgetting that corners are never counted among edge cubes.
  • Adding the four counts and expecting n³ − something: they must total exactly n³.
  • For a cuboid, using n − 2 with a single n instead of each side's own (side − 2).

Quick revision

  • 3 painted: 8 (corners, any size).
  • 2 painted: 12(n − 2) (edges).
  • 1 painted: 6(n − 2)² (face centres).
  • 0 painted: (n − 2)³ (core).
  • Check: the four counts add to n³.
  • At least one: n³ − (n − 2)³; at least two: 8 + 12(n − 2).

Types of questions asked

Every way this subtopic shows up in exams — how to recognise it, the formula or logic to use, and a solved example.

Type 1: Three faces painted (corners)very common2 practice Q
How to spot it:

Cube painted and cut; the question asks for cubes with all three / three or more painted faces.

Only the 8 corner cubes have three painted faces, for every side length.

Example: Q. A cube of side 7 is painted and cut into unit cubes. How many have three painted faces?

Always 8.

Type 2: Two faces painted (edges)very common2 practice Q
How to spot it:

Asks for exactly-two cubes after cutting a painted cube of side n.

12(n−2)12(n-2)

Each of the 12 edges keeps n − 2 non-corner cubes: 12(n − 2).

Example: Q. Side 5, painted, cut. How many cubes have exactly two painted faces?

12 × (5 − 2) = 36.

Type 3: One face painted (face centres)very common2 practice Q
How to spot it:

Asks for exactly-one cubes.

6(n−2)26(n-2)^{2}

Each face keeps an (n − 2) × (n − 2) block away from the edges: 6(n − 2)².

Example: Q. Side 6, painted, cut. How many cubes have exactly one painted face?

6 × 4² = 96.

Type 4: No face painted (core)common2 practice Q
How to spot it:

Asks for completely unpainted cubes.

(n−2)3(n-2)^{3}

Strip one layer from each side; the hidden core is (n − 2)³.

Example: Q. Side 5, painted, cut. How many cubes have no painted face?

(5 − 2)³ = 27.

Type 5: Combined countscommon2 practice Q
How to spot it:

Asks for 'at least one', 'at least two', or the sum of two classes.

n3−(n−2)3n^{3} - (n-2)^{3}

At least one = n³ − (n − 2)³. At least two = 8 + 12(n − 2). Otherwise add the wanted classes.

Example: Q. Side 4, painted, cut. How many cubes have at least two painted faces?

8 + 12 × 2 = 32.

Type 6: Painted cuboidoccasional2 practice Q
How to spot it:

The block is a × b × c, not a cube.

Corners 8; edges 4[(a−2)+(b−2)+(c−2)]; face centres 2[(a−2)(b−2)+(b−2)(c−2)+(c−2)(a−2)]; core (a−2)(b−2)(c−2).

Example: Q. A 5 × 4 × 3 cuboid, painted and cut. How many cubes have exactly two painted faces?

4 × (3 + 2 + 1) = 24.

Type 7: Find n from a countoccasional2 practice Q
How to spot it:

A count of painted cubes is given; the side n (or another count) is asked.

Invert the formula: divide by 12 (edges) or by 6 and square-root (faces), add 2 to get n, then compute what is asked.

Example: Q. 36 cubes have exactly two painted faces. How many have exactly one?

12(n − 2) = 36 gives n = 5, so 6 × 3² = 54.

Formulas

Two faces painted
12(n−2)12(n-2)

Cubes on the edges, excluding corners.

One face painted
6(n−2)26(n-2)^2

Cubes in the middle of each face.

No face painted
(n−2)3(n-2)^3

Hidden inner cube.

Shortcut tricks

⚡ Check the total

8 + 12(n−2) + 6(n−2)² + (n−2)³ = n³. Use it to verify your counts.

Example: Q. n = 3: check the four counts.

8 + 12 + 6 + 1 = 27 = 3³.

Where students lose marks

  • Using n instead of (n − 2) in the formulas.

  • Forgetting that corner cubes always have 3 painted faces, whatever n is.

Practice sets — 17 questions

Sets of 10, mixed across the question types above. Each answer comes with a step-by-step explanation.

Topic test · 10 questions

Suggested time 5 min · wrong answers go to your mistake notebook automatically.