For any positive integer $n$, how many polynomials are there of degree $n$ over $\mathbb{Z}_2$? How many distinct polynomials function from $\mathbb{Z}_2$ to $\mathbb{Z}_2$?
Attempt: first part is clear to me since there are $2$ choices for each coefficient and there are $n$ coefficient so there are $2^n$ such polynomials. I am having problems understanding the second part where I need to find distinct polynomial functions.
If I assume $p(x)$ and $p'(x)$ are two equal polynomial functions over $\mathbb{Z}_2$ such that $p(x)=a_nx^n+\cdots+a_0$ and $p'(x)=a'_nx^n+\cdots+a'_0$, then $p'(x)=p(x)$ for $x=0,1$. So $a'_0=a_0$. And since the degree of these polynomials are $n$ then $a_n=a'_n=1$. So to find distinct polynomial functions we have to consider when $p(x)$ cannot be equal to $p'(x)$ for every value of $x\in\{0,1\}$. From here I cannot proceed. I was looking for solutions. Everywhere I see that they have started the argument with the fact that there are only $4$ such polynomials and then they give the examples of such polynomials. I need help to understand this problem. Thank you