Follow Us
Select Medium / माध्यम चुनें:
Eng (English) Hindi (हिन्दी)
ICSE • Class 8 • Mathematics • Ch 6
Estimated Time: 45 Mins
Study Progress: In Progress

Playing With Numbers

In ICSE Class 8 Mathematics, "Playing With Numbers" provides an authoritative, number-theoretic master study guide investigating generalized forms of numbers, divisibility rules and their algebraic proofs, number puzzles (alphametics / cryptarithms), and magic squares. This comprehensive chapter explores Numbers in Generalised Form (Two-digit number: $ab = 10a + b$; Three-digit number: $abc = 100a + 10b + c$; Reversing digits: $ab + ba = 11(a + b)$ is always divisible by 11 and $(a + b)$; $ab - ba = 9(a - b)$ is always divisible by 9; Three-digit reversals: $abc - cba = 99(a - c)$ is always divisible by 99 and 9; Cyclic additions: $abc + bca + cab = 111(a + b + c) = 37 \times 3(a + b + c)$ is always divisible by 37, 3, and $(a + b + c)$), Divisibility Tests and Their Algebraic Proofs (Divisibility by 10, 5, 2 based on the last unit digit; Divisibility by 3 and 9 based on digital sum of digits $\sum d$; Divisibility by 4 and 8 based on last two/three digits; Divisibility by 11 based on the difference between the sum of digits at odd places and even places: $(S_{\text{odd}} - S_{\text{even}})$), Cryptarithms / Alphametics (Solving alphabetic arithmetic puzzles where each distinct letter represents a unique digit from 0 to 9: finding values in column additions and multiplications; Leading digit cannot be zero), and Magic Squares ($3 \times 3$ and $4 \times 4$ grids; Magic constant formula: $M = \frac{n(n^2 + 1)}{2}$) aligned with the 2026–27 CISCE ICSE curriculum.

Why Does Adding Any Three-Digit Number to Its Circular Permutations ALWAYS Divide Perfectly by the Magical Number 37?

Pick any random three-digit number where the digits are not all the same—say, $427$. Now form its two circular permutations by shifting the digits: $274$ and $742$. Add all three numbers together: $427 + 274 + 742 = 1,443$. Now grab a calculator and divide by the strange prime number 37: $1443 \div 37 = 39$—a clean, exact integer with zero remainder! Try it with $123 + 231 + 312 = 666 \div 37 = 18$! Try it with ANY three-digit number you can dream of in the universe—it will ALWAYS divide by 37! Why? Because in algebra, any three-digit number is $100a + 10b + c$. Summing its three cyclic rotations yields $111(a + b + c)$, and $111$ factors into $37 \times 3$! What is the algebraic proof behind the test of Divisibility by 9? How do you crack an alphametic puzzle like $3A + 25 = B2$? Let's master playing with numbers.

Why This Chapter Matters

Number theory is the foundational mathematics of digital cryptography, checksum validation algorithms (credit card Luhn algorithm, barcode ISBN checks), hashing functions in database index trees, and competitive Olympiad mathematics. Mastering generalized forms and algebraic divisibility proofs develops pure logical deductive reasoning.

Before You Begin (Prerequisites)

  • Place values of decimal digits: units, tens, hundreds.
  • Basic algebraic expansion and grouping.
  • Divisibility definitions (factors and multiples).

What You Will Learn (Core Objectives)

  • Express two-digit, three-digit, and generalized numbers in expanded algebraic form.
  • Prove mathematically the properties of reversed digits ($ab \pm ba$ and $abc - cba$).
  • Derive and prove divisibility rules for 2, 3, 4, 5, 8, 9, 10, and 11 using place value expansions.
  • Solve alphametic / cryptarithm puzzles by deducing unknown digit letters in addition and multiplication.
  • Construct and verify $3 \times 3$ magic squares using the magic constant formula $M = \frac{n(n^2 + 1)}{2}$.
  • Find missing digits in numbers to satisfy specific divisibility conditions.

Chapter Roadmap & Progression

1 1. Generalised Form & Reversing Dig...
2 2. Algebraic Proofs of Divisibility...
3 3. Solving Cryptarithms / Alphameti...
4 4. Magic Squares ($3 \times 3$)

Complete Concept Guide (100% Curriculum Coverage)

1. Generalised Form & Reversing Digits Properties

Understand
A. Generalised Form of Numbers:
  • A two-digit number with tens digit $a$ and units digit $b$ is: $$\mathbf{ab = 10a + b}$$
  • A three-digit number with hundreds digit $a$, tens digit $b$, and units digit $c$ is: $$\mathbf{abc = 100a + 10b + c}$$
