I need help with this problem please
Find the remainder when $7^{7^{7}}$ is divided by $1000$
My try follow
$1000=8×125$ , now
$7 \equiv -1 \;\bmod\; (8)$ $\to$ $7^{7^{7}} \equiv -1 \;\bmod\; (8)$ and
$7^{100}\equiv 1 \;\bmod\; (125)$
Any help to complete this solution?