The remainder when 8^12 − 2 is divided by 7

I will do it by unit digit method

here 8 got 2 unit digit
8 & 6

12 / 2 = 6 so 8^12 gives 6 as unit digit .

…6 -2 now divide by 7