Chapter 13 of 20 · 5 min · 13 प्रश्न

Chapter video4:47
Take quiz →

The last digit of a power

UPSC likes to put a huge power in front of you and ask for its unit digit. In 2026 the paper asked for the digit in the unit place of 6^129 × 7^307. In 2021 it asked for the remainder when 3^2019 is divided by 10, which is the same question in other words: the remainder on dividing by 10 is the last digit. Nobody can work out such numbers. You do not have to. The last digit follows a short pattern, and the pattern is all you need.

Only the last digit of the base matters

When you multiply two numbers, the last digit of the answer comes only from their last digits. Take 47 × 83. Multiply 7 by 3 to get 21, so the product ends in 1. The other digits cannot change this. The same is true for a sum: 47 + 83 ends in 0, because 7 + 3 = 10.

A power is one number multiplied by itself again and again. So the last digit of a power depends only on the last digit of the base. 57242 raised to any index ends exactly like 2 raised to that index. The first step in every question is therefore the same: throw away everything in the base except its last digit.

The cycles

Now watch what the last digit does as the index goes up.

0, 1, 5 and 6 never change. 5 × 5 = 25, 6 × 6 = 36, 6 × 6 × 6 = 216. Every power of a number ending in 6 ends in 6, however large the index is.

4 and 9 alternate. The powers of 4 are 4, 16, 64, 256: the last digit goes 4, 6, 4, 6. The powers of 9 are 9, 81, 729: the last digit goes 9, 1, 9, 1. For these two, only ask whether the index is odd or even.

2, 3, 7 and 8 have a cycle of four. Start with 2: the powers end in 2, 4, 8, 6, and then 6 × 2 = 12 brings back 2. The other three behave the same way.

Base ends inLast digits of the powersWhat to check
0, 1, 5, 6the same digit, alwaysnothing
44, 6odd index: 4, even index: 6
99, 1odd index: 9, even index: 1
22, 4, 8, 6index ÷ 4
33, 9, 7, 1index ÷ 4
77, 9, 3, 1index ÷ 4
88, 4, 2, 6index ÷ 4

You need not learn the table by heart. If you forget a row, multiply the digit by itself a few times in rough and write the last digits down. It is useful to remember that in the last four rows the fourth term is 6 when the digit is even and 1 when it is odd.

Divide the index by 4

The cycle has four terms, so divide the index by 4 and look at the remainder. Remainder 1 means the first term of the cycle, 2 the second, 3 the third. Remainder 0 means the fourth term.

  • 7^95: 95 ÷ 4 leaves remainder 3. The third term of 7, 9, 3, 1 is 3.
  • 3^58: 58 ÷ 4 leaves remainder 2. The second term of 3, 9, 7, 1 is 9.
  • 2^100: 100 ÷ 4 leaves remainder 0. The fourth term of 2, 4, 8, 6 is 6.

For a long index, divide only its last two digits by 4. The remainder is the same. So for 3^2019, look at 19: remainder 3, third term, and the last digit is 7. That is the 2021 answer.

Mixed expressions

Find the last digit of each power separately. Then combine only those last digits.

Product. 6^129 × 7^307. Every power of 6 ends in 6. For 7^307, 07 ÷ 4 leaves remainder 3, so it ends in 3. Now 6 × 3 = 18, and the unit digit is 8.

Difference. 7^95 − 3^58. The last digits are 3 and 9. The first number is the bigger one, since both its base and its index are bigger. But 9 cannot be taken from 3, so borrow ten: 13 − 9 = 4. The last digit is 4. This works only when the first number is the bigger one, so check that before you subtract.

Long product. In 2025 UPSC asked for the unit digit of 1 × 3 × 5 × 7 × ... × 999. Carry only the last digit as you go. The product contains 5 and every number in it is odd. 5 times an odd number always ends in 5, so the answer is 5. If such a product has a 5 and also an even number, it ends in 0.

Where students slip

  • Remainder 0. When the index divides exactly by 4, students pick the first term of the cycle. It is the fourth term. 2^100 ends in 6, not 2.
  • Dividing the base instead of the index. The base only gives its last digit. It is the index that you divide by 4.
  • Using the cycle of four for 6 or 5. These never change. Do not waste time dividing.
  • Subtracting the wrong way round. When the bigger number comes first but its last digit is the smaller one, borrow ten. Do not flip the two digits.
  • Stopping after one power. In a product of two powers, the last digit of the first power is not the answer. Multiply the two last digits.
  • A long index inside brackets. In 57242^(9×7×5×3×1), first find the index, 945, and then divide its last two digits, 45, by 4.

How to practise

Write the seven rows of the table from memory once a day for a week. Check them by multiplying. Then take ten powers with random bases and indices, such as 127^127 or 8^2026, and say the last digit aloud without writing. Make sure some of the indices are multiples of 4, because that is where the mistake hides. Finish with a few products, sums and differences of two powers. Keep going until you can do each one without writing the cycle down.

अपनी पढ़ाई सहेजें और रात 9 बजे की अखिल भारतीय टेस्ट दें।

साइन अप करें