Consider the following system:
$$\begin{align*} \sum\limits_{k =0\space (even)}^{n}{n \choose k} \sqrt{7}^{k} &= 0 \pmod{u}\\ \sum\limits_{k=0 \space (odd)}^{n}{n \choose k} \sqrt{7}^{k-1} &= 1\pmod{u}\end{align*}$$
For a given $u$, how can I determine whether this system has a solution? This means:
Does the system even have a solution?
How can one determine a $n$ for what it has a solution?