Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Undirected circular permutations with adjacent products minus one all prime · conjecture_4

Source:OEIS conjectures
Open problem Nobody knows the answer yet — neither on paper nor in Lean. First verified proof: +100 points.
Statement:reviewed
Statement:

Conjecture: Let FF be a finite field with q>7q > 7 elements. Then, there is a circular permutation a1,…,aq−1a_1, \dots, a_{q-1} of the q−1q-1 nonzero elements of FF such that all the q−1q-1 elements a1a2−1,a2a3−1,…,aq−2aq−1−1,aq−1a1−1a_1 a_2 - 1, a_2 a_3 - 1, \dots, a_{q-2} a_{q-1} - 1, a_{q-1} a_1 - 1 are primitive elements of the field FF (i.e., generators of the multiplicative group F∖{0}F \setminus \{0\}).

  • Zhi-Wei Sun
Subjects:Number Theory (math.NT); Commutative Algebra (math.AC)
MSC classes:11, 12
Cite as:NS.05522 [math.NT] · NS.05522v1 for this version
Declaration:OeisA229232.conjecture_4
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60
Statement hash:7bd1a21c16a8cb7fb9549c089c77ec74cc8c35daedf1a5dd0879cbf808787413
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/OEIS/229232.lean

Formal statement

theorem conjecture_4 (F : Type*) [Field F] [Fintype F] (hF : Fintype.card F > 7) :
    let m := Fintype.card F - 1
    ∃ a : Fin m ≃ Fˣ,
      ∀ i : Fin m, IsPrimitiveRoot
        ((a i : F) * (a ⟨(i.val + 1) % m, Nat.mod_lt _ (by omega)⟩ : F) - 1) m
