• Practice
  • About 15 min
  • 5 practice questions

Unit digit of a power: the cyclicity method

Find the last digit of powers such as 7^95 or 2^51 × 3^42 using the repeating cycles of last digits, and avoid the remainder-zero trap.

If something looks wrong, please tell us.

"Find the unit digit of 7^95" cannot be done by calculating 7^95, which has 81 digits. But the last digits of powers repeat in short cycles, so a small division gives the answer in seconds. This is one of the most dependable scoring questions in the topic.

Only the last digit of the base matters

When you multiply two numbers, the unit digit of the product depends only on their unit digits. So the unit digit of 1237^n is the same as that of 7^n, and 98^40 behaves like 8^40.

The cycles

Write out the last digits of successive powers and they repeat. For 2: 2, 4, 8, 16, 32, ... gives last digits 2, 4, 8, 6, then 2 again. Every digit repeats with a cycle of length 1, 2 or 4.

Unit-digit cycles
Last digit of baseCycle of last digitsCycle length
0, 1, 5, 6always the same digit1
44, 62
99, 12
22, 4, 8, 64
33, 9, 7, 14
77, 9, 3, 14
88, 4, 2, 64

The method

  1. Take the last digit of the base.
  2. For 2, 3, 7, 8: divide the exponent by 4 and find the remainder r. Use the rth digit of the cycle. If r = 0, use the 4th digit.
  3. For 4 and 9: odd exponent gives the first digit (4 or 9), even exponent gives the second (6 or 1).
  4. For 0, 1, 5, 6: the unit digit never changes.

To find a remainder on division by 4 quickly, look only at the last two digits of the exponent: 1,234,567 leaves the same remainder as 67, which is 3.

Worked example 1

Question: Find the unit digit of 7^95. Working: 95 ÷ 4 leaves remainder 3. The cycle for 7 is 7, 9, 3, 1; the 3rd digit is 3. Answer: 3.

Worked example 2: remainder zero

Question: Find the unit digit of 98^40. Working: The base ends in 8. 40 ÷ 4 leaves remainder 0, so use the 4th digit of 8, 4, 2, 6, which is 6. Answer: 6. The trap is to treat remainder 0 as "the zeroth term" or to answer 8.

Worked example 3: a product

Question: Find the unit digit of 2^51 × 3^42. Working: 51 ÷ 4 leaves 3, so 2^51 ends in 8. 42 ÷ 4 leaves 2, so 3^42 ends in 9. Multiply the unit digits: 8 × 9 = 72, which ends in 2. Answer: 2.

Worked example 4: a sum, and a base ending in 4

Question: Find the unit digit of 3^65 + 1234^567. Working: 65 ÷ 4 leaves 1, so 3^65 ends in 3. The base 1234 ends in 4 and the exponent 567 is odd, so that power ends in 4. Add: 3 + 4 = 7. Answer: 7.

Unit digit of a^n: take a's last digit; for 2, 3, 7, 8 use the remainder of n ÷ 4 (remainder 0 means the 4th digit); for 4 and 9 use odd/even; 0, 1, 5, 6 never change.

— Rule to remember

Traps

  • Using the whole base instead of its last digit is harmless but slow; using the last digit of the exponent instead of its remainder on division by 4 is wrong.
  • For a product, multiply the unit digits; for a sum, add them; in both cases keep only the last digit of the result.
  • For a difference, if the first unit digit is smaller, borrow 10: a unit digit of 3 minus a unit digit of 7 gives 13 − 7 = 6 (when the first number is the larger).

Key takeaways: learn the four-term cycles of 2, 3, 7 and 8 and the two-term cycles of 4 and 9; divide the exponent by 4; remember that remainder 0 means the last term of the cycle; and combine unit digits for products, sums and differences.

Check your understanding

  1. 1. Find the unit digit of 3^103.

    1. 3
    2. 9
    3. 7
    4. 1
    Show answer

    Answer: C. 103 ÷ 4 leaves remainder 3. The cycle of 3 is 3, 9, 7, 1, and its 3rd digit is 7.

  2. 2. Find the unit digit of 2^100.

    1. 6
    2. 2
    3. 4
    4. 8
    Show answer

    Answer: A. 100 ÷ 4 leaves remainder 0, so take the 4th digit of the cycle 2, 4, 8, 6, which is 6.

  3. 3. Find the unit digit of 659^133.

    1. 1
    2. 3
    3. 7
    4. 9
    Show answer

    Answer: D. The base ends in 9. The cycle of 9 is 9, 1: an odd exponent gives 9. Since 133 is odd, the unit digit is 9.

  4. 4. Find the unit digit of 17^23 × 24^35.

    1. 4
    2. 2
    3. 8
    4. 6
    Show answer

    Answer: B. 17^23: 23 ÷ 4 leaves 3, and the 3rd digit of 7, 9, 3, 1 is 3. 24^35: the base ends in 4 with an odd exponent, so 4. Then 3 × 4 = 12, which ends in 2.

  5. 5. Find the unit digit of 13^42 − 7^38.

    1. 0
    2. 2
    3. 4
    4. 8
    Show answer

    Answer: A. 13^42: 42 ÷ 4 leaves 2, so the 2nd digit of 3, 9, 7, 1 is 9. 7^38: 38 ÷ 4 leaves 2, so the 2nd digit of 7, 9, 3, 1 is 9. The larger number 13^42 ends in 9 and so does 7^38, so the difference ends in 9 − 9 = 0.

Privacy · Terms · Refunds · Delivery