Chapter 12 of 20 · 5 min · 14 கேள்விகள்

Chapter video4:55
Take quiz →

Remainders of large powers

UPSC likes to ask for the remainder when a huge power is divided by a small number. In 2021 the paper asked for the remainder when 3^2019 is divided by 10. The number 3^2019 has 964 digits. Nobody is expected to work it out. The question is testing one idea: the remainders of the powers of a number repeat in a cycle. Once you know the cycle, the huge index only tells you which place in the cycle to read.

Step 1: find the cycle

Write the remainders of the first few powers. You do not need the powers themselves. Since remainders can be multiplied, take the last remainder, multiply it by the base, and reduce again.

For powers of 3 divided by 10:

  • 3^1 leaves 3
  • 3^2 is 9, and leaves 9
  • 3^3 is 27, and leaves 7
  • for 3^4, multiply the last remainder by 3: 7 × 3 = 21, which leaves 1

The moment the remainder is 1, stop. The next remainder will be 1 × 3 = 3, which is where you started, so everything repeats. The cycle is 3, 9, 7, 1 and its length is 4.

Step 2: divide the index by the cycle length

Divide the index by the length of the cycle and look at what is left over. That is the place in the cycle.

2019 divided by 4 leaves 3. (To divide by 4, look only at the last two digits: 19 leaves 3.) So 3^2019 leaves the same remainder as 3^3, the third number in the cycle. The answer is 7.

A second example: 2^100 divided by 7. The remainders are 2, 4, and then 8 leaves 1. The cycle is 2, 4, 1 with length 3. Now 100 = 99 + 1, so one is left over, and the answer is the first number in the cycle: 2.

If the index divides exactly, nothing is left over. Then take the last number in the cycle. For 2^99 divided by 7, the index 99 is a multiple of 3, so the remainder is 1.

When 1 never comes

Sometimes the remainder 1 never appears. Then stop at the first remainder that repeats. Take powers of 2 divided by 6: the remainders are 2, 4, and then 8 leaves 2 again. The cycle is 2, 4. Odd powers leave 2 and even powers leave 4. UPSC asked for 2^192 divided by 6 in 2023: the index is even, so the answer is 4.

Powers of 9 divided by 6 are simpler still. 9 leaves 3, and 3 × 9 = 27 leaves 3 again. Every power of 9 leaves 3.

One caution: the repeat need not start from the first remainder. Powers of 2 divided by 4 leave 2, 0, 0, 0 and so on. Only the 0 repeats, and the first power stands alone. So note which remainder came back: the cycle runs from there.

Two shortcuts

Two cases need no cycle at all.

The base is one more than the divisor. Then the base leaves remainder 1, and any power of 1 is 1. For 17^23 divided by 16, write 17 as 16 + 1. The remainder is 1, whatever the index.

The base is one less than the divisor. Treat the base as −1. For 15^23 divided by 16, write 15 as 16 − 1. An even power of −1 is +1, so an even power leaves 1. An odd power of −1 is −1, and a remainder of −1 means one less than the divisor: 16 − 1 = 15. Since 23 is odd, the answer is 15. You can check the idea with a square: 15 × 15 = 225 = 224 + 1, and 224 is 16 × 14.

Make the base small first

If the base is bigger than the divisor, replace it by its remainder. Then look for a small power that is one more or one less than the divisor.

  • 7^100 divided by 5. Since 7 leaves 2, this is the same as 2^100, which is 4^50. And 4 is one less than 5. The index 50 is even, so the remainder is 1.
  • 7^100 divided by 48. Here 7^2 = 49, one more than 48. Write 7^100 as 49^50. The remainder is 1.

Summary

SituationWhat to doExample
Any base and divisorWrite remainders until 1 or a repeat; divide the index by the cycle length3^2019 ÷ 10: cycle 3, 9, 7, 1; index leaves 3; answer 7
Index divides exactlyTake the last number in the cycle2^99 ÷ 7: answer 1
Base is divisor + 1Remainder is always 117^23 ÷ 16: answer 1
Base is divisor − 1Even power leaves 1, odd power leaves divisor − 115^23 ÷ 16: answer 15
A small power of the base is divisor ± 1Rewrite with that power as the base7^100 ÷ 48: write it as 49^50; answer 1
A sum of powersFind each remainder, then add(32^5 + 2^27) ÷ 10: 2 + 8 = 10, so remainder 0

Where students slip

  • Dividing the index by the divisor. The index is divided by the cycle length, never by the divisor. In 3^2019 divided by 10, you divide 2019 by 4.
  • Nothing left over. When the index divides exactly, the answer is the last number in the cycle. It is not 0, and it is not the first number.
  • Waiting for 1. If the base and the divisor share a factor, 1 never comes. Stop at the first repeat, and check where the repeat starts.
  • Forgetting the sign. A base that is one less than the divisor leaves 1 only for an even index. For an odd index it leaves divisor − 1.
  • Working out big powers. Never carry a number bigger than the divisor to the next step. Reduce first, then multiply.

How to practise

Take the divisor 7 and write the cycle for each base from 2 to 6. Do the same for the divisors 5 and 11, with bases smaller than the divisor. You will see that 1 always turns up for these divisors. Then try 6 and 10 as divisors with the base 2, where 1 never comes. Then make up large indices and read off the answers: 3^50 divided by 7, 2^60 divided by 7, 10^25 divided by 11. For each one, ask first whether a shortcut applies: is the base, or its square, one more or one less than the divisor? Only if not, write the cycle.

உங்கள் வாசிப்பைச் சேமித்து, இரவு 9 மணி அகில இந்தியத் தேர்வை எழுதுங்கள்.

பதிவு செய்க