Q: Solve the congruence $x^2+x+7\equiv 0$ (mod $27$) by using the method of completing the square from elementary algebra, thus $4x^2+4x+28=(2x+1)^2+27$. Solve this congruence (mod $81$) by the same method.
Thought: I follow its direction to get $$(2x+1)^2 \equiv 0 \quad \text{mod }27$$ But then I don't know how to continue....
On the other hand, I use the method learned in class: first to solve $x^2+x+7\equiv 0$ (mod $3$), which only $x=1$ is a solution. Then it is a singular root since $f'(1)=3\equiv 0$ mod $3$. And $f(1)\equiv 0$ mod $9$ implies that $f(x)\equiv 0$ mod(9) has 3 solutions: $1, 4, 7$. Further to calculate, no solution in mod $81$, and have3 solutions in mod $27$.
But as the question required, how can I use completing square method to do? Thank you.
$$(2x+1)^2\equiv0\implies(2x+1)^2\equiv0,81,324\implies2x+1\equiv0,\pm9,\pm18\implies x\equiv\cdots\pmod{27}$$