In class we are learning about finite fields and polynomials in finite fields my professor wrote that
$Z_{5[x]}/f(x)$ where $f(x)=x^3+x+1$
Here P = 5, n = 3 $|F|=5^3=125$ So F has 125 elements
I'm a bit confused as to how he determined this, could someone provide me with a bit of an explanation?