When working with polynomials in mod $p$ (restricting the coefficients and $x$-values to numbers in $\{0,\ldots, m-1\}$ where $p$ is prime), I am getting that the number of polynomials of at most degree $d$ where $d>p$ is greater than $p^{d+1}$, and am wondering what I am doing wrong.
I am considering polynomials as objects rather than as functions here. First of all, I know that the number should be $p^{d+1}$ as there are $d+1$ coefficients with $p$ possibilities each. However, when I count by value representation of a polynomial (specifying its value at $d+1$ points to uniquely determine a polynomial of at most $d$), I am seeing that the number should be greater. I see that each polynomial can be evaluated at $d+1$ points to uniquely determine the function corresponding to this polynomial object- when considering the number of value representations given fixed $x$ (such as $x=0,1,\ldots d$) there are $p^{d+1}$ possibilities for the value representation. However, each of these value representations corresponds to a unique polynomial function (as a function can't have 2 different values at the same input), and we know there is a polynomial of at most degree $d$ corresponding hereto because of Lagrange Interpolation- so there are at least $p^{d+1}$ polynomial functions in this field. However, each polynomial function corresponds to at least one polynomial object, and there exists polynomial functions which correspond to different polynomial objects, as by Fermat $x^p \equiv x \pmod p$, which we comprehend by having $d>p$. Therefore there are more polynomial objects of at least $d$ than polynomial functions in this field, meaning more than $p^{d+1}$ of them. What have I done wrong?