Let $p$ be prime. There is a whole host of "large" degree polynomials that can be computed efficiently modulo $p$. I was wondering if:
$$q(x) = \sum_{k=0}^{p-1} x^{k^2}$$
is a polynomial that can be evaluated efficiently modulo $p$.
A lot of polynomials like $1 + x + ... + x^l$ can be evaluated efficiently for even large $l$ by taking modular inverses, etc. If we have a rational generating function for the polynomial with a "few" terms it can be evaluated quickly.
So I was wondering if there are any nice expressions for $q(x)$ that make this easy to compute.
Somethings I looked at: https://en.wikipedia.org/wiki/Pentagonal_number_theorem https://mathworld.wolfram.com/JacobiTripleProduct.html