AmbifulWorksheets
Cheat sheet
CBSE · Class 8 · Computational Thinking and AI

A Square and a Cube: Thinking Puzzles

Thinking puzzles on squares and cubes: prime factors decide them, number patterns predict them, and painted cubes are counted part by part.

Key ideas

Remember

Smallest k for a cube72 = 23 × 32, so k = 3: 216 = 63
Smallest k to divide for a square72 ÷ 2 = 36 = 62
Odd numbers1 + 3 + 5 + … + (2n − 1) = n2
Cubes13 + 23 + … + n3 = (1 + 2 + … + n)2
Whole numbers strictly between n2 and (n + 1)22n
Both square and cubesixth powers: 1, 64, 729, …
Cube root units digit2 ↔ 8 and 3 ↔ 7 swap; 0, 1, 4, 5, 6, 9 stay

Watch out

Worked example

A cube of side 10 cm is built from 1,000 unit cubes, and its outside is painted. How many unit cubes have (a) three painted faces (b) exactly two (c) exactly one (d) none?

Working: corners 8; edges 12 × 8; faces 6 × 82; inside 83; check: 1000 = 103

Answer: (a) 8; (b) 96; (c) 384; (d) 512