Bodh Prabodh

Number System · Part 3 of 5

Remainders, Unit Digits and Trailing Zeros for SSC CGL

Find the remainder of a huge power without dividing, use the plus 1 and minus 1 trick, Fermat in one line, the 7-11-13 remainder shortcut, unit digit cycles, last two digits, and trailing zeros in factorials. The exact patterns SSC CGL repeats.

  • 14 min video
  • 24 topics
  • 3 check questions
  • Full transcript
Coming soon on YouTubeThis video is planned and not published yet. Follow our YouTube channel to see it when it is out. The transcript, topics and questions below are ready now.
Next: Part 4

Topics in this part

  1. 0:00Welcome
  2. 0:05Remainders, Unit Digits and Zeros
  3. 0:26The division statement
  4. 0:48Remainder of a product
  5. 1:38Powers and remainders: the plus 1 and minus 1 trick
  6. 2:26Find the power that gives 1
  7. 2:53Practice question 1
  8. 3:21Two divisibility facts for powers
  9. 3:46Unit digit cycles
  10. 4:39Unit digit: the method
  11. 5:32Unit digit of a product
  12. 6:08Practice question 2
  13. 6:36Trailing zeros in a factorial
  14. 7:20Zeros in a product
  15. 7:55Practice question 3
  16. 8:24Highest power of a prime in n!
  17. 8:45Remainders by 7, 11 and 13 together
  18. 9:44Last two digits of a power
  19. 10:49Fermat in one line
  20. 11:45When the divisor is a multiple
  21. 12:30Speed targets: Part 3
  22. 12:54Common mistakes in Part 3
  23. 13:32Recap of Part 3
  24. 13:59Next part

Notes for this part

Check yourself

3 questions on this part from the chapter bank. Pick an answer, then check. No score is shared with anyone.

Question 1
The remainder when 192019^{20} is divided by 20 is:
Question 2
Find the digit ∗* so that 5∗69775{*}6977 is divisible by 9.
Question 3
Find the digit ∗* so that 7089∗57089{*}5 is divisible by 9.

Want more like these? Browse the whole question bank or take the chapter quiz.

Transcript

English captions of this part, in time order. The narration is in Hinglish; these are the on-screen English subtitles.

0:00 Welcome

0:02 Welcome back to Bodh Prabodh.

0:05 Remainders, Unit Digits and Zeros

0:05 Welcome back. Today we crack three favourites of the exam: remainders, unit digits, and trailing zeros. They look scary, because the numbers in the question are huge.

0:20 But the trick is to never touch the huge number. We shrink it first.

0:26 The division statement

0:26 Start with what a remainder is. When we divide, the dividend equals the divisor times the quotient, plus the remainder. For 47 divided by 6: 6 times 7 is 42, and 5 is left.

0:40 So the remainder is 5. The remainder is always smaller than the divisor, and never negative.

0:48 Remainder of a product

0:48 Now the first big idea. To find the remainder of a product, find the remainder of each piece first, multiply those small remainders, and then take the remainder again.

1:04 Example: remainder when 17 times 23 times 29 is divided by 6. 17 leaves 5. 23 leaves 5. 29 leaves 5. Multiply 5 times 5 times 5, which is 125, and 125 leaves 5.

1:18 So the answer is 5. Sums work the same way. Remainder of a sum is the remainder of the sum of remainders. But be careful: division is not allowed. You cannot divide the remainders.

1:35 We only add, subtract and multiply.

1:38 Powers and remainders: the plus 1 and minus 1 trick

1:38 Now the secret weapon, the negative remainder. If a number is just one less than a multiple of the divisor, treat it as minus 1. Why? 19 divided by 20 leaves 19, but 19 is also 20 minus 1, so it behaves like minus 1.

1:55 Likewise 5 is 6 minus 1. And minus 1 to an even power is 1, to an odd power is minus 1. So the remainder when 19 to the power 20 is divided by 20 is 1.

2:09 And 19 to the power 21 leaves minus 1, which is the same as 19. When the base is 1 more than a multiple of the divisor, treat it as plus 1. So 7 to the power 100, divided by 6, leaves 1.

