Class 8 CT: A Square and a Cube – Notes | CBSE CT & AI 2026-27

🏠 Home  /  Part 1 · Computational Thinking  /  A Square and a Cube
Part 1 · Computational Thinking · Chapter 1

A Square and a Cube 🔢

Before we jump into puzzles, let's get comfortable with two of the most useful ideas in maths: square numbers and cube numbers. Once you can spot them instantly, a whole category of "tricky" questions starts to feel easy.

1. What is a square number?

A square number is what you get when you multiply a whole number by itself. So 5 × 5 = 25 means 25 is a square number, written as 5².

Real-life example Think of floor tiles. If a room is tiled with a 5 × 5 arrangement of square tiles, you've used exactly 25 tiles — a perfect square number. This is exactly why we call n × n a "square" number: you can always arrange that many objects into a perfect square grid, like a chessboard (8 × 8 = 64 squares) or a bed of square flower pots in a garden.

The first several square numbers are:

n12345678910
n²149162536496481100

2. What is a cube number?

A cube number is what you get when a whole number is multiplied by itself three times: n × n × n, written n³. So 3³ = 3 × 3 × 3 = 27.

Real-life example A Rubik's cube is literally built from cube numbers! The popular 3×3×3 cube is made of 27 small cubies (3³ = 27). Sugar cubes stacked into a bigger cube, dice, ice cube trays, and storage boxes are all everyday "cube number" objects — because volume of a cube = side × side × side.
n12345678
n³182764125216343512

3. Patterns worth remembering

  • Sum of consecutive odd numbers: 1 = 1², 1+3 = 2², 1+3+5 = 3², 1+3+5+7 = 4² — the sum of the first n odd numbers is always n². Try it with beads or coins arranged in an "L-shape" pattern and you'll see why.
  • Square numbers never end in 2, 3, 7 or 8. Look at the table above — the last digits only ever come from {0,1,4,5,6,9}. This is a fast way to rule out a number from being a perfect square.
  • Cube numbers can end in any digit (0 through 9) — unlike squares, there's no shortcut digit test for cubes.
  • A number can be both a square and a cube. 1 = 1² = 1³, and 64 = 8² = 4³. These are called perfect sixth powers (since 64 = 2⁶). Keep an eye out for these overlap numbers — puzzle questions love them.

4. Checking squares & cubes using prime factors

Here's the trick examiners expect you to know: break a number into its prime factors. If every prime appears an even number of times (in pairs), the number is a perfect square. If every prime appears in a group of three, the number is a perfect cube.

Real-life example Suppose you're packing 56 identical items into a box and you want the box to be a perfect cube-shaped arrangement. 56 = 2 × 2 × 2 × 7 = 2³ × 7¹. The 2's are already grouped in a perfect triplet, but the 7 is alone — you'd need two more 7's (7² = 49 more items) to make 7³, giving a true cube arrangement. This exact logic is used in Question 4 below.
Remember this Square → pair up the primes. Cube → group the primes in threes. Whatever is "left over" tells you exactly what you need to multiply by to complete the square/cube.

✅ Quick recap

  • Square number = n × n; cube number = n × n × n.
  • Squares model flat, 2D grid arrangements; cubes model solid, 3D box arrangements.
  • Squares only end in 0, 1, 4, 5, 6, 9 — cubes can end in any digit.
  • Use prime factorisation to check if a number is a perfect square (pairs) or perfect cube (triplets).

📖 Textbook question guide & answers

A few questions in this chapter use grids, tunnels or shape diagrams printed in the book that don't come through in text form — for those, we explain exactly what idea to apply so you can solve them the moment you look at the picture in your handbook. Every question that can be solved from the numbers alone is worked out fully below.

Q1. Grid of circles following a theme — find A + B.

Diagram-based. Look for the square/cube pattern connecting the circles already filled in (e.g., each circle might be n² or n³ of its position). Once you spot the rule, apply it to find A and B, then add them.

Q2. Sam writes a list with 3 perfect cubes and 3 perfect squares, no number over two digits. Minimum distinct numbers?
Answer: (b) 4

Two-digit-or-less perfect cubes: 1, 8, 27, 64. Perfect squares: 1, 4, 9, 16, 25, 36, 49, 64, 81. Notice 1 and 64 appear in both lists (1 = 1³ = 1², and 64 = 4³ = 8²) — so these two numbers can each do "double duty" as one cube and one square. That covers 2 of the 3 cubes and 2 of the 3 squares needed. Sam still needs one more cube (say 8) and one more square (say 9) that aren't shared. Total distinct numbers = 1, 64, 8, 9 = 4.

Q3. Two-digit number AB whose cube is a 4-digit number ending in C, with A < C < B. How many values can C take?
Answer: (a) 2

A 2-digit number's cube is 4 digits only for numbers 10–21 (10³ = 1000, 21³ = 9261; 22³ jumps to 5 digits). Testing each: 17³ = 4913 (A=1, B=7, C=3 → 1<3<7 ✓) and 18³ = 5832 (A=1, B=8, C=2 → 1<2<8 ✓). No other value from 10–21 satisfies A < C < B. So C can only be 3 or 2 — that's 2 possible values.

