Define a sequence \(\{s_n\}\) of integers recursively by \(s_1=4\) and
\[
s_n\,=\, s_{n-1}^2 - 2
\]
for \(n\geq 2\). The goal of this problem is to prove the following theorem.
Theorem. Let \(p>2\) be prime. If \(s_{p-1} \equiv 0\;(\mathrm{mod}\;2^p-1)\), then \(2^p-1\) is prime.
This is known as the Lucas-Lehmer primality test for Mersenne primes.
- Prove that for every prime \(q\), there exists a field \(\mathbb{F}\) with \(q^2\) elements such that \(3\) has a square root in \(\mathbb{F}\).
- Let \(\mathbb{F}\) be a field, let \(r\) be a square root of \(3\) in \(\mathbb{F}\), and let \(\omega = 2+r\). Prove that
\[
s_n \,=\, \omega^{2^{n-1}} + \omega^{-2^{n-1}}
\]
in \(\mathbb{F}\) for each \(n \in \mathbb{N}\).
- Let \(\mathbb{F}\) be a field of characteristic \(q>2\), let \(\omega\in\mathbb{F}\), and let \(n\) be a positive integer. Prove that \(\omega\) has order \(2^n\) in \(\mathbb{F}\) if and only if \(\omega^{2^{n-1}}=-1\).
- Prove the theorem. (Hint: Consider the smallest prime \(q\) that divides \(2^p-1\).)