In a calculation process, I saw a modulo equation $$(1+80)^t\equiv 1+80t \pmod{25}.$$
I can't understand why it's correct.
Also, does the modulo equation $(1+n)^t\equiv 1+n^t\pmod k$ always hold? ($n, t, k$ are positive integers.)
Any help is appreciated.
The answer comes from the binomial expansion.
Indeed, note that : $$ (1+80)^t = \sum_{i=0}^t \binom tk 1^k80^{t-k} = 1 + 80t + 80^2M $$
where $M$ is a natural number. Now, $80^2$ is a multiple of $25$, so if we went modulo $25$ only $1+80t$ would remain.
In more generality :
The proof is exactly the same : in the binomial expansion, all terms above $p-1$ vanish mod $m$ because $m$ divides $a^p$.
Suppose $m > 1$ and either $a$ or $b= 1$. Then we reduce to your case.