{
  "id": "4791",
  "ident": "NS.04791",
  "slug": "oeis-113271",
  "title": "Ascending descending base exponent transform of $2^n$",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "The first prime terms in this (always odd) sequence are $a(1) = 3$, $a(3) = 41$, and\n$a(4) = 593$. What is the next prime?\n\nThe OEIS comment currently says `$a(5) = 543$`, but this conflicts with its defining formula,\nb-file, and examples: the actual index-five term is the composite number `135457`. Consequently the\nsearch for the next prime must begin after index `4`, not after index `5`.",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "oeis",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "OeisA113271.conjecture1",
  "statement_lean": "theorem conjecture1 :\n  conjecture1.answer = a (sInf {n : ℕ | 4 < n ∧ (a n).Prime})",
  "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# Ascending descending base exponent transform of $2^n$\n\n*References:*\n- [A113271](https://oeis.org/A113271)\n-/\n\n@[expose] public section\n\nnamespace OeisA113271\n\n/--\nThe primary defining sequence `a`.\n$a(n)$ is the ascending descending base exponent transform of $2^n$.\n$$a(n) = \\sum_{i=0}^n 2^{i \\cdot 2^{n-i}}$$\n-/\ndef a (n : ℕ) : ℕ :=\n  ∑ i ∈ Finset.range (n + 1), 2 ^ (i * 2 ^ (n - i))\n\n@[category test, AMS 11]\ntheorem a_0 : a 0 = 1 := by rfl\n\n@[category test, AMS 11]\ntheorem a_1 : a 1 = 3 := by rfl\n\n@[category test, AMS 11]\ntheorem a_2 : a 2 = 9 := by rfl\n\n@[category test, AMS 11]\ntheorem a_3 : a 3 = 41 := by rfl\n\n@[category test, AMS 11]\ntheorem a_4 : a 4 = 593 := by rfl\n\n@[category test, AMS 11]\ntheorem a_4_prime : (a 4).Prime := by\n  rw [a_4]\n  norm_num\n\n/-- The next term from the defining formula and the official OEIS b-file. -/\n@[category test, AMS 11]\ntheorem a_5 : a 5 = 135457 := by rfl\n\n/-- The term `a(5) = 135457 = 7 * 37 * 523` is composite. -/\n@[category test, AMS 11]\ntheorem a_5_not_prime : ¬ (a 5).Prime := by\n  rw [a_5]\n  norm_num\n\ndef conjecture1.answer : ℕ := sorry\n\n/--\nThe first prime terms in this (always odd) sequence are $a(1) = 3$, $a(3) = 41$, and\n$a(4) = 593$. What is the next prime?\n\nThe OEIS comment currently says `$a(5) = 543$`, but this conflicts with its defining formula,\nb-file, and examples: the actual index-five term is the composite number `135457`. Consequently the\nsearch for the next prime must begin after index `4`, not after index `5`.\n-/\n@[category research open, question value, AMS 11]\ntheorem conjecture1 :\n  conjecture1.answer = a (sInf {n : ℕ | 4 < n ∧ (a n).Prime}) := by\n  sorry\n\nend OeisA113271\n",
  "statement_hash": "f625b7e07d3e094aec9d356ca0118b13b54e96f6195a7e27c439ca0af7e68ca8",
  "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."
}