The value of $(1000^i \mod 7)$ alternates between 1 and 6, as such:
$$ 1000^0 \mod 7 = 1 $$ $$ 1000^1 \mod 7 = 6 $$ $$ 1000^2 \mod 7 = 1 $$ $$ 1000^3 \mod 7 = 6 $$
But as $i$ grows larger, these expressions can no longer be calculated easily by hand.
I can simplify the expression as such:
$$ 1000^i \mod 7 = (1000 \mod 7)^i \mod 7 = 6^i \mod 7 $$
But even here, when $i$ grows larger, say, when $i = 50$, the expression $6^{50} \mod 7$ isn't easy to calculate, and necessitates splitting $6^{50}$ into smaller "pieces" and composing them.
But I know that the value of $6^i \mod 7$ is very simple: it alternates between 1 and 6 depending on the parity of $i$, so I feel like there must be a way to simplify this expression to capture this alternating property without having to resort to manually calculating each one by hand.
Am I missing something? Thanks for your help.
$$1000\equiv-1\pmod7$$
$$\implies(1000)^n\equiv(-1)^n\pmod7$$
If $n=2m+1,(-1)^n=(-1)^{2m+1}=-1\equiv6\pmod7$