I'm struggling to understand the concept behind questions of the form $f(x) = g(x) \bmod h(x)$. The example I have infront of me states
"... note that $x\cdot x = x+1$ since $x^2 \bmod (x^2+x+1) = x+1$"
It looks super simple but I think I'm missing just one small key bit of information yet I can't find it anywhere?
I forgot to include that they are in a field of characteristic 2
Any direction would be appreciated!
This is wrong, unless the coefficients are in a field of characteristic 2.
$$ x^2 + x + 1 \equiv 0 \pmod {x^2 + x + 1} $$ $$ x^2 \equiv -x-1 \pmod {x^2 + x + 1} $$