Playing with Numbers

Take the JEE Foundation test on this chapter · free, no sign-in needed

Foundation Class 8 Maths. Our own notes: numbers in general form, reversing-digit games, letters-for-digits puzzles and every divisibility test, with the reason for each worked out from the general form.

Class 8 is in the Class 8 school book. Foundation goes beyond the school book and is asked in Olympiads, NTSE and the JEE Foundation tests. Try each concept check before you open its answer. Questions to try at the end come from school books and exams, and a few are our own; their answers are folded under them.

On this page

Numbers in general form Class 8

When we write 47, the 4 does not mean four. It means four tens. The position of a digit decides how much it is worth, so 47 is really . Writing a number this way, as a sum of digit times place value, is its expanded form. When the digits are letters, it is the general form.

A two-digit number has a tens digit and a ones digit . We write it (a bar over the letters, so that nobody reads it as ). Its value is

The letters stand for digits, so each is one of , and the first one can never be (otherwise the number would have fewer digits). The same works for four digits: .

abc hundredstensones worth 100 × aworth 10 × bworth 1 × c for 538: a = 5, b = 3, c = 8, so 500 + 30 + 8
Each box has a place value. The number is the sum of the three values.

Why does this matter? Because once a number is a formula, we can do algebra on it and prove things about every number of that shape, not just the ones we try. Every test in this chapter is proved that way.

Example 1. A two-digit number has digit sum . When its digits are reversed the number becomes more. Find the number.

Solution. Let it be , with . Reversed it is . The condition says , that is , so . Together with add the two: , so and . The number is . Check: and . ✓

Write the number and the number with digits (in that order) in general form.

Answer

. The second is .

Writing as or as meaning . For we need , which is ; not , not .

Reversing the digits Class 8

Take any two-digit number, reverse its digits, and add or subtract. The answers always have a pattern. Try it: and are both multiples of ; and are both multiples of . General form proves why.

abba number = 10a + breversed = 10b + athe digits swap places
Reversing swaps the two place values: moves from tens to ones, from ones to tens.

Sum. . Difference (for ): .

For three digits, reverse to : . The middle digit cancels, because it sits in the tens place in both numbers.

So the sum of a two-digit number and its reverse is always a multiple of (and of its digit sum), the difference always a multiple of , and for three digits the difference is a multiple of both and , so of .

The sum of all arrangements. Take . Each digit appears once in each place, so the sum is . Since , the sum is always divisible by , by and by .

Example 2. The sum of a two-digit number and its reverse is . Find all such numbers.

Solution. , so . The digits are at most , so the pairs are : the numbers . Check one: . ✓

Example 3. Find the sum of all six three-digit numbers that can be made from the digits , each used once.

Solution. In each place every digit appears twice (six numbers, three digits). So each place holds a total of . The sum is . Check: , and . ✓

Example 4. The 495 game. Foundation Take a three-digit number with different digits, say . Arrange its digits to make the biggest and the smallest number and subtract. Repeat on the answer. Where do you end up?

Solution. . Then . Then . Then . Then again . The reason is the formula above: each difference is with . The digits differ, so the middle digit lies strictly between the largest and smallest, and runs from to . That leaves only eight possible differences, and we can follow every one: ; ; ; ; ; ; ; and . Every chain ends at , and sends itself to itself, so the game always lands there.

Is divisible by ? by ? by ?

Answer

. So it is divisible by , by and by .

Saying always. It is : for it is .

Letters for digits Class 8

A letters-for-digits puzzle (a cryptarithm) is a sum or product in which each letter stands for a digit. The rules: the same letter is always the same digit; different letters are different digits; and a number’s first digit is not . The skill is to reason, not to guess. Work one column at a time and use these questions:

  • Units column first – in addition the units digit of the sum depends only on the units digits; in a product, on the units digits of the two numbers.
  • Carries – adding two digits (and a carry) gives at most , so a carry is or .
  • Size – two two-digit numbers add to at most , so a three-digit total starts with .
  • Which digit times itself ends in itself – (since and ).

Example 5. If , find and .

Solution. The product ends in the digit . Multiples of end in or , so or . If the product is , not a two-digit number . So : , hence . Check: . ✓

Example 6. Solve .

Solution. The total of two two-digit numbers is under , so the hundreds digit of the three-digit answer is : . The sum is . Units: must end in , so with no carry. Tens: with a carry of (which becomes the hundreds digit), so and . Check: . ✓ The letters are .

Example 7. Find the digits in .

