{
  "id": "5522",
  "ident": "NS.05522",
  "slug": "oeis-229232--conjecture-4",
  "title": "Undirected circular permutations with adjacent products minus one all prime · conjecture_4",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Conjecture: Let $F$ be a finite field with $q > 7$ elements. Then, there is a circular\npermutation $a_1, \\dots, a_{q-1}$ of the $q-1$ nonzero elements of $F$ such that all the $q-1$\nelements $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\nprimitive elements of the field $F$ (i.e., generators of the multiplicative group\n$F \\setminus \\{0\\}$).\n- _Zhi-Wei Sun_",
  "subjects": [
    "math.NT",
    "math.AC",
    "msc:11",
    "msc:12"
  ],
  "tags": [],
  "collection": "oeis",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "OeisA229232.conjecture_4",
  "statement_lean": "theorem conjecture_4 (F : Type*) [Field F] [Fintype F] (hF : Fintype.card F > 7) :\n    let m := Fintype.card F - 1\n    ∃ a : Fin m ≃ Fˣ,\n      ∀ i : Fin m, IsPrimitiveRoot\n        ((a i : F) * (a ⟨(i.val + 1) % m, Nat.mod_lt _ (by omega)⟩ : F) - 1) m",
  "challenge_source": "/-\nCopyright 2026 The Formal Conjectures Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-/\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# Undirected circular permutations with adjacent products minus one all prime\n\nNumber of undirected circular permutations $\\pi(1), \\dots, \\pi(n)$ of $1, \\dots, n$ with the $n$\nnumbers $\\pi(1)\\pi(2)-1, \\pi(2)\\pi(3)-1, \\dots, \\pi(n-1)\\pi(n)-1, \\pi(n)\\pi(1)-1$ all prime.\n\n*References:*\n- [A229232](https://oeis.org/A229232)\n-/\n\n@[expose] public section\n\nnamespace OeisA229232\n\n/-- Number of undirected circular permutations $\\pi(1), \\dots, \\pi(n)$ of $1, \\dots, n$ with the\n$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. -/\ndef a (n : ℕ) : ℕ :=\n  if n < 3 then 0\n  else\n    let l_n : List ℕ := (List.range n).map (· + 1)\n    let all_perms : List (List ℕ) := l_n.permutations'\n    let good_perms := all_perms.filter fun p =>\n      (p.zip (p.rotate (n - 1))).all fun pair => decide ((pair.1 * pair.2 - 1).Prime)\n    good_perms.length / (2 * n)\n\n@[category test, AMS 11]\ntheorem a_1 : a 1 = 0 := by decide\n\n@[category test, AMS 11]\ntheorem a_2 : a 2 = 0 := by decide\n\n@[category test, AMS 11]\ntheorem a_3 : a 3 = 0 := by decide\n\n@[category test, AMS 11]\ntheorem a_4 : a 4 = 1 := by decide +kernel\n\n@[category test, AMS 11]\ntheorem a_5 : a 5 = 0 := by decide +kernel\n\n@[category test, AMS 11]\ntheorem a_6 : a 6 = 2 := by decide +kernel\n\n/--\nConjecture: $a(n) > 0$ for all $n > 5$ with $n$ not equal to $13$.\n-/\n@[category research open, AMS 11]\ntheorem conjecture_1 (n : ℕ) (hn : n > 5) (hne : n ≠ 13) : a n > 0 := by\n  sorry\n\n/--\nConjecture: For any integer $n > 1$, there is a permutation $\\pi(1), \\dots, \\pi(n)$ of $1, \\dots, n$\nsuch 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\nall prime.\n- _Zhi-Wei Sun_\n-/\n@[category research open, AMS 11]\ntheorem conjecture_2 (n : ℕ) (hn : n > 1) :\n    ∃ π : Equiv.Perm (Fin n), ∀ i : Fin n,\n      (2 * ((π i).val + 1) *\n        ((π ⟨(i.val + 1) % n, Nat.mod_lt _ (by omega)⟩).val + 1) - 1).Prime := by\n  sorry\n\n/--\nConjecture: For any positive integer $n$ not equal to $4$, there is a permutation\n$\\pi(1), \\dots, \\pi(n)$ of $1, \\dots, n$ such that the $n$ numbers\n$2\\pi(1)\\pi(2)+1, \\dots, 2\\pi(n-1)\\pi(n)+1, 2\\pi(n)\\pi(1)+1$ are all prime.\n- _Zhi-Wei Sun_\n-/\n@[category research open, AMS 11]\ntheorem conjecture_3 (n : ℕ) (hn : n > 0) (hne : n ≠ 4) :\n    ∃ π : Equiv.Perm (Fin n), ∀ i : Fin n,\n      (2 * ((π i).val + 1) * ((π ⟨(i.val + 1) % n, Nat.mod_lt _ hn⟩).val + 1) + 1).Prime := by\n  sorry\n\n/--\nConjecture: Let $F$ be a finite field with $q > 7$ elements. Then, there is a circular\npermutation $a_1, \\dots, a_{q-1}$ of the $q-1$ nonzero elements of $F$ such that all the $q-1$\nelements $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\nprimitive elements of the field $F$ (i.e., generators of the multiplicative group\n$F \\setminus \\{0\\}$).\n- _Zhi-Wei Sun_\n-/\n@[category research open, AMS 11 12]\ntheorem conjecture_4 (F : Type*) [Field F] [Fintype F] (hF : Fintype.card F > 7) :\n    let m := Fintype.card F - 1\n    ∃ a : Fin m ≃ Fˣ,\n      ∀ i : Fin m, IsPrimitiveRoot\n        ((a i : F) * (a ⟨(i.val + 1) % m, Nat.mod_lt _ (by omega)⟩ : F) - 1) m := by\n  sorry\n\n/--\nConjecture: Let $F$ be a finite field with $q > 7$ elements. There is a circular permutation\n$b_1, \\dots, b_{q-1}$ of the $q-1$ nonzero elements of $F$ such that all the $q-1$ elements\n$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\nof the field $F$ (i.e., generators of the multiplicative group $F \\setminus \\{0\\}$).\n- _Zhi-Wei Sun_\n-/\n@[category research open, AMS 11 12]\ntheorem conjecture_5 (F : Type*) [Field F] [Fintype F] (hF : Fintype.card F > 7) :\n    let m := Fintype.card F - 1\n    ∃ b : Fin m ≃ Fˣ,\n      ∀ i : Fin m, IsPrimitiveRoot\n        ((b i : F) * (b ⟨(i.val + 1) % m, Nat.mod_lt _ (by omega)⟩ : F) + 1) m := by\n  sorry\n\nend OeisA229232\n",
  "statement_hash": "7bd1a21c16a8cb7fb9549c089c77ec74cc8c35daedf1a5dd0879cbf808787413",
  "toolchain": "leanprover/lean4:v4.33.1",
  "upstream_commit": "f9b3868d5ca994a7bf95039bcec05338c0c21e2f",
  "workspace": "formal-conjectures",
  "field": "math",
  "formalization": "formal",
  "verification": "lean-kernel",
  "license": "Apache-2.0",
  "attribution": "google-deepmind/formal-conjectures contributors",
  "metric_name": null,
  "metric_direction": null,
  "critiques": [],
  "public_partial_proofs": [],
  "research_threads": [],
  "instructions": "Read research_threads first: other people's public repositories and what they already tried. Write Solution.lean starting from challenge_source. Keep every definition identical, prove decl_name with exactly the same type, no sorry in its dependency closure, no new axioms, no native_decide, no metaprogramming. Submit with POST /api/v1/submissions."
}