How would I calculate the following without using a calculator: $152615278636986567767^{12345678}$ % $5$
I have gotten only the last digit by doing: $152615278636986567767$ % $10 = 7$
Therefore having $7^{12345678}$ % $5$.
I am unsure of how I should do the rest to find the final remainder.
I had a look at similar formats like How would I find the modulo of a large number without using a calculator that supports large numbers?, but I haven't learned any of the following rules/theorems.
% 5
? – Bernard Mar 19 '20 at 15:40