Solution. The product has three digits, so and . The units digit of is , so is even: or . Try : must end in , so (the same as , not allowed) or . Then , giving , all different from each other and from . Check: . ✓ (The other even values of each give two letters the same digit, so this is the only solution.)

Example 8. The king of puzzles. Foundation Solve , each letter a different digit.

Solution. Two four-digit numbers add to under , so . Thousands column: , where is the carry from the hundreds. As , we get , and , so and . If , the hundreds column forces , clashing with . So and . Hundreds: with , so and . Tens: , i.e. ; , so and . Units: . The unused digits are to . With and the only choice is . So . ✓

In the sum of the digits is not enough to fix and . Why, and what is the sum of digits?

Answer

gives . Many pairs (; ; ; …) fit, so one more clue is needed to pick one.

Letting one letter take two values, or letting different letters take the same digit, because it “makes it work”. Check both rules at the end; also check the first digit is not .

Tests for 2, 5 and 10 Class 8

All the tests start the same way: split the number into a part we know is divisible and a small leftover part to check. For a two-digit number :

is divisible by , by and by whatever is, since . So is divisible by one of these exactly when the leftover is. For a longer number, every place above the ones is a multiple of , so the same holds: only the ones digit matters.

A number that leaves a certain remainder after dividing by has the ones digit decide it: remainder on division by means the ones digit is or .

Is divisible by ? By ? By ?

Answer

Ones digit is : divisible by , not by , not by .

Saying “a number ending in 5 is divisible by 10”. It is divisible by only. By needs a at the end.

Tests for 4 and 8 Class 8

Now is divisible by , so every place from the hundreds upwards is a multiple of , hence of . Only the last two digits can matter. In the same way , so every place from the thousands upwards is a multiple of , and only the last three digits matter.

Write . The first part is always divisible by , so is divisible by exactly when is. Similarly is divisible by exactly when is.

Example 9. Find the least digit so that is divisible by .

Solution. Only the last three digits count. Try : leaves ; leaves ; leaves ; . So is the least digit ( also works: ).

Is divisible by ? By ?

Answer

Last two digits : is not divisible by , so not by . The ones digit is even, so yes by .

Checking only the last digit for or . ends in an even digit but leaves .

Tests for 3 and 9 Class 8

Here the place values do not vanish; they leave a remainder of . Look: , , . Each power of ten is one more than a multiple of 9 (and of 3). Then a number like becomes

The first bracket is a multiple of and of . So leaves the same remainder as its digit sum . The argument is the same for any number of digits. The pictures of the powers of ten are below.

power of 101101001000 remainder / 91111 remainder / 11110110 10 is one less than 11, so it acts like −1
Dividing by every power of leaves . Dividing by they alternate ; and is , so it acts like . That alternation is behind the test for .

Why does the test for work too? Because divides : the bracket is also a multiple of .

Example 10. If is a multiple of , find the digit . Why are there two answers?

Solution. Digit sum . It must be a multiple of , and lies between and . So or : or . There are two because and differ by ; both give a digit sum that is a multiple of . Check: and . ✓

Example 11. Find the remainder when is divided by , and the least number to add to to make it a multiple of .

Solution. , and , so the remainder is . Check: . For : digit sum , remainder , so add to get .

Is divisible by ? By ? What is its remainder on division by ?

Answer

. Not divisible by or . Remainder on division by is .

Saying “digit sum divisible by 3 means divisible by 9”. has digit sum and is not divisible by . The test for needs a digit sum that is a multiple of .

The test for 11 Class 8

For the powers of alternate, , , , and so on: one less than a multiple of , then one more, then one less. Write with in the ones place:

So leaves the same remainder on division by as : the sum of digits in the odd places (counting from the ones digit) minus the sum of the digits in the even places. If that difference is or a multiple of , the number is divisible by .

If the difference is negative, add multiples of until it lands in to get the remainder.

Example 12. If is divisible by , find . If is divisible by , find .

Solution. In , counting from the right: ones , tens , hundreds , thousands . Odd places: . Even places: . Difference , which must be (it lies between and ), so . Check: . ✓ In : ones , tens , hundreds , thousands . Odd places: . Even places: . Difference , so . Check: . ✓

Use the test to decide if is divisible by .

Answer

Ones , tens , hundreds , thousands . Odd places: ; even places: . Difference , a multiple of , so yes. .

Counting places from the left. For a number with an even count of digits the odd and even places swap, and the remainder (not just the yes or no) comes out wrong. Always count from the ones digit.

