{
  "id": "4641",
  "ident": "NS.04641",
  "slug": "oeis-109227",
  "title": "Conjectures associated with A109227",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Conjecture: $a(2)$ and $a(121)$ are primes. Are there any more?",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "oeis",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "OeisA109227.conjecture",
  "statement_lean": "theorem conjecture :\n    ∃ n > 0, n ≠ 2 ∧ n ≠ 121 ∧ (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# Conjectures associated with A109227\n\nBinary strings that have 1's where primes occur, 0's elsewhere and every term ends\nwith the $n$-th prime index.\n\nConjecture: $a(2)$ and $a(121)$ are primes. Are there any more?\n\n*References:*\n- [A109227](https://oeis.org/A109227)\n-/\n\n@[expose] public section\n\nnamespace OeisA109227\n\nopen Nat List\n\n/--\nThe primary defining sequence `a`.\n$a(n)$ is the natural number whose decimal digits are given by the binary string of length $p_n$\nwhere the $k$-th digit is $1$ if $k$ is prime and $0$ otherwise, with leading zeros dropped.\n-/\nnoncomputable def a (n : ℕ) : ℕ :=\n  if n = 0 then 0 else\n  let pN : ℕ := Nat.nth Nat.Prime (n - 1)\n  let primeBitsFull : List ℕ := (range (pN + 1)).map (fun i =>\n    if i.Prime then 1 else 0\n  )\n  let primeBitsTrimmed := primeBitsFull.dropWhile (· = 0)\n  ofDigits 10 primeBitsTrimmed.reverse\n\n/-- Term theorems verifying the first few values of the sequence against the official OEIS b-file -/\n@[category test, AMS 11]\ntheorem a_0 : a 0 = 0 := by\n  rfl\n\n@[category test, AMS 11]\ntheorem a_1 : a 1 = 1 := by\n  dsimp [a]\n  rw [Nat.nth_prime_zero_eq_two]\n  decide\n\n@[category test, AMS 11]\ntheorem a_2 : a 2 = 11 := by\n  dsimp [a]\n  rw [Nat.nth_prime_one_eq_three]\n  decide\n\n@[category test, AMS 11]\ntheorem a_3 : a 3 = 1101 := by\n  dsimp [a]\n  rw [Nat.nth_prime_two_eq_five]\n  decide\n\n@[category test, AMS 11]\ntheorem a_4 : a 4 = 110101 := by\n  dsimp [a]\n  rw [Nat.nth_prime_three_eq_seven]\n  decide\n\n/--\nConjecture: $a(2)$ and $a(121)$ are primes. Are there any more?\n-/\n@[category research open, question, AMS 11]\ntheorem conjecture :\n    ∃ n > 0, n ≠ 2 ∧ n ≠ 121 ∧ (a n).Prime := by\n  sorry\n\nend OeisA109227\n",
  "statement_hash": "d914c45bbec08d3a9159e2abe91269d9403786859c904966884e030f3c96f3d1",
  "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."
}