what is the units digit of 178^83
8, 4, 2, 6, 8, ......
so
178^1 ends in 8
178^2 ends in the last digit of 8*8 = 4
178^3 ends in the last digit of 4*8 = 2
178^4 ends in the last digit of 2*8 = 6
178^5 ends in the last digit of 6*8 = 8
so now the pattern will repeat
178^(1+4n) ends in 8
178^(2+4n) ends in the last digit of 8*8 = 4
178^(3+4n) ends in the last digit of 4*8 = 2
178^(4+4n) ends in the last digit of 2*8 = 6
where n is an positive integer greater or equal to 0.
83/4=20 reminder 3
178^(3+4*20) last digit = 2