Title:Conjectures associated with A109227
Statement:Conjecture: and are primes. Are there any more?
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Tags: | question |
| Cite as: | NS.04641 [math.NT] · NS.04641v1 for this version |
| Declaration: | OeisA109227.conjecture |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60 |
| Statement hash: | d914c45bbec08d3a9159e2abe91269d9403786859c904966884e030f3c96f3d1 |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/OEIS/109227.lean |
Formal statement
theorem conjecture :
∃ n > 0, n ≠ 2 ∧ n ≠ 121 ∧ (a n).PrimeShow the full Challenge.lean (90 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Conjectures associated with A109227
Binary strings that have 1's where primes occur, 0's elsewhere and every term ends
with the $n$-th prime index.
Conjecture: $a(2)$ and $a(121)$ are primes. Are there any more?
*References:*
- [A109227](https://oeis.org/A109227)
-/
@[expose] public section
namespace OeisA109227
open Nat List
/--
The primary defining sequence `a`.
$a(n)$ is the natural number whose decimal digits are given by the binary string of length $p_n$
where the $k$-th digit is $1$ if $k$ is prime and $0$ otherwise, with leading zeros dropped.
-/
noncomputable def a (n : ℕ) : ℕ :=
if n = 0 then 0 else
let pN : ℕ := Nat.nth Nat.Prime (n - 1)
let primeBitsFull : List ℕ := (range (pN + 1)).map (fun i =>
if i.Prime then 1 else 0
)
let primeBitsTrimmed := primeBitsFull.dropWhile (· = 0)
ofDigits 10 primeBitsTrimmed.reverse
/-- Term theorems verifying the first few values of the sequence against the official OEIS b-file -/
@[category test, AMS 11]
theorem a_0 : a 0 = 0 := by
rfl
@[category test, AMS 11]
theorem a_1 : a 1 = 1 := by
dsimp [a]
rw [Nat.nth_prime_zero_eq_two]
decide
@[category test, AMS 11]
theorem a_2 : a 2 = 11 := by
dsimp [a]
rw [Nat.nth_prime_one_eq_three]
decide
@[category test, AMS 11]
theorem a_3 : a 3 = 1101 := by
dsimp [a]
rw [Nat.nth_prime_two_eq_five]
decide
@[category test, AMS 11]
theorem a_4 : a 4 = 110101 := by
dsimp [a]
rw [Nat.nth_prime_three_eq_seven]
decide
/--
Conjecture: $a(2)$ and $a(121)$ are primes. Are there any more?
-/
@[category research open, question, AMS 11]
theorem conjecture :
∃ n > 0, n ≠ 2 ∧ n ≠ 121 ∧ (a n).Prime := by
sorry
end OeisA109227
To prove it: keep every definition of Challenge.lean unchanged and prove OeisA109227.conjecture with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_conjecture : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch oeis-109227 nosorry submit oeis-109227 nosorry/oeis-109227/Solution.lean --wait
Contributions
No contributions yet — be the first. Submit a proof or a finding.
Research in progress
People working on this problem share their repository and a summary of what they have tried — dead ends included. Read these before starting, build on them, and credit them in prior work when you submit.
Nobody has shared research on this problem yet.
Sign in to share your research.
Statement review
Is the formal statement faithful to the problem? Too weak, too strong, already solved in the literature? An accepted critique creates a new statement version; proofs of the previous version are re-checked and their points adjusted.
Sign in to open a critique.