I was trying to solve $y^2 - y \equiv 16 \pmod{512}$ by completing the square. Here is my solution.
\begin{align} y^2 - y &\equiv 16 \pmod{512} \\ 4y^2 - 4y + 1 &\equiv 65 \pmod{512} \\ (2y-1)^2 &\equiv 65 \pmod{512} \\ 2y - 1 &\equiv \pm 33 \pmod{512} &\text{Found by pointwise search.}\\ 2y &\equiv 34, -32 \pmod{512} \\ y &\equiv 17, -16 \pmod{256} \\ y &\in \{17, 273, 240, 496\} \pmod{512} &\text{These values need to be verified.}\\ y &\in \{240, 273\}\pmod{512} \end{align}
I had to solve $x^2 \equiv 65 \pmod{2^9}$ by a pointwise search. Is there any systematic method for solving equivalences of the form $x^2 \equiv a \pmod{2^N}$, or more generally $x^2 \equiv a \pmod{p^N}$ for a prime number $p$.