A145040: Primes p such that 2^p-1 is prime and congruent to 31 mod 5!.
Statement
From Jinyuan Wang, Nov 24 2019: 2^a(n) - 1 is congruent to 1 mod 5 since a(n) is congruent to 1 mod 4, so 5^(2^(a(n)-1) - 1) == (5, 2^a(n) - 1) == (2^a(n) - 1, 5)*(-1)^(2^a(n) - 1) == 1 (mod 2^a(n) - 1), where (m,p) is the Legendre symbol. Conjecture: For n > 1, the Mersenne number M(n) = 2^n - 1 is in this sequence iff 5^M(n-1) == 1 (mod M(n)).
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/oeis-a145040.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.
Text: OEIS Foundation, CC BY-SA 4.0. 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/oeis-a145040.lean
import Mathlib /-! # A145040: Primes p such that 2^p-1 is prime and congruent to 31 mod 5!. Source: https://oeis.org/A145040 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_oeis_a145040 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_oeis_a145040