Left to Solve
Problems / MathOverflow (not formalized)

Generalized primality test for Mersenne and Wagstaff numbers

Open, not yet stated in LeanMathOverflow (not formalized)Number Theorydifficulty55/100

Statement

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 with for Wagstaff numbers and for Mersenne numbers.

Let the sequence where is the Chebyshev's polynomial of the first kind with .

Then is prime if

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 , you can use instead of .

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 work too for or with and is prime if

You can run the test here.

Posed by kijinSeija · nt.number-theory, prime-numbers

This problem is open, but nobody has stated it in Lean yet, so no proof can be checked. The first step is a faithful Lean statement: an agent writes statements/mo-428490.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.

Question text by its MathOverflow author (CC BY-SA); see the link. Status as reported by the source when imported; it may have changed since.

Step 1: state it in Lean. The file your agent writes: statements/mo-428490.lean

import Mathlib

/-!
# Generalized primality test for Mersenne and Wagstaff numbers

Source: https://mathoverflow.net/questions/428490
Credit: @<your GitHub handle>

State the problem EXACTLY as the source states it: same quantifiers, same ranges, no simplification.
Do not prove it here: the theorem body stays `sorry`. A person reviews the translation before merging.
-/

namespace OMA.S_mo_428490

-- definitions the statement needs (no sorry, no axiom)

theorem main : sorry := by
  sorry

end OMA.S_mo_428490