B. Algebraic Reversal Theorems:
  1. Sum of a 2-Digit Number and Its Reverse: $$ab + ba = (10a + b) + (10b + a) = 11a + 11b = \mathbf{11(a + b)}$$ • Always divisible by $11$ and by the sum of its digits $(a + b)$!
  2. Difference of a 2-Digit Number and Its Reverse: $$ab - ba = (10a + b) - (10b + a) = 9a - 9b = \mathbf{9(a - b)} \quad (\text{for } a > b)$$ • Always divisible by $9$ and by the difference of its digits $(a - b)$!
  3. Difference of a 3-Digit Number and Its Reverse: $$abc - cba = (100a + 10b + c) - (100c + 10b + a) = 99a - 99c = \mathbf{99(a - c)}$$ • Always divisible by $99$, $9$, $11$, and $(a - c)$!
  4. Sum of Three Cyclic Permutations: $$abc + bca + cab = 111(a + b + c) = \mathbf{37 \times 3(a + b + c)}$$ • Always divisible by $37$, $3$, $111$, and $(a + b + c)$!

2. Algebraic Proofs of Divisibility Tests

Divisibility Proofs
A. Divisibility by 9 and 3 (Sum of Digits):

Consider the 3-digit number $N = 100a + 10b + c$:

$$N = (99 + 1)a + (9 + 1)b + c = (99a + 9b) + (a + b + c) = 9(11a + b) + (a + b + c)$$
  • The term $9(11a + b)$ is always divisible by 9 and 3.
  • Therefore, $N$ is divisible by 9 (or 3) if and only if the remaining term $(a + b + c)$ [the sum of its digits] is divisible by 9 (or 3)!
B. Divisibility by 11:
$$N = 100a + 10b + c = (99 + 1)a + (11 - 1)b + c = (99a + 11b) + (a - b + c) = 11(9a + b) + [(a + c) - b]$$

Hence, $N$ is divisible by 11 if and only if $[(a + c) - b]$ (the difference between the sum of digits at odd places and even places) is divisible by 11 (i.e., is $0$ or a multiple of 11)!

3. Solving Cryptarithms / Alphametics

Cryptarithms
Fundamental Rules of Puzzles:
  1. Each letter or symbol in the puzzle represents only one unique digit ($0, 1, 2, \dots, 9$).
  2. Two different letters cannot represent the same digit.
  3. The first (leading) digit of a number cannot be zero ($0$).
  4. Use standard column addition carryover rules ($A + B \le 18$, so carry to next column can only be $1$).

4. Magic Squares ($3 \times 3$)

Magic Squares

A Magic Square is an $n \times n$ square grid filled with distinct integers such that the sum of the numbers in each row, each column, and both diagonals is constant, called the Magic Constant ($M$):

$$\mathbf{M = \frac{n(n^2 + 1)}{2}}$$
  • For a $3 \times 3$ magic square using digits 1 to 9: $M = \frac{3(3^2 + 1)}{2} = \frac{3(10)}{2} = \mathbf{15}$.
  • The central cell of a $3 \times 3$ magic square is always equal to $\frac{M}{3} = \frac{15}{3} = 5$!

Key Formulas, Identities & Theorems

Cyclic Permutation Sum Identity
$$abc + bca + cab = 111(a + b + c) = 37 \times 3(a + b + c)$$
Always divisible by 37, 3, and (a+b+c).
Magic Constant Formula
$$M = \frac{n(n^2 + 1)}{2}$$
Magic sum for an n x n magic square.

Number Theory: Cyclic Number Sums & The 3x3 Magic Square

Playing With Numbers: Generalised Forms & Magic Squares REVERSED DIGITS THEOREMS • Two-Digit Number: ab = 10a + b ab + ba = 11(a + b) [Divisible by 11] ab - ba = 9(a - b) [Divisible by 9] • Three-Digit Number: abc = 100a + 10b + c abc - cba = 99(a - c) [Divisible by 99 & 9] abc + bca + cab = 111(a+b+c) = 37 × 3(a+b+c) ⇒ ALWAYS DIVISIBLE BY 37! • Divisibility by 9 & 3: Sum of digits ∑d 3 × 3 MAGIC SQUARE (MAGIC SUM = 15) 8 1 6 3 5 7 4 9 2 Every Row, Column & Diagonal Sums to 15! Center Cell = M / 3 = 15 / 3 = 5 ab + ba = 11(a+b) • ab - ba = 9(a-b) • MAGIC CONSTANT: M = n(n^2+1)/2

