I am asked to find $x\in\mathbb{Z}$ s.t. $|x^2+1|_5\leq5^{-4}$.
I have a method of doing it but I'm not sure if it's right and whether my conclusion is correct either. It also seems exceedingly long and not very efficient so perhaps there might be a better method of going about it.
Here's what I did:
First let $x_0=a_0=2$ and this gives $|x_1^2+1|_5=5^{-1}$.
Next consider $x_1^2=(a_0+5a_1)^2=-1\mod5^2$, for which I solve to get $a_1=1$. This in turn gives me that $|x_1^2+1|_5=5^{-2}$, so I think I may be on the right track. I then considered $x_2^2=(a_0+5a_1+5^2a_2^2)^2=-1\mod5^3$ but then after doing all the algebra, I got $4a_2^2=3 \mod 5$ which has no solutions since 3 is not a quadratic residue modulo $5$. Apart from the initial choice of $a_0$, there is no room for choices for the rest of the $a_i$'s.
The other option was for me to let $x_0=a_0=3$. This gives me $a_1=3$ but when I worked out the algebra for $a_2$, I got $a_2^2=2 \mod 5$, which again has no solution for the same reason.
Is this sufficient to say that no such $x$ exists for my equation?