We want to study the factorization of a specific polynomial with coefficients over finite fields. Let $f\in \mathbb{Z}$ a polynomial, we define the polynomial class as follows: suppose $(\bar{f})$ $\in \mathbb{Z}_p$ such that its factorization is $\bar{f}(x)=\bar{f}_1(x)^{e_1}...\bar{f}_g(x)^{e_g}\in \mathbb{F}_p[x]$. Then we denote its class as $d_1^{e_1},...,d_g^{e_g}$. As an example, a polynomial of degree 2 may has class $(2)$, $(1^2)$ or $(1,1)$.
Is there any classification for polynomials up to $5^{th}$ degree related to Legendre Symbol and discriminant?
Maybe this theorem can be useful:
Theorem: Let $f(x)$ be a monic polynomial od degree $n$ with integral coefficients in a $p$-adic field F. Assume that $\bar{f}(x)$ has no repeated roots. Let $r$ be the number of irreductible factors of $\bar{f(x)}$ over the residue class field. Then $r \equiv n$ mod $2$ if and only if the discriminant is a square in F.