Divisibility Rules · Palindromes · Magic Squares · Cryptarithmetic · Number Patterns
Numbers are not just tools for calculation — they are full of surprises, patterns, and magic! In this chapter, we explore the playful side of mathematics. From clever divisibility tests that tell you whether a number divides evenly, to palindromic numbers that read the same forwards and backwards, to ancient magic squares and modern cryptarithmetic puzzles, you will discover that numbers can be as entertaining as any game.
The NCERT Ganita textbook for Class 8 invites you to play with numbers, investigate patterns, make conjectures, and verify them. This chapter is about thinking like a mathematician — asking "why does this happen?" and "will this always work?"
India has a deep and ancient tradition of number play. Indian mathematicians were among the first to explore divisibility, digit patterns, and number magic.
| Topic | Key Concepts |
|---|---|
| Divisibility Rules | Tests for 2, 3, 4, 5, 6, 8, 9, 10, 11 |
| Palindromic Numbers | Numbers that read the same forwards and backwards |
| Number Patterns | Digit sum patterns, reverse-and-add, Kaprekar routine |
| Magic Squares | Squares where rows, columns, diagonals have equal sums |
| Cryptarithmetic | Puzzles where digits replace letters in arithmetic |
| Famous Numbers | Hardy-Ramanujan, Fermat, Armstrong, Kaprekar numbers |
A number a is divisible by another number b if dividing a by b leaves a remainder of zero. Instead of performing long division, we can use quick divisibility tests based on the digits of the number.
| Divisor | Rule | Example |
|---|---|---|
| 2 | Last digit is 0, 2, 4, 6, or 8 (even) | 4,536 → last digit 6 (even) → ✅ divisible by 2 |
| 3 | Sum of digits is divisible by 3 | 621 → 6+2+1 = 9 → 9÷3 = 3 ✅ |
| 4 | Last two digits form a number divisible by 4 | 3,724 → last two digits 24 → 24÷4 = 6 ✅ |
| 5 | Last digit is 0 or 5 | 8,475 → last digit 5 ✅ |
| 6 | Divisible by both 2 and 3 | 312 → even ✅ & 3+1+2 = 6 (div by 3) ✅ |
| 8 | Last three digits form a number divisible by 8 | 5,016 → last three 016 = 16 → 16÷8 = 2 ✅ |
| 9 | Sum of digits is divisible by 9 | 2,709 → 2+7+0+9 = 18 → 18÷9 = 2 ✅ |
| 10 | Last digit is 0 | 4,530 → last digit 0 ✅ |
| 11 | Alternating sum of digits (odd − even positions) is 0 or divisible by 11 | 61,853 → (6+8+3)−(1+5) = 17−6 = 11 ✅ |
The divisibility rule for 11 is the trickiest. Starting from the leftmost digit, alternate between adding and subtracting each digit. If the result is 0 or a multiple of 11, the original number is divisible by 11.
Divisibility rules are not arbitrary tricks — they arise from the place value system. For example, why does the digit sum rule work for 9? Consider 234 = 2×100 + 3×10 + 4. Since 100 = 99+1 and 10 = 9+1, we get: 234 = 2×(99+1) + 3×(9+1) + 4 = (2×99 + 3×9) + (2+3+4). The terms 2×99 + 3×9 are always divisible by 9, so 234 is divisible by 9 if and only if the digit sum 2+3+4 = 9 is divisible by 9!
A palindromic number (or simply palindrome) is a number that reads the same forwards and backwards. The word "palindrome" comes from the Greek words palin (again) and dromos (path) — literally "running back again."
Here is a fascinating property: take almost any number, reverse its digits, and add the two numbers. Repeat this process, and most numbers eventually become palindromes! This is called the reverse-and-add process.
The digit sum (or digital root) of a number is found by repeatedly summing the digits until you get a single digit. This reveals beautiful hidden patterns.
Take any 4-digit number (with at least two different digits). Arrange its digits in descending order and ascending order. Subtract the smaller from the larger. Repeat. You will always reach 6174 (called Kaprekar's constant) within 7 steps!
An Armstrong number (or narcissistic number) is a number that equals the sum of its own digits each raised to the power of the number of digits. For example:
A magic square is a grid of numbers where every row, every column, and both main diagonals add up to the same sum, called the magic constant.
The most famous magic square uses the numbers 1 through 9 and has a magic constant of 15.
Row 1: 2+7+6=15 • Row 2: 9+5+1=15 • Row 3: 4+3+8=15
Col 1: 2+9+4=15 • Col 2: 7+5+3=15 • Col 3: 6+1+8=15
Diag: 2+5+8=15 • Diag: 6+5+4=15
The NCERT textbook teaches the Siamese method (also called the "staircase method") for odd-order magic squares:
A 4×4 magic square using numbers 1 to 16 has a magic constant of 34. The famous Khajuraho magic square is:
Every row, column, and diagonal sums to 34. Check it yourself!
Cryptarithmetic (also called alphametic or verbal arithmetic) is a type of puzzle where digits are replaced by letters. Each letter stands for a unique digit (0–9), and the leading digit of a number cannot be 0. Your job is to figure out which digit each letter represents so that the arithmetic is correct.
This is the most famous cryptarithmetic puzzle ever created (by Henry Dudeney, 1924):
Each letter represents a unique digit (0–9). Can you solve it?
Here is a classic number magic trick you can perform on your friends:
The answer is always 5! Why? Let the number be n. Double: 2n. Add 10: 2n + 10. Halve: n + 5. Subtract n: 5.
Take any 3-digit number and write it twice to form a 6-digit number. Example: 237 → 237237. This 6-digit number is always divisible by 7, 11, and 13!
| Term | Definition |
|---|---|
| Divisibility | a is divisible by b if a ÷ b leaves remainder 0 |
| Digit Sum | Sum of all digits of a number (repeated until single digit = digital root) |
| Palindrome | A number that reads the same forwards and backwards |
| Magic Square | Grid where every row, column, and diagonal has the same sum |
| Magic Constant | The common sum in a magic square |
| Cryptarithmetic | Puzzle where letters represent unique digits in arithmetic |
| Armstrong Number | Number equal to the sum of its digits raised to the power of the digit count |
| Kaprekar's Constant | 6174 — the result of the Kaprekar routine on any 4-digit number |
Click on an option to see if your answer is correct.
Fill in the empty cells to complete the 3×3 magic square! Each row, column, and diagonal must sum to 15. Use numbers 1 through 9, each exactly once.
Enter a number and watch the reverse-and-add process unfold step by step. How many steps does your number take to become a palindrome?
Solve the puzzle by entering the correct digit for each letter. Each letter represents a unique digit (0–9). Remember: leading digits cannot be zero!
Use these flashcards for last-minute revision before your exam!