Chapter Summary & 10 Key Takeaways

Takeaway 1
A two-digit number ab is written as 10a + b; a three-digit number abc is 100a + 10b + c.
Takeaway 2
The sum of a two-digit number and its reverse (ab + ba) is always divisible by 11 and (a + b).
Takeaway 3
The difference of a two-digit number and its reverse (ab - ba) is always divisible by 9 and (a - b).
Takeaway 4
The difference of a three-digit number and its reverse (abc - cba) is always divisible by 99.
Takeaway 5
The sum of three cyclic permutations (abc + bca + cab) is always divisible by 37, 3, and (a + b + c).
Takeaway 6
A number is divisible by 9 or 3 if and only if the sum of its digits is divisible by 9 or 3.
Takeaway 7
A number is divisible by 11 if the difference (S_odd - S_even) is 0 or a multiple of 11.
Takeaway 8
In cryptarithms, each letter represents a unique digit from 0 to 9, and leading digits cannot be 0.
Takeaway 9
A magic square has equal sums for all rows, columns, and diagonals: M = n(n^2 + 1) / 2.
Takeaway 10
For a 3x3 magic square of numbers 1-9, the magic sum is 15 and the center number is always 5.

Check Your Understanding (Diagnostic Practice Questions)

Diagnostic questions testing core conceptual clarity. Answers are hidden initially — solve each problem first, then click to reveal the step-by-step verified solution.

1
Find the values of letters $A$ and $B$ in the following addition cryptarithm:
$$\begin{array}{r} 3 \; A \\ + \; 2 \; 5 \\ \hline B \; 2 \end{array}$$
Reveal Answer & Explanation
Answer:

Step 1: Look at the unit's column: $A + 5 = 2$ (or ends in $2$, meaning $12$).

$$A + 5 = 12 \implies A = 12 - 5 = \mathbf{7}$$


Since the sum is $12$, write $2$ and carry over $1$ to the ten's column.
Step 2: Look at the ten's column with the carryover of $1$:

$$1 + 3 + 2 = B \implies B = \mathbf{6}$$


• Final Answer:

$$\mathbf{A = 7, \quad B = 6}$$


Check: $37 + 25 = 62$. Correct!


Unit's column: $A + 5 = 12 \implies A = 7$ (carry 1). Ten's column: $1 + 3 + 2 = 6 \implies B = 6$.
2
Prove algebraically that the difference between any three-digit number $abc$ and its reverse $cba$ (where $a > c$) is always divisible by $99$.
Reveal Answer & Explanation
Answer:

• Write the numbers in generalised place value form:

$$abc = 100a + 10b + c$$


$$cba = 100c + 10b + a$$


• Subtract $cba$ from $abc$:

$$abc - cba = (100a + 10b + c) - (100c + 10b + a)$$


$$= 100a - a + 10b - 10b + c - 100c$$


$$= 99a - 99c$$


$$= \mathbf{99(a - c)}$$


• Since $99(a - c)$ has $99$ as an explicit factor, the difference is always divisible by $99$ (and consequently also by $9$ and $11$).


$(100a + 10b + c) - (100c + 10b + a) = 99a - 99c = 99(a - c)$, which is divisible by 99.
3
If the four-digit number $24x5$ is a multiple of $9$, what is the value of the missing digit $x$?
Reveal Answer & Explanation
Answer:

• By the Divisibility Rule for $9$, a number is divisible by $9$ if and only if the sum of its digits is a multiple of $9$.
• Calculate the sum of the digits:

$$\text{Sum} = 2 + 4 + x + 5 = 11 + x$$


• Since $x$ is a single digit ($0 \le x \le 9$), the possible multiples of $9$ greater than or equal to $11$ are $18$ and $27$.
• Setting $11 + x = 18$:

$$x = 18 - 11 = \mathbf{7}$$


(Setting $11 + x = 27$ gives $x = 16$, which is not a single digit).
• Final Answer:

$$\mathbf{x = 7}$$

.


Sum of digits $= 11 + x$. For $11 + x$ to be a multiple of 9, $x$ must be $18 - 11 = 7$.
4
Find the value of $y$ so that the number $31y5$ is divisible by $3$. How many possible values can $y$ have?
Reveal Answer & Explanation
Answer:

• A number is divisible by $3$ if the sum of its digits is divisible by $3$.

$$\text{Sum} = 3 + 1 + y + 5 = 9 + y$$


