I am trying to find the remainder of $4^{220}$ when divided by $7$.
$$4^{220}=2^{440}$$
Now had the question been what is the remainder of $2^{220}$ when divided by $10$, you would simply look at cycles in the last digit.
Last.Digit($2^1$)=$2$
Last.Digit($2^2$)=$4$
Last.Digit($2^3$)=$8$
Last.Digit($2^4$)=$6$
...
So the repeating cycle is $2$,$4$,$6$,$8$. Even if the question had asked the remainder if divided by $5$, one could use the last digits of $2^n$ to find the solution. Is there a way to find the remainder using this cycle when divided by $7$? Or do I literally have to compute the remainder of each power divided by $7$, as such
Remainder of ($2^1$,$7$)=$2$
Remainder of ($2^2$,$7$)=$4$
Remainder of ($2^3$,$7$)=$1$
...
A repeating cycle of $3k$. So $440=3(146)+2$, Hence the remainder is $4$.