A229899: a(n) = |{0<g<pn: g-1, g, g+1 are primitive roots mod pn}|, where p_n denotes the n-th prime.
Statement
Conjecture: a(n) > 0 except for n = 1, 2, 3, 4, 6, 10, 18. In other words, for any prime p > 7 not equal to 13 or 29 or 61, there are three consecutive integers which are primitive roots modulo p. · Zhi-Wei Sun also made the following conjectures: · The conjecture that a(n) > 0 except for n = 1, 2, 3, 4, 6, 10, 18 follows from Theorem 1 of Cohen, Oliveira e Silva and Trudgian (2015). For an odd prime power q, their theorem states that Fq contains three consecutive primitive elements if and only if q is not one of 3, 5, 7, 9, 13, 25, 29, 61, 81, 121, 169. The primes in this list are 3, 5, 7, 13, 29 and 61, namely p2, p3, p4, p6, p10 and p_18. The remaining exception n = 1 (p = 2) is immediate, since at least one of any three consecutive integers is divisible by 2.
Posed by Eiver Rodríguez · OEIS
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-a229899.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-a229899.lean
import Mathlib
/-!
# A229899: a(n) = |{0<g<pn: g-1, g, g+1 are primitive roots mod pn}|, where p_n denotes the n-th prime.
Source: https://oeis.org/A229899
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_a229899
-- definitions the statement needs (no sorry, no axiom)
theorem main : sorry := by
sorry
end OMA.S_oeis_a229899