{
  "id": "5368",
  "ident": "NS.05368",
  "slug": "oeis-218656--conjecture-3",
  "title": "Partitions $2n + 1 = x + y$ with $x^4 + y^4$ prime · conjecture_3",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Conjecture: If $x^4 + y^4$ in the definition of $a(n)$ is replaced by $x^8 + y^8$, then the count\nis positive for all $n \\ge 1$ except for $2n + 1 \\in \\{7, 9, 55, 73, 75, 105\\}$\n(i.e., $n \\in \\{3, 4, 27, 36, 37, 52\\}$).\n- _Thomas Ordowski_, Nov 03 2012; exceptions noted by _Mauro Fiorentini_, Sep 22 2023",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [],
  "collection": "oeis",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "OeisA218656.conjecture_3",
  "statement_lean": "theorem conjecture_3 (n : ℕ) (hn : 1 ≤ n) (h_exc : n ∉ ({3, 4, 27, 36, 37, 52} : Set ℕ)) :\n    ∃ x : ℕ, 1 ≤ x ∧ x ≤ n ∧ Nat.Prime (x ^ 8 + (2 * n + 1 - x) ^ 8)",
  "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# Partitions $2n + 1 = x + y$ with $x^4 + y^4$ prime\n\nFor $n \\ge 1$, $a(n)$ is the number of ways to write $2n + 1$ as $x + y$ with $0 < x < y$ such that\n$x^4 + y^4$ is prime.\n\n*References:*\n- [A218656](https://oeis.org/A218656)\n-/\n\n@[expose] public section\n\nnamespace OeisA218656\n\n/-- Number of ways to write $2n + 1$ as $x + y$ with $0 < x < y$ and\n$x^4 + y^4$ prime. -/\ndef a (n : ℕ) : ℕ :=\n  ∑ x ∈ Finset.Icc 1 n,\n    if Nat.Prime (x ^ 4 + (2 * n + 1 - x) ^ 4) then 1 else 0\n\n@[category test, AMS 11]\ntheorem a_1 : a 1 = 1 := by decide\n\n@[category test, AMS 11]\ntheorem a_2 : a 2 = 2 := by\n  have h1 : Nat.Prime 257 := by norm_num\n  have h2 : Nat.Prime 97 := by norm_num\n  have hIcc : Finset.Icc 1 2 = ({1, 2} : Finset ℕ) := by decide\n  rw [a, hIcc]\n  have hcongr :\n      (∑ x ∈ ({1, 2} : Finset ℕ),\n        if Nat.Prime (x ^ 4 + (2 * 2 + 1 - x) ^ 4) then 1 else 0) =\n      ∑ x ∈ ({1, 2} : Finset ℕ), 1 := by\n    refine Finset.sum_congr rfl fun x hx => ?_\n    fin_cases hx <;> simp [h1, h2]\n  rw [hcongr]\n  decide\n\n@[category test, AMS 11]\ntheorem a_3 : a 3 = 3 := by\n  have h1 : Nat.Prime 1297 := by norm_num\n  have h2 : Nat.Prime 641 := by norm_num\n  have h3 : Nat.Prime 337 := by norm_num\n  have hIcc : Finset.Icc 1 3 = ({1, 2, 3} : Finset ℕ) := by decide\n  rw [a, hIcc]\n  have hcongr :\n      (∑ x ∈ ({1, 2, 3} : Finset ℕ),\n        if Nat.Prime (x ^ 4 + (2 * 3 + 1 - x) ^ 4) then 1 else 0) =\n      ∑ x ∈ ({1, 2, 3} : Finset ℕ), 1 := by\n    refine Finset.sum_congr rfl fun x hx => ?_\n    fin_cases hx <;> simp [h1, h2, h3]\n  rw [hcongr]\n  decide\n\n@[category test, AMS 11]\ntheorem a_4 : a 4 = 2 := by\n  have h1 : ¬ Nat.Prime 4097 := by norm_num\n  have h2 : Nat.Prime 2417 := by norm_num\n  have h3 : ¬ Nat.Prime 1377 := by norm_num\n  have h4 : Nat.Prime 881 := by norm_num\n  have hIcc : Finset.Icc 1 4 = ({1, 2, 3, 4} : Finset ℕ) := by decide\n  rw [a, hIcc]\n  have hcongr :\n      (∑ x ∈ ({1, 2, 3, 4} : Finset ℕ),\n        if Nat.Prime (x ^ 4 + (2 * 4 + 1 - x) ^ 4) then 1 else 0) =\n      ∑ x ∈ ({1, 2, 3, 4} : Finset ℕ), if x = 2 ∨ x = 4 then 1 else 0 := by\n    refine Finset.sum_congr rfl fun x hx => ?_\n    fin_cases hx <;> simp <;> first | exact h1 | exact h2 | exact h3 | exact h4\n  rw [hcongr]\n  decide\n\n@[category test, AMS 11]\ntheorem a_5 : a 5 = 3 := by\n  have h1 : ¬ Nat.Prime 10001 := by norm_num\n  have h2 : Nat.Prime 6577 := by norm_num\n  have h3 : Nat.Prime 4177 := by norm_num\n  have h4 : Nat.Prime 2657 := by norm_num\n  have h5 : ¬ Nat.Prime 1921 := by norm_num\n  have hIcc : Finset.Icc 1 5 = ({1, 2, 3, 4, 5} : Finset ℕ) := by decide\n  rw [a, hIcc]\n  have hcongr :\n      (∑ x ∈ ({1, 2, 3, 4, 5} : Finset ℕ),\n        if Nat.Prime (x ^ 4 + (2 * 5 + 1 - x) ^ 4) then 1 else 0) =\n      ∑ x ∈ ({1, 2, 3, 4, 5} : Finset ℕ), if x = 2 ∨ x = 3 ∨ x = 4 then 1 else 0 := by\n    refine Finset.sum_congr rfl fun x hx => ?_\n    fin_cases hx <;> simp <;> first | exact h1 | exact h2 | exact h3 | exact h4 | exact h5\n  rw [hcongr]\n  decide\n\n/--\nConjecture: $a(n) > 0$ for all $n \\ge 1$.\n-/\n@[category research open, AMS 11]\ntheorem conjecture_1 (n : ℕ) (hn : 1 ≤ n) : 0 < a n := by\n  sorry\n\n/--\nConjecture: If $x^4 + y^4$ in the definition of $a(n)$ is\nreplaced by $x^2 + y^2$, then the count is positive for all $n \\ge 1$.\n- _Thomas Ordowski_, Nov 03 2012\n-/\n@[category research open, AMS 11]\ntheorem conjecture_2 (n : ℕ) (hn : 1 ≤ n) :\n    ∃ x : ℕ, 1 ≤ x ∧ x ≤ n ∧ Nat.Prime (x ^ 2 + (2 * n + 1 - x) ^ 2) := by\n  sorry\n\n/--\nConjecture: If $x^4 + y^4$ in the definition of $a(n)$ is replaced by $x^8 + y^8$, then the count\nis positive for all $n \\ge 1$ except for $2n + 1 \\in \\{7, 9, 55, 73, 75, 105\\}$\n(i.e., $n \\in \\{3, 4, 27, 36, 37, 52\\}$).\n- _Thomas Ordowski_, Nov 03 2012; exceptions noted by _Mauro Fiorentini_, Sep 22 2023\n-/\n@[category research open, AMS 11]\ntheorem conjecture_3 (n : ℕ) (hn : 1 ≤ n) (h_exc : n ∉ ({3, 4, 27, 36, 37, 52} : Set ℕ)) :\n    ∃ x : ℕ, 1 ≤ x ∧ x ≤ n ∧ Nat.Prime (x ^ 8 + (2 * n + 1 - x) ^ 8) := by\n  sorry\n\n/--\nConjecture: If $x^4 + y^4$ in the definition of $a(n)$ is replaced by $x^{16} + y^{16}$, then the\ncount is positive for all $n \\ge 1$ except for $2n + 1 \\in \\{5, 9\\}$ (i.e., $n \\in \\{2, 4\\}$).\n- _Thomas Ordowski_, Nov 03 2012; exceptions noted by _Mauro Fiorentini_, Sep 22 2023\n-/\n@[category research open, AMS 11]\ntheorem conjecture_4 (n : ℕ) (hn : 1 ≤ n) (h_exc : n ∉ ({2, 4} : Set ℕ)) :\n    ∃ x : ℕ, 1 ≤ x ∧ x ≤ n ∧ Nat.Prime (x ^ 16 + (2 * n + 1 - x) ^ 16) := by\n  sorry\n\nend OeisA218656\n",
  "statement_hash": "1eb0115b4306f93cb2dbe3c7f63789d46a9ab89854603df1d4a20145607edc66",
  "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."
}