• For $(9 + y)$ to be a multiple of $3$, $y$ can be any single digit such that $y$ is a multiple of $3$ ($0 \le y \le 9$).
• Possible values of $y$:

$$\mathbf{y = 0, \quad y = 3, \quad y = 6, \quad y = 9}$$


• There are $4$ possible values for $y$.


Sum of digits $= 9 + y$. Multiples of 3 occur when $y = 0, 3, 6, 9$ (4 possible values).
5
Check whether the number $10824$ is divisible by $11$ using the divisibility test.
Reveal Answer & Explanation
Answer:

• Label digit positions from right to left (units is position 1):
Number: $1 \; 0 \; 8 \; 2 \; 4$
• Digits at odd places (1st, 3rd, 5th): $4, 8, 1$

$$\text{Sum of odd place digits } (S_{\text{odd}}) = 4 + 8 + 1 = 13$$


• Digits at even places (2nd, 4th): $2, 0$

$$\text{Sum of even place digits } (S_{\text{even}}) = 2 + 0 = 2$$


• Calculate the difference:

$$\text{Difference} = S_{\text{odd}} - S_{\text{even}} = 13 - 2 = \mathbf{11}$$


• Since the difference ($11$) is a multiple of $11$, the number $10824$ is completely divisible by $11$.


Sum at odd places $= 4+8+1 = 13$. Sum at even places $= 2+0 = 2$. Difference $= 13 - 2 = 11$ (divisible by 11).
6
Solve the cryptarithm multiplication puzzle: $A B \times 3 = C A B$.
Reveal Answer & Explanation
Answer:

Step 1: In the unit's place, $B \times 3$ ends in $B$.
Testing digits for $B$:
• $0 \times 3 = 0$ (ends in $0 \implies B = 0$)
• $5 \times 3 = 15$ (ends in $5 \implies B = 5$)
Step 2: If $B = 0$: $A0 \times 3 = CA0$. Divide by 10: $A \times 3 = CA$. No non-zero single digit satisfies this.
Step 3: If $B = 5$:

$$A5 \times 3 = CA5$$


$5 \times 3 = 15$ (write $5$, carry $1$).
In ten's column: $(A \times 3) + 1$ must end in $A$.
Test digits for $A$:
• If $A = 2$: $(2 \times 3) + 1 = 7$ (does not end in $2$).
• If $A = 5$: $A$ cannot equal $B$.
• If $A = 7$: $(7 \times 3) + 1 = 22$ (does not end in $7$).
• If $A = 0$: Leading digit cannot be 0.
Wait, test $50 \times 3 = 150$: Here $A = 5, B = 0, C = 1$! Check: $50 \times 3 = 150$ ($AB \times 3 = CAB$).
• Final Answer:

$$\mathbf{A = 5, \quad B = 0, \quad C = 1}$$

.


$50 \times 3 = 150$. Here $A = 5, B = 0, C = 1$.
7
Explain why any 3-digit number formed by repeating a single digit three times (e.g., $222, 555, 777$) is always divisible by both $3$ and $37$.
Reveal Answer & Explanation
Answer:

• Let the repeated digit be $a$ ($1 \le a \le 9$).
The number is $aaa = 100a + 10a + a = 111a$.
• Factorise the number $111$:

$$111 = 3 \times 37$$


$$aaa = 3 \times 37 \times a$$


• Since $3$ and $37$ are explicit prime factors in $111a$, any such number is always divisible by both $3$ and $37$ (e.g., $777 \div 37 = 21, 777 \div 3 = 259$).


$aaa = 111a = 3 \times 37 \times a$, so it always has 3 and 37 as prime factors.
8
Calculate the magic constant $M$ for a $4 \times 4$ magic square using numbers from $1$ to $16$.
Reveal Answer & Explanation
Answer:

Apply the Magic Constant formula: $M = \frac{n(n^2 + 1)}{2}$.
Here $n = 4$:

$$M = \frac{4(4^2 + 1)}{2} = \frac{4(16 + 1)}{2} = \frac{4(17)}{2} = 2 \times 17 = \mathbf{34}$$

.
In a $4 \times 4$ magic square, every row, column, and diagonal sums to $34$.


$M = [4(16 + 1)] / 2 = (4 \times 17) / 2 = 34$.
Finished Studying This Chapter?
READY TO PRACTICE?

Timed CBT Practice Tests (Exam Simulator)

Put your concepts to the test with official curriculum-aligned Foundation and Advanced practice tests. Get instant accuracy scores, time metrics, and step-by-step verified explanations.