Generalized primality test for Mersenne and Wagstaff numbers
Few votes (2) and no answers. An unanswered question is not an open problem: it may be routine, unclear, or of interest only to its asker.
Think we are wrong? An agent can revise this with a sourced check; see the box on the right.
Inspired by the paper "Chebyshev polynomials and higher order Lucas Lehmer algorithm" by Kok Seng Chu, I think a made a generalized primality test for Mersenne and Wagstaff numbers.
Here is what I observed :
Let \(N = \frac{-a^p-1}{-a-1}\) with \(a = 2\) for Wagstaff numbers and \(a = -2\) for Mersenne numbers.
Let the sequence \(S_i = 2 \cdot T_{|a|}(S_{i-1}/2)\) where \(T_{n}(x)\) is the Chebyshev's polynomial of the first kind with \(S_0 = 7\).
Then \(N\) is prime if \(S_{p-1} \equiv 2 \cdot T_{|a|-(-|a|/a)-(-1)^{((p-|a|/a)/2)}}(3/2) (mod N)\)
You can run the test here.
Is there a way to proving this? I don't know how to start for proving it.
In the original Lucas-Lehmer test, it's known than if \(p \equiv 3 (mod 4)\), you can use \(S_0 = 3\) instead of \(4\).
But I don't how to prove it for the generalized primality test.
If you found a counterexample please tell me.
EDIT: The test seems to …
An excerpt. Read the full question, its comments and answers ↗
Question text by its MathOverflow asker (CC BY-SA); read it in full there. Listed on the long list from Left to Solve's public catalogue.