I want to determine the number of solutions of $f(x)=x^{19}-3x+2=0$ over $\mathbb{Z}_{19}$ and $\mathbb{Z}_{17}$ ($p$-adic integers).
Is the following strategy correct for $\mathbb{Z}_{19}$ (and analogously for $\mathbb{Z}_{17})$? Check for all integers $n\in\{0,\dotsc,19-1=18\}$ whether $f(n)\equiv 0\mod 19$ and $f'(n)\not\equiv 0\mod 19$ both hold. Then Hensel's lemma will guarantee for each such $n$ that there exists a unique $b\in\mathbb{Z}_{19}$ such that $f(b)=0$ and $b\equiv a \mod p$. Thus, the number of solutions of $f(x)=0$ is exactly the number of possible values for $n$ that satisfy the two aforementioned equivalences.