2:26 Find the power that gives 1

2:26 What if the base is not so friendly? Look for a power that gives 1. Remainder when 2 to the 10 is divided by 7. 2 cubed is 8, which leaves 1. So every block of three 2s is just 1.

2:44 2 to the 10 is 2 to the 9, times 2. That is 1 times 2, so the remainder is 2.

2:53 Practice question 1

2:53 Pause and try. What is the remainder when 7 to the power 100 is divided by 6? The answer is option A, 1. Since 7 is one more than 6, it behaves like 1, and 1 to any power is 1.

3:21 Two divisibility facts for powers

3:21 One more tool, a pair of facts. For an odd power n, a to the n plus b to the n is always divisible by a plus b. And for any power n, a to the n minus b to the n is always divisible by a minus b.

3:39 Example: 5 to the 7 plus 3 to the 7 is divisible by 8. Nobody needs to compute it.

3:46 Unit digit cycles

3:46 Now unit digits. The last digit of a power repeats in a short cycle. Look at 2: 2, 4, 8, 6, and then it goes back to 2. A cycle of length 4. Look at 3: 3, 9, 7, 1, again a cycle of 4.

4:10 And 7: 7, 9, 3, 1. And 8: 8, 4, 2, 6. Some are even shorter. 4 gives 4, 6, then repeats. 9 gives 9, 1, then repeats. For these two, an odd power gives the first number, and an even power gives the second.

4:30 And digits 0, 1, 5 and 6 never change at all. So we only need to know where we are inside the cycle.

4:39 Unit digit: the method

4:39 Here is the method. Take the last digit of the base. Divide the power by 4, and look at the remainder. Remainder 1 means the first number in the cycle, 2 means the second, 3 means the third, and remainder 0 means the last one, the fourth.

4:58 Example: unit digit of 7 to the power 123. 123 divided by 4 leaves 3. The cycle of 7 is 7, 9, 3, 1. The third is 3. So the unit digit is 3. Another: 2 to the 2026.

5:20 2026 divided by 4 leaves 2. The cycle of 2 is 2, 4, 8, 6. The second is 4. So unit digit 4.

5:32 Unit digit of a product

5:32 For a product, find each unit digit separately, and multiply them. Take 13 to the 57, times 17 to the 34. 13 to the 57 has the same unit digit as 3 to the 57.

5:50 57 leaves 1 with 4, so the unit digit is 3. 17 to the 34 behaves like 7 to the 34. 34 leaves 2, so unit digit is 9. Now 3 times 9 is 27, and the answer is 7.

6:08 Practice question 2

6:08 Pause and try. What is the unit digit of 3 to the power 45? The answer is option B, 3. 45 divided by 4 leaves 1, so we take the first number in the cycle of 3, which is 3.

6:36 Trailing zeros in a factorial

6:36 Now trailing zeros, the zeros at the end of a number. A zero comes from a 10, and a 10 needs one 2 and one 5. Since 2s are always plentiful, the number of zeros is decided by the number of 5s.

6:52 So count the 5s. For a factorial, there is a quick way. Divide by 5, then by 25, then by 125, and add the quotients, ignoring remainders. For 25 factorial: 25 divided by 5 is 5, and 25 divided by 25 is 1.

7:14 Total 6 zeros. For 100 factorial: 20 plus 4 is 24 zeros.

7:20 Zeros in a product

7:20 For a product of ordinary numbers, factorise each, and count the 2s and the 5s. The zeros equal the smaller of the two counts. Example: 24 times 35 times 50 times 125.

7:39 24 has three 2s. 35 has a 5. 50 has one 2 and two 5s. 125 has three 5s. Total 2s: four. Total 5s: six. The smaller is four, so four zeros.

7:55 Practice question 3

7:55 Pause and try. How many zeros are at the end of 50 factorial? The answer is option C, 12. 50 divided by 5 is 10, and 50 divided by 25 is 2. Ten plus two is 12.

8:24 Highest power of a prime in n!

8:24 The same counting works for any prime. The highest power of 3 that divides 50 factorial: divide 50 by 3, then 9, then 27, and add. That is 16, plus 5, plus 1, which is 22.

