I have found out, that the following is true for modular arithmetic when $t$ is a natural number.
$$a^t \bmod\ n \equiv (a\bmod\ n)^t\bmod\ n$$
But I have been unable to find a proof for this, does anyone have a source that proves this conjecture?
I have found out, that the following is true for modular arithmetic when $t$ is a natural number.
$$a^t \bmod\ n \equiv (a\bmod\ n)^t\bmod\ n$$
But I have been unable to find a proof for this, does anyone have a source that proves this conjecture?
Hint
$$a^t-b^t=(a-b)(a^{t-1}+a^{t-2}b+\cdots+ab^{t-2}+b^{t-1})$$
We want to prove $$a^t \bmod\ n \equiv (a\bmod\ n)^t\bmod\ n.$$ Let $ a \bmod n \equiv b $.
Thus by substitution we are proving $$a^t \bmod\ n \equiv b ^t\bmod\ n.$$ But this means we need to show $ n \mid a^t - b^t $ under the assumption that $ n \mid a - b $ .
Then using the fact that $a^t-b^t=(a-b)(a^{t-1}+a^{t-2}b+\cdots+ab^{t-2}+b^{t-1})$