{
  "id": "5137",
  "ident": "NS.05137",
  "slug": "oeis-187759",
  "title": "Number of ways to write $n = x + y$ ($0 < x < y < n$) with $6x \\pm 1$ and $6y \\pm 1$ prime",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Conjecture: If $n > 200$ is not among $211, 226, 541, 701$, then $a(n) > 0$.\n- _Zhi-Wei Sun_, Jan 03 2013",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [],
  "collection": "oeis",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "OeisA187759.conjecture",
  "statement_lean": "theorem conjecture (n : ℕ) (hn : 200 < n) (hnot : n ∉ ({211, 226, 541, 701} : Finset ℕ)) :\n    0 < a n",
  "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# Number of ways to write $n = x + y$ ($0 < x < y < n$) with $6x \\pm 1$ and $6y \\pm 1$ prime\n\nThe sequence $a(n)$ counts the number of ways to write $n = x + y$ with $0 < x < y < n$ such that\n$6x - 1$, $6x + 1$, $6y - 1$, and $6y + 1$ are all prime numbers.\n\n*References:*\n- [A187759](https://oeis.org/A187759)\n- [Conjectures involving primes and quadratic forms](https://arxiv.org/abs/1211.1588)\n  by *Zhi-Wei Sun*, arXiv:1211.1588 (2012)\n-/\n\n@[expose] public section\n\nnamespace OeisA187759\n\n/--\nThe number of ways to write $n = x + y$ ($0 < x < y < n$) with $6x - 1$, $6x + 1$, $6y - 1$,\nand $6y + 1$ all prime.\n-/\ndef a (n : ℕ) : ℕ :=\n  ∑ x ∈ Finset.Icc 1 ((n - 1) / 2),\n    let y := n - x\n    if Nat.Prime (6 * x - 1) ∧ Nat.Prime (6 * x + 1) ∧\n       Nat.Prime (6 * y - 1) ∧ Nat.Prime (6 * y + 1)\n    then 1 else 0\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 = 1 := by decide\n\n@[category test, AMS 11]\ntheorem a_4 : a 4 = 1 := by decide\n\n@[category test, AMS 11]\ntheorem a_5 : a 5 = 1 := by decide\n\n@[category test, AMS 11]\ntheorem a_8 : a 8 = 2 := by decide\n\n/--\nConjecture: If $n > 200$ is not among $211, 226, 541, 701$, then $a(n) > 0$.\n- _Zhi-Wei Sun_, Jan 03 2013\n-/\n@[category research open, AMS 11]\ntheorem conjecture (n : ℕ) (hn : 200 < n) (hnot : n ∉ ({211, 226, 541, 701} : Finset ℕ)) :\n    0 < a n := by\n  sorry\n\nend OeisA187759\n",
  "statement_hash": "787af5610a0cde0a909f472df5550defe5a1b86e0e072c37adf3638af6963001",
  "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."
}