8:41 This is the same idea, with 3 in place of 5.

8:45 Remainders by 7, 11 and 13 together

8:45 Remember the 7, 11, 13 shortcut from Part 1? It also finds remainders. Since 1001 is 7 times 11 times 13, the number 1000 behaves like minus 1 for all three.

8:59 So a six digit number leaves the same remainder as its last block minus its first block. Take 452319. The blocks are 452 and 319. 319 minus 452 is minus 133.

9:17 Minus 133 is minus 19 times 7, so the remainder on division by 7 is zero. For 11 and 13, add 143 to minus 133, and you get 10. So 452319 leaves 10 on division by 11, and 10 on division by 13.

9:44 Last two digits of a power

9:44 Last two digits questions look scary but use the same idea. Find a power that ends in 01. 7 to the 4 is 2401, so it ends in 01. Now take 7 to the 102. Write 102 as 4 times 25, plus 2.

10:04 The 4 times 25 part ends in 01 and disappears. What is left is 7 squared, 49. The last two digits are 49. A second shortcut, for numbers ending in 1, like 31.

10:22 Take the tens digit, 3, multiply it by the power, 25, and keep only the last digit. That is 75, so 5. The last two digits are 5 and then 1: 51. And remember: numbers ending in 25 or 76 keep that ending under any power.

10:45 And 5 to any power above 1 ends in 25.

10:49 Fermat in one line

10:49 Fermat's little theorem gives a fast reduction when the divisor is a prime p. If p does not divide a, then a to the power p minus 1 leaves remainder 1.

11:04 Take 2 to the 100 divided by 7. Here p is 7, so 2 to the 6 leaves 1. 100 divided by 6 leaves 4. So we need 2 to the 4, which is 16, and 16 leaves 2. Take 3 to the 200 divided by 11.

11:21 3 to the 10 leaves 1, and 200 divided by 10 leaves 0, so the remainder is 1. A caution: the cycle can be shorter than p minus 1. For 2 and 7, 2 cubed already leaves 1.

11:38 If you spot a shorter cycle, use it. And Fermat works only for primes.

11:45 When the divisor is a multiple

11:45 One more fact that saves time. A number leaves 32 when divided by 49. What is the remainder when it is divided by 7? Since 49 is a multiple of 7, the number is 49 times something, plus 32.

12:04 The 49 part is fully divisible by 7. So only 32 matters. 32 divided by 7 leaves 4. The rule: if the old divisor is a multiple of the new divisor, just divide the old remainder by the new divisor.

12:20 If the old divisor is not a multiple, this trick fails. For example, a remainder with divisor 49 tells you nothing about division by 6.

12:30 Speed targets: Part 3

12:30 Speed targets for Part 3. Remainder of a product: twenty seconds. Remainder of a power: thirty. Unit digit: fifteen. Last two digits: forty. Trailing zeros: fifteen.

12:45 The order never changes: first reduce the numbers, then look for a cycle, then calculate.

12:54 Common mistakes in Part 3

12:54 Common mistakes in this part. First, dividing the remainders. Never do that. Second, forgetting that a remainder cannot be negative: if you get minus 1, add the divisor.

13:07 Third, in unit digits, treating remainder 0 as the first place, when it is the last place in the cycle. Fourth, for trailing zeros, counting 2s and 5s together instead of taking the smaller count.

13:22 And fifth, in factorials, forgetting the 25, which gives an extra 5. Slow down on these five, and you will not lose marks.

13:32 Recap of Part 3

13:32 Recap of Part 3. Shrink first, then work. Remainders of products and sums come from remainders of the parts. Use plus 1 and minus 1 for powers. Unit digits repeat in cycles, read through the power divided by 4.

13:52 Trailing zeros are counted by the 5s, using the divide by 5, 25, 125 rule.

13:59 Next part

13:59 In Part 4, we do squares, cubes, roots, digit problems, sum formulas and recurring decimals. See you there. Thank you for learning with me. Practise the questions in the PDF, and see you in Part 4.

Report a mistake on this page