{
  "id": "6313",
  "ident": "NS.06313",
  "slug": "oeis-3625",
  "title": "Primes congruent to $\\{3, 5, 6\\} \\pmod 7$",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Conjecture: Represents primes $p$ where the polynomial $x^2 + x + 2$ is irreducible over $\\text{GF}(p)$.\n- _Federico Provvedi_, Jul 21 2018\n\nAnswer: true, the equivalence is classical (complete the square: $4(x^2+x+2) = (2x+1)^2 + 7$,\nthen use quadratic reciprocity).",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "formal_proof"
  ],
  "collection": "oeis",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "OeisA3625.conjecture",
  "statement_lean": "theorem conjecture (p : ℕ) (hp : p.Prime) :\n    A p ↔ Irreducible (X ^ 2 + X + 2 : (ZMod p)[X])",
  "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# Primes congruent to $\\{3, 5, 6\\} \\pmod 7$\n\nPrimes congruent to $3, 5, \\text{ or } 6 \\pmod 7$.\n\n*References:*\n- [A003625](https://oeis.org/A003625)\n-/\n\n@[expose] public section\n\nnamespace OeisA3625\n\n/-- A prime $p$ is in A003625 if $p \\equiv 3, 5, \\text{ or } 6 \\pmod 7$. -/\ndef A (p : ℕ) : Prop :=\n  p.Prime ∧ (p % 7 = 3 ∨ p % 7 = 5 ∨ p % 7 = 6)\n\nopen Polynomial\n\n/-- $3$ is in the sequence A003625. -/\n@[category test, AMS 11]\ntheorem a_3 : A 3 := by\n  unfold A\n  decide +native\n\n/-- $5$ is in the sequence A003625. -/\n@[category test, AMS 11]\ntheorem a_5 : A 5 := by\n  unfold A\n  decide +native\n\n/-- $13$ is in the sequence A003625. -/\n@[category test, AMS 11]\ntheorem a_13 : A 13 := by\n  unfold A\n  decide +native\n\n/-- $17$ is in the sequence A003625. -/\n@[category test, AMS 11]\ntheorem a_17 : A 17 := by\n  unfold A\n  decide +native\n\n/-- $19$ is in the sequence A003625. -/\n@[category test, AMS 11]\ntheorem a_19 : A 19 := by\n  unfold A\n  decide +native\n\nset_option linter.style.formal_proof_palomar false in\n/--\nConjecture: Represents primes $p$ where the polynomial $x^2 + x + 2$ is irreducible over $\\text{GF}(p)$.\n- _Federico Provvedi_, Jul 21 2018\n\nAnswer: true, the equivalence is classical (complete the square: $4(x^2+x+2) = (2x+1)^2 + 7$,\nthen use quadratic reciprocity).\n-/\n@[category research solved, AMS 11,\n  formal_proof using lean4 at\n    \"https://github.com/KitaKen1/oeis-a003625-irreducibility/blob/d6c9f90827805142d81eee4e3d9099c8b48cbcc8/lean/OeisA3625FC.lean#L103-L104\"]\ntheorem conjecture (p : ℕ) (hp : p.Prime) :\n    A p ↔ Irreducible (X ^ 2 + X + 2 : (ZMod p)[X]) := by\n  sorry\n\nend OeisA3625\n",
  "statement_hash": "fe0df576d559a2b2a8f9b2d987028eb98b70ea95b319eebce7f52add0f4f9ee3",
  "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."
}