UPSC CSAT 2024 Q17: Last Non-Zero Digit of a Power — Solved

What is the rightmost digit preceding the zeros in the value of 30³⁰?

  1. 1
  2. 3
  3. 7
  4. 9

Answer: (d) 9

Solution

  1. Split the base into a digit part and a power of 10: 30 = 3 × 10.
  2. Raise both parts to the 30th power: 30³⁰ = (3 × 10)³⁰ = 3³⁰ × 10³⁰.
  3. 10³⁰ is 1 followed by 30 zeros. Multiplying by it only adds 30 zeros at the end of 3³⁰. It does not change any digit of 3³⁰.
  4. 3³⁰ is a power of 3, so it has no factor of 2 or 5. It does not end in 0. Its own unit digit is therefore the rightmost digit before the zeros in 30³⁰.
  5. Find the unit digits of the first few powers of 3: - 3¹ = 3 → 3 - 3² = 9 → 9 - 3³ = 27 → 7 - 3⁴ = 81 → 1 - 3⁵ = 243 → 3 (the pattern starts again)

  6. The unit digits repeat in a cycle of 4: 3, 9, 7, 1.

  7. Divide the exponent by 4: 30 ÷ 4 = 7 remainder 2.
  8. Remainder 2 points to the 2nd place in the cycle, which is 9. So 3³⁰ ends in 9.
  9. Check another way: 3³⁰ = (3²)¹⁵ = 9¹⁵. An odd power of 9 ends in 9 (9¹ = 9, 9² = 81, 9³ = 729, …). This agrees.
  10. So 30³⁰ = (a number ending in 9) followed by 30 zeros.

Answer: 9

Option-wise explanation

  • a: incorrect — 3³⁰ would end in 1 only if 30 were a multiple of 4 (remainder 0). 30 ÷ 4 leaves remainder 2. The trap is assuming that a 'round' exponent like 30 completes the cycle.
  • b: incorrect — 3 is the unit digit when the exponent leaves remainder 1 on division by 4, as in 3¹, 3⁵, 3²⁹. It also catches students who think a power of 3 must end in 3.
  • c: incorrect — 7 is the unit digit for remainder 3, as in 3³ or 3³¹. It comes from counting one step too far in the cycle 3, 9, 7, 1, or from working out 3³ instead of 3³⁰.
  • d: correct — 30³⁰ = 3³⁰ × 10³⁰. 30 = 4 × 7 + 2, so 3³⁰ ends in the 2nd digit of the cycle 3, 9, 7, 1, which is 9. The 30 zeros come after this 9.

How to eliminate

Remove the zeros first: 30³⁰ = 3³⁰ followed by 30 zeros, so you only need the unit digit of 3³⁰. Fastest route: 3³⁰ = 9¹⁵. Powers of 9 end in 9 when the exponent is odd and in 1 when it is even. 15 is odd, so the digit is 9. This needs no cycle table. All four options are odd, so parity cannot remove any of them. Use the 9-trick or the remainder 30 ÷ 4 = 7 remainder 2. About 20–30 seconds. Attempt this question first: it is a sure mark.

Know more

Last non-zero digit of (digit × 10ᵏ)ⁿ and unit-digit cyclicity

If the base is a single non-zero digit followed by zeros, write it as d × 10ᵏ. Then (d × 10ᵏ)ⁿ = dⁿ × 10ᵏⁿ. The last non-zero digit is the unit digit of dⁿ. This holds only when dⁿ does not end in 0, which is true for every digit d from 1 to 9.

Unit digits of powers repeat in short cycles. Divide the exponent by 4 and use the remainder. A remainder of 0 means the 4th place in the cycle.

Digit Cycle of unit digits Length
0, 1, 5, 6 stays the same 1
4 4, 6 2
9 9, 1 2
2 2, 4, 8, 6 4
3 3, 9, 7, 1 4
7 7, 9, 3, 1 4
8 8, 4, 2, 6 4

Worked variant: Last non-zero digit of 20¹⁵. 20¹⁵ = 2¹⁵ × 10¹⁵. 15 ÷ 4 = 3 remainder 3. The 3rd place in the cycle 2, 4, 8, 6 is 8. Answer: 8.

Caution: the shortcut breaks for bases like 15 or 25. There the 5s pair with 2s inside the power and create extra zeros, so the last non-zero digit has to be found another way.