Prove, that $x^2+3=0 \text{ can be solved in } \mathbb{Z}/7^k\mathbb{Z} \quad \forall k$. It's a practice problem in my abstract algebra class, that many people solved but I didn't. The topic of the lecture was about Chinese remainder theorem and groups.
My progress:
My program shows that there are always exactly 2 solutions $\forall k$, but I didn't find any pattern there.
I should probably use CRT here, maybe i can get a system of 2 equations with 2 different roots $(mod \quad 7^{k+1})$ from $7^k$?
A hint will be useful
As mentioned in the comments, Hensel's Lemma finishes this problem easily. In fact, it's such an easy solution that I'd probably assume you haven't learned it. Even without access to that lemma, however, it's fairly easy to give an inductive proof:
First note that for $k=1$, the solutions are $x \equiv \pm 2 \pmod{7}$.
Now, for an arbitrary $k \geq 1$, suppose we've already shown two distinct solutions $x_1, x_2$ to $x^2 + 3 \equiv 0 \pmod{7^k}$. Then consider $x = x_i + 7^ka$ for an unknown $a$ in the equation modulo $7^{k+1}$: $$(x_i+7^ka)^2 + 3 \equiv x_i^2+3+2ax_i7^k \pmod{7^{k+1}}$$ Using the inductive hypothesis, there is some $b \in \mathbb{Z}$ such that $x_i^2+3 = 7^kb$ so the above congruence gives $$(x_i+7^ka)^2 + 3 \equiv 7^k(b+2ax_i) \pmod{7^{k+1}}$$ In particular, $$(x_i+7^ka)^2 + 3 \equiv 0 \pmod{7^{k+1}} \iff b+2ax_i \equiv 0 \pmod{7}.$$
$b$ and $x_1, x_2$ are fixed by the problem, so we're just checking whether this is solved for any $a$, which will be true as long as $x_i$ is invertible mod $7$. Can you see why this is true?