3.1.5 Finding Units Digit of xnx^n

This is a common problem on the number sense test which seems considerably difficult, however there is a shortcut method. Without delving too much into the modular arithmetic required, you can think of this problem as exploiting patterns. For example, let’s find the units digit of 3473^{47}, knowing:

  • 31=33^1 = 3 (Units Digit: 3)
  • 32=93^2 = 9 (Units Digit: 9)
  • 33=273^3 = 27 (Units Digit: 7)
  • 34=813^4 = 81 (Units Digit: 1)
  • 35=2433^5 = 243 (Units Digit: 3)
  • 36=7293^6 = 729 (Units Digit: 9)
  • 37=21873^7 = 2187 (Units Digit: 7)
  • 38=65613^8 = 6561 (Units Digit: 1)

From this you can see the units digit repeats every 4th power.

So in order to see what is the units digit you can divide the power in question by 4 then see what the remainder rr is. And in order to find the appropriate units digit, you’d then look at the units digit of 3r3^r. For example, the units digit for 353^5 could be found by saying 5÷45 \div 4 has a remainder of 1 so, the units digit of 353^5 corresponds to that of 313^1 which is 3. So to reiterate, the procedure is:

  1. For low values of nn, compute what the units digit of xnx^n is.
  2. Find out how many unique integers there are before repetition (call it mm).
  3. Find the remainder when dividing the large nn value of interest by mm (call it rr).
  4. Find the units digit of xrx^r, and that’s your answer.

So for our example of 3473^{47}: 47÷447 \div 4 has a remainder of 3 333^3 has the units digit of 7

Other popular numbers of interest are:

Numbers Ending inRepeating Units DigitsNumber of Unique Digits
22, 4, 8, 64
33, 9, 7, 14
44, 62
551
661
77, 9, 3, 14
88, 4, 2, 64
99, 12

Using the above table, we can calculate the units digit of any number raised to any power relatively simple. To show this, find the units digit of 276327^{63}:

From the table, we know it repeats every 4th power, so: 63÷4r=363 \div 4 \Rightarrow r = 3 r=3r = 3 corresponds to 737^3 which ends in a 3.

This procedure is also helpful with raising the imaginary number ii to any power. Remember from Algebra:

  • i1=ii^1 = i
  • i2=1i^2 = -1
  • i3=ii^3 = -i
  • i4=1i^4 = 1
  • i5=ii^5 = i
  • i6=1i^6 = -1
  • i7=ii^7 = -i
  • i8=1i^8 = 1

So, after noticing that it repeats after every 4th power, we can compute for example i114i^{114}. 114÷4114 \div 4 has a remainder of 2i2=12 \Rightarrow i^2 = -1

The following are examples of these types of problems:

Problem Set 3.1.5

Find the units digit of 19719^7
Find the units digit of 17617^6
Find the units digit of 888^8
Find the units digit of 777^7
Find the units digit of 131313^{13}
Find the units digit of 17517^5
i78=i^{78} =
i66=i^{66} =
Find the units digit of 16516^5