In $\mathbb{F} = \mathbb{F}_7[X]/(X^2+1)$ let $a$ be the class of $X$. What is the smallest positive integer $n$ such that $(a+1)^{7^n} = (a+1)$ ?
I know that the answer is $2$ but I don't see how it works. Can someone explain the logic to me? Because if I get it correctly, $a = X$ in this case and we're reducing $mod$ $X^2 +1$ so how does $ a^{49} +1$ equal to $a+1$ ?
Since this is in characteristic $7$, $(x+1)^7 = x^7 + 1$ for any $x$, and $(a+1)^{49} = (a^7+1)^7 = a^{49} + 1$. Since $a^2 = -1$, $a^{48} = 1$ so $a^{49} + 1 = a + 1$.