Q4. 56 × k is a perfect cube. Smallest possible k?
Answer: (b) 49

56 = 2³ × 7¹. The 2's already form a perfect triplet (2³), but 7 appears only once. To make it a triplet (7³) we need two more 7's, i.e. multiply by 7 × 7 = 49. So the smallest k is 49, giving 56 × 49 = 2744 = 14³.

Q5. Each geometric shape denotes an operation — find "?".

Diagram-based. Match each shape (triangle, circle, square, etc.) in the already-solved rows to the operation it represents (add, multiply, square, cube...), then apply the same operations in the row with "?".

Q6. XYZ is a 3-digit square of a multiple of 5. Highest possible remainder of XYZ ÷ 100?
Answer: (d) 25

3-digit squares of multiples of 5: 10² = 100, 15² = 225, 20² = 400, 25² = 625, 30² = 900 (35² = 1225 is already 4 digits, so stop at 30). Dividing by 100, the remainder is just the last two digits: 00, 25, 00, 25, 00. The highest remainder among these is 25.

Q7. Board pattern for 13³ − 12³. Which digit appears most in the expression?
Answer: (c) 3

Consecutive cubes follow the identity n³ − (n−1)³ = 3n² − 3n + 1. For n = 13, this is written as 3×13² − 3×13 + 1. Writing out every digit used — 3, 1, 3, 3, 1, 3, 1 (ignoring the small exponent) — the digit 3 shows up the most often. (Check your handbook's exact board diagram to confirm the written form, but this identity is the pattern being tested.)

Q8. Fill the grid with squares/cubes of digits 2–5 under given rules — find the maximum sum of Shape A's cells.

Diagram-based. First list out the squares and cubes you're placing: 2²=4, 3²=9, 4²=16, 5²=25 and 2³=8, 3³=27, 4³=64, 5³=125. Since each appears twice and the largest values (like 125 and 64) boost the sum the most, try to place the largest numbers inside Shape A first, while still obeying the row/column/diagonal rules, then add up Shape A's cells.

Q9. Logic machine — numbers change moving through columns 1→4. Find A + B + C.

Diagram-based. Work out the rule between column 1 and column 2 using the example rows that are already filled in (it's usually "square it", "cube it", "double it" etc.), confirm the same rule holds for column 2→3 and 3→4, then apply the confirmed rules step-by-step to find A, B and C.

Q10. Every column follows a rule — find "?".

Diagram-based. Compare the numbers already given in each column — check whether they're related by squaring, cubing, adding a fixed amount, or a mix, then use that rule on the column containing "?".

Bonus puzzle: Boxes stacked in columns A–D, labelled 1/2/3 with adjacency rules — which number appears most in the shaded boxes?
Answer: (b) 2

The handbook itself confirms option (b) as the answer. To reconstruct the working: place the already-given labels first, then use "no two adjacent boxes in the same column share a label" and "top+bottom sum equal per column" to fill each column one at a time — you'll find the number 2 keeps recurring in the shaded cells.

📝 Practice Exercises

Try these questions on your own first, then use the toggle below to check your answers.

A. Multiple Choice Questions

  1. Which of the following is a perfect square?
    a) 45   b) 64   c) 90   d) 150
  2. Which of the following is a perfect cube?
    a) 36   b) 100   c) 125   d) 144
  3. The prime factorisation of 72 is 2³ × 3². By which smallest number should 72 be multiplied to make it a perfect square?
    a) 2   b) 3   c) 6   d) 9
  4. What is the smallest number by which 32 must be divided to get a perfect square?
    a) 2   b) 4   c) 8   d) 16
  5. Which number is both a perfect square and a perfect cube?
    a) 16   b) 27   c) 64   d) 100
  6. What is the square root of 225?
    a) 12   b) 15   c) 18   d) 25
  7. What is the cube root of 216?
    a) 4   b) 6   c) 8   d) 9
  8. A perfect square number can never end in:
    a) 0   b) 1   c) 3   d) 6

B. Short Answer Questions

  1. Using prime factorisation, show that 300 is not a perfect square, and find the smallest number it should be multiplied by to make it one.
  2. Explain in your own words why every perfect cube's prime factorisation must have all exponents as multiples of 3.

C. Logic Puzzle

  1. A stack of identical small cubes is arranged to form one larger cube with no gaps. If the large cube uses exactly 125 small cubes, how many small cubes make up one edge of the large cube? If one more layer of small cubes were added on every side, how many small cubes would the new, larger cube contain?

▶️ Show Answer Key

📘 The CT & AI Corner — Class 8 CT & AI notes, made simple.

Comments

🧭 Explore AI Topics

Keep learning with our topic guides for CBSE AI (Classes 6–12).

🔄 AI Project Cycle🐍 Python for AI🤖 Machine Learning💬 NLP👁️ Computer Vision⚖️ AI Ethics