A painted-cube puzzle asks you to classify small cubes, not simply count visible squares in a drawing. This original learning example is not an official Math Kangaroo question. The useful distinction is between a cube on an edge away from a corner and a cube at the corner itself.
Need help choosing a next step? Scan the contact QR code below or contact Hanlin on WeChat. Send KANGAROO-PAINTED-CUBE-TWO-FACE-COUNT-1118 and tell us your school year and question.
State which surfaces receive paint
Imagine a solid cube assembled from 4 by 4 by 4 identical small cubes. Paint only the six outside faces of the assembled cube, then separate all 64 small cubes. No paint seeps into the joins. How many small cubes have exactly two painted faces? Every category depends on the original location of a small cube before separation, rather than the orientation in which it is later held.
Look at one edge first
Each of the twelve long edges contains four small cubes. The two end cubes are corners of the large cube, so each has three painted faces and must be excluded from the requested count. The two interior edge cubes each touch exactly two outside faces. Thus each edge contributes 4-2=2 qualifying cubes, and twelve edges contribute 24. These qualifying cubes belong to just one long edge each.
Why counting corners twice is not a repair
Multiplying twelve edges by four gives 48 edge positions, but corner cubes appear on three edges. Subtracting eight corners once from 48 would therefore mix position counts with cube counts. It is simpler to remove the two endpoints separately on every edge before counting. The remaining edge positions are disjoint, so multiplication becomes legitimate without a second overlap adjustment.
Check all 64 cubes
There are eight corner cubes with three painted faces. Each outside face has a 2 by 2 interior region, contributing 24 cubes with one painted face across six faces. The 2 by 2 by 2 core gives eight unpainted cubes. Together the counts are 8+24+24+8=64. This complete classification checks that the exactly-two category neither lost a cube nor included a cube from another group.
Change the size carefully
For an n by n by n cube with n at least 2, exactly-two-painted cubes number 12(n-2). The face-interior count is 6(n-2)^2 and the unpainted core count is (n-2)^3. Try n=3 to obtain 12,6 and 1 alongside eight corners. These formulas describe this outside-painting model; they would change if faces were painted before assembly or paint entered the joins.
Continue reading: Math Kangaroo Geometry: Cutting Away a Corner Can Leave the Perimeter Unchanged.
Contact Hanlin
Planning a first attempt or reviewing a topic you find difficult? Scan the QR code and send KANGAROO-PAINTED-CUBE-TWO-FACE-COUNT-1118. Include your school year, country or competition region, experience and the question you want to discuss.

On your phone, use the button or save the QR image and scan it within WeChat.
Official information and further reading: Source 1
