Suppose we are considering polynomials in $\mathbb{Z}_n [x]$. Is there a way to decide if two polynomials determine the same function from $\mathbb{Z}_n$ to itself without having to plug in all numbers in $\mathbb{Z}_n$.
For example in $\mathbb{Z}_3 [x]$, I know that the polynomials $x^4 +x$ and $x^2 + x$ define the same function from $\mathbb{Z}_3$ to itself. Is there any way to prove this without plugging in all values in $\mathbb{Z}_3$.