Show the full Challenge.lean (127 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Undirected circular permutations with adjacent products minus one all prime

Number of undirected circular permutations $\pi(1), \dots, \pi(n)$ of $1, \dots, n$ with the $n$
numbers $\pi(1)\pi(2)-1, \pi(2)\pi(3)-1, \dots, \pi(n-1)\pi(n)-1, \pi(n)\pi(1)-1$ all prime.

*References:*
- [A229232](https://oeis.org/A229232)
-/

@[expose] public section

namespace OeisA229232

/-- Number of undirected circular permutations $\pi(1), \dots, \pi(n)$ of $1, \dots, n$ with the
$n$ numbers $\pi(1)\pi(2)-1, \pi(2)\pi(3)-1, \dots, \pi(n-1)\pi(n)-1, \pi(n)\pi(1)-1$ all prime. -/
def a (n : ℕ) : ℕ :=
  if n < 3 then 0
  else
    let l_n : List ℕ := (List.range n).map (· + 1)
    let all_perms : List (List ℕ) := l_n.permutations'
    let good_perms := all_perms.filter fun p =>
      (p.zip (p.rotate (n - 1))).all fun pair => decide ((pair.1 * pair.2 - 1).Prime)
    good_perms.length / (2 * n)

@[category test, AMS 11]
theorem a_1 : a 1 = 0 := by decide

@[category test, AMS 11]
theorem a_2 : a 2 = 0 := by decide

@[category test, AMS 11]
theorem a_3 : a 3 = 0 := by decide

@[category test, AMS 11]
theorem a_4 : a 4 = 1 := by decide +kernel

@[category test, AMS 11]
theorem a_5 : a 5 = 0 := by decide +kernel

@[category test, AMS 11]
theorem a_6 : a 6 = 2 := by decide +kernel

/--
Conjecture: $a(n) > 0$ for all $n > 5$ with $n$ not equal to $13$.
-/
@[category research open, AMS 11]
theorem conjecture_1 (n : ℕ) (hn : n > 5) (hne : n ≠ 13) : a n > 0 := by
  sorry

/--
Conjecture: For any integer $n > 1$, there is a permutation $\pi(1), \dots, \pi(n)$ of $1, \dots, n$
such that the $n$ numbers $2\pi(1)\pi(2)-1, \dots, 2\pi(n-1)\pi(n)-1, 2\pi(n)\pi(1)-1$ are
all prime.
- _Zhi-Wei Sun_
-/
@[category research open, AMS 11]
theorem conjecture_2 (n : ℕ) (hn : n > 1) :
    ∃ π : Equiv.Perm (Fin n), ∀ i : Fin n,
      (2 * ((π i).val + 1) *
        ((π ⟨(i.val + 1) % n, Nat.mod_lt _ (by omega)⟩).val + 1) - 1).Prime := by
  sorry

/--
Conjecture: For any positive integer $n$ not equal to $4$, there is a permutation
$\pi(1), \dots, \pi(n)$ of $1, \dots, n$ such that the $n$ numbers
$2\pi(1)\pi(2)+1, \dots, 2\pi(n-1)\pi(n)+1, 2\pi(n)\pi(1)+1$ are all prime.
- _Zhi-Wei Sun_
-/
@[category research open, AMS 11]
theorem conjecture_3 (n : ℕ) (hn : n > 0) (hne : n ≠ 4) :
    ∃ π : Equiv.Perm (Fin n), ∀ i : Fin n,
      (2 * ((π i).val + 1) * ((π ⟨(i.val + 1) % n, Nat.mod_lt _ hn⟩).val + 1) + 1).Prime := by
  sorry

/--
Conjecture: Let $F$ be a finite field with $q > 7$ elements. Then, there is a circular
permutation $a_1, \dots, a_{q-1}$ of the $q-1$ nonzero elements of $F$ such that all the $q-1$
elements $a_1 a_2 - 1, a_2 a_3 - 1, \dots, a_{q-2} a_{q-1} - 1, a_{q-1} a_1 - 1$ are
primitive elements of the field $F$ (i.e., generators of the multiplicative group
$F \setminus \{0\}$).
- _Zhi-Wei Sun_
-/
@[category research open, AMS 11 12]
theorem conjecture_4 (F : Type*) [Field F] [Fintype F] (hF : Fintype.card F > 7) :
    let m := Fintype.card F - 1
    ∃ a : Fin m ≃ Fˣ,
      ∀ i : Fin m, IsPrimitiveRoot
        ((a i : F) * (a ⟨(i.val + 1) % m, Nat.mod_lt _ (by omega)⟩ : F) - 1) m := by
  sorry

/--
Conjecture: Let $F$ be a finite field with $q > 7$ elements. There is a circular permutation
$b_1, \dots, b_{q-1}$ of the $q-1$ nonzero elements of $F$ such that all the $q-1$ elements
$b_1 b_2 + 1, b_2 b_3 + 1, \dots, b_{q-2} b_{q-1} + 1, b_{q-1} b_1 + 1$ are primitive elements
of the field $F$ (i.e., generators of the multiplicative group $F \setminus \{0\}$).
- _Zhi-Wei Sun_
-/
@[category research open, AMS 11 12]
theorem conjecture_5 (F : Type*) [Field F] [Fintype F] (hF : Fintype.card F > 7) :
    let m := Fintype.card F - 1
    ∃ b : Fin m ≃ Fˣ,
      ∀ i : Fin m, IsPrimitiveRoot
        ((b i : F) * (b ⟨(i.val + 1) % m, Nat.mod_lt _ (by omega)⟩ : F) + 1) m := by
  sorry

end OeisA229232

To prove it: keep every definition of Challenge.lean unchanged and prove OeisA229232.conjecture_4 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_conjecture_4 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry fetch oeis-229232--conjecture-4
nosorry submit oeis-229232--conjecture-4 nosorry/oeis-229232--conjecture-4/Solution.lean --wait

Contributions

No contributions yet — be the first. Submit a proof or a finding.

Research in progress

People working on this problem share their repository and a summary of what they have tried — dead ends included. Read these before starting, build on them, and credit them in prior work when you submit.

Nobody has shared research on this problem yet.

Sign in to share your research.

Statement review

Is the formal statement faithful to the problem? Too weak, too strong, already solved in the literature? An accepted critique creates a new statement version; proofs of the previous version are re-checked and their points adjusted.

Sign in to open a critique.