Tests for 6 and other composite numbers Class 8

For a number like we do not need a new test: , and and share no factor other than (they are co-prime). A number divisible by both and has ‘s in it and ‘s in it, and since they do not overlap it must have a . So:

The same works for any pair of co-prime factors: , , , , , , .

The trap. If the factors share a factor, the test breaks. and are both divisible by , so a number divisible by both need not be divisible by . Counter-example: is divisible by and by , but is not whole. So must be tested as , not . Likewise is (co-prime), not , and not .

Example 13. If is a multiple of , list all possible pairs .

Solution. (co-prime). Even: . Divisible by : digit sum must be or (the sum is at most ), so or . With even: gives ; gives (the pair is not a digit). So the pairs are . Check: . ✓

Example 14. If is divisible by , find all .

Solution. (co-prime). For : the last two digits must be divisible by . Since and is divisible by , we need divisible by , so is even. For : from the right the digits are ; odd places , even places . Difference must be or , so or . needs but must be even. So with even: . Check: . ✓

A number is divisible by both and . Must it be divisible by ? A number is divisible by both and . Must it be divisible by ?

Answer

First: yes, and are co-prime. Second: no, and share the factor . Counter-example: .

Splitting a number into factors that are not co-prime, like or . Break it into co-prime parts, , .

Digit sums, digital roots and remainders Class 8 Foundation

The test for says a number and its digit sum leave the same remainder on division by . Do it again and again and you reach a single digit. That digit is the digital root. For : , then . The digital root is .

So a multiple of has digital root (and only for the number ). Digital roots also follow the arithmetic: the root of a sum is the root of the sum of the roots, and likewise for a product, because remainders do.

Take two numbers, leaving remainder and leaving remainder on division by . Then and . So and

The sum leaves the remainder of , the product that of . This is casting out nines, an old way of checking a calculation.

Example 15. Check the product by casting out nines.

Solution. : , root . : , root . Product of roots: . The answer : , root . They agree, so the answer is consistent. (A match does not prove the answer right, but a mismatch proves it wrong.)

Example 16. Foundation A number is divisible by and leaves remainder when divided by . What remainder does it leave when divided by ?

Solution. A multiple of leaves or on division by . Dividing those by leaves . Only leaves . So the remainder is . Example: is divisible by and . ✓

A number leaves remainder when divided by and remainder when divided by . Find the least such number, and say how the others look.

Answer

Numbers leaving on division by : ; remainder on division by : . The least common is . The next one is (). All are .

Thinking the digital root tells only whether a number is divisible by . It gives the full remainder on division by , and so also the remainder on division by (the remainder of the root on division by ).

Olympiad tricks Foundation

Repeating a three-digit number. Take and repeat it: . And . So every such six-digit number is divisible by , and (and by , , , ). Check: .

Dropping the digit sum. , always a multiple of . In general is a multiple of .

Divisibility by 99. , so cut the number into pairs of digits from the right and add them. The number leaves the same remainder on division by as the sum of the pairs. Example: , so ().

Checking two things at once. , , , , … Test the co-prime parts separately.

Example 17. A four-digit number is divisible by . Find .

Solution. . By : ones digit – already true. By : ones , tens , hundreds , thousands ; odd places , even places . The difference must be or . Both digits are at most , so and . Examples: ; . ✓

Example 18. Foundation If is divisible by , find .

Solution. . The number has ten digits; from the right they are . Odd places: . Even places: . Difference , which must be or : . Digit sum , a multiple of . So . Check: . ✓

Is (which is ) divisible by ? Why?

Answer

Yes: it is times a whole number. Also its digit sum is , a multiple of .

Cutting into pairs for from the left. Cut from the right, like the places. If you cut a number with an odd count of digits, the leftmost “pair” is a single digit.

The chapter on one page

  • General form: , , . The first digit is not .
  • Reversing: ; ; ; .
  • Letters for digits: units column first, carries are or , mind the leading digit, different letters different digits.
  • By , , : look at the ones digit.
  • By : last two digits. By : last three digits.
  • By or : digit sum. A number and its digit sum leave the same remainder on division by .
  • By : (sum of digits in odd places) minus (sum in even places) from the ones digit; or a multiple of .
  • By a composite number: split into co-prime factors (, , , , , ).
  • Digital root = remainder on division by ( for a multiple). Sums and products follow the roots.
  • and .

The ten commonest mistakes in answers

  1. Writing as or instead of .
  2. Letting the first digit of a number be .
  3. Giving instead of .
  4. In a letter puzzle, using one letter for two digits, or two letters for the same digit.
  5. Saying a number ending in is divisible by .
  6. Checking only the last digit for or .
  7. Saying digit sum divisible by means divisible by .
  8. Counting places from the left in the test for .
  9. Splitting as (use ) or as (use ).
  10. Stopping after one answer when the digit can take two values ( or in ).

Questions to try

Class 8

NCERT · 1 mark

The sum of a two–digit number and the number obtained by reversing the digits is always divisible by ______.

Answer

Answer: 11

. So the sum is always divisible by 11.

NCERT · 1 mark

The difference of a two–digit number and the number obtained by reversing its digits is always divisible by ______.

Answer

Answer: 9

. So the difference is always divisible by 9.

NCERT · 1 mark

The difference of three-digit number and the number obtained by putting the digits in reverse order is always divisible by 9 and ______.

Answer

Answer: 11

. So it is always divisible by 9 and 11.

NCERT · 1 mark

The number where and are digits and is divisible by ________.

Answer

Answer: 9

. So the number is divisible by 9.

Our question · 1 mark

The number 52z4 is a multiple of 9, where is a single digit. What is ?

  1. 2
  2. 5
  3. 7
  4. 9
Answer

Answer: (c) 7

The digit sum is , which must be a multiple of 9. Only works for a digit. Answer: C.

Our question · 1 mark

What remainder does 5834 leave when divided by 9?

  1. 20
  2. 5
  3. 3
  4. 2
Answer

Answer: (d) 2

The digit sum is , and . The remainder is the repeated digit sum, 2. Answer: D.

Our question · 1 mark

Using alternating signs starting with at the units digit, what remainder does 4623 leave when divided by 11?

  1. 3
  2. 15
  3. 8
  4. 4
Answer

Answer: (a) 3

, so the number is 3 more than a multiple of 11. Check: . Answer: A.

Our question · 1 mark

Which of these numbers is divisible by both 4 and 6 but is NOT divisible by 24?

  1. 12
  2. 48
  3. 72
  4. 96
Answer

Answer: (a) 12

12 is divisible by 4 and 6 but is not whole. 48, 72 and 96 are all multiples of 24. Answer: A.

Foundation

NCERT · 1 mark

A six-digit number is formed by repeating a three-digit number. For example 256256, 678678, etc. Any number of this form is divisible by

  1. 7 only
  2. 11 only
  3. 13 only
  4. 1001
Answer

Answer: (d) 1001

If the three-digit number is , the six-digit number is . So it is divisible by 1001 . This is option (d).

NCERT · 1 mark

If abc is a three digit number, then the number is divisible by

  1. 9
  2. 90
  3. 10
  4. 11
Answer

Answer: (a) 9

. This is always divisible by 9, but not always by 90, 10 or 11. This is option (a).

NCERT · 1 mark

A four-digit number is divisible by 55. Then the value of is

  1. 0
  2. 1
  3. 4
  4. 5
Answer

Answer: (b) 1

The last digit is 5, so the number is divisible by 5. For 11, the difference of the sums of digits at odd and even places is . This must be 0 or a multiple of 11. Since , it must be 0. So . This is option (b).

NCERT · 2 marks

If 56x32y is divisible by 18, find the least value of y.

Answer

Answer: Least value of is 0

Divisible by 18 means divisible by 2 and 9, so is even and is a multiple of 9. This gives or . The least is , with (56232 is divisible by 18).

NCERT · 3 marks

A five-digit number AABAA is divisible by 33. Write all the numbers of this form.

Answer

Answer: 33033, 66066, 99099

Divisible by 11: odd-place sum minus even-place sum is , so . Divisible by 3: digit sum must be a multiple of 3, so (A ≠ 0). The numbers are 33033, 66066, 99099.

Our question · 1 mark

What is the digital root of the number , where and are natural numbers?

  1. 16
  2. 9
  3. 6
  4. 7
Answer

Answer: (d) 7

, which is 7 more than a multiple of 9. So the digital root is 7. Answer: D.

Challenge (Olympiad)

NCERT · 2 marks

If 148101B095 is divisible by 33, find the value of B.

Answer

Answer: B = 4

Divisible by 3: the digit sum must be a multiple of 3, so . Divisible by 11: digits in odd places from the right sum to and digits in even places sum to . The difference must be a multiple of 11, so .

Read the notes? Test yourselfA short quiz on this chapter, free, no sign-in needed. Sign in free afterwards to keep your score and try the JEE Foundation test. Your score at once.