Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Array read by upward antidiagonals

Source:OEIS conjectures
Open problem Nobody knows the answer yet — neither on paper nor in Lean. First verified proof: +100 points.
Statement:reviewed
Statement:

A "Goldbach Conjecture" for this sequence: when there are nn terms between consecutive odd integers 2n+12n+1 and 2n+32n+3 for n>0n > 0, at least one will be the product of 2 primes (not necessarily distinct). Example: n=3n=3 for consecutive odd integers a(7)=7a(7) = 7 and a(11)=9a(11) = 9 and of the 3 sequence entries a(8)=12a(8) = 12, a(9)=15a(9) = 15 and a(10)=16a(10) = 16 between them, one is the product of 2 primes a(9)=15=3∗5a(9) = 15=3*5. - Michael Hiebl, Jul 15 2007

Subjects:Number Theory (math.NT)
MSC classes:11
Cite as:NS.04520 [math.NT] · NS.04520v1 for this version
Declaration:OeisA105020.conjecture
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60
Statement hash:54f59bb76a8c5d23a13e97bde083384c958ead4fa4e8e34a7b1102824ca9086b
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/OEIS/105020.lean

Formal statement

theorem conjecture :
  ∀ (n i j : ℕ), 1 ≤ n →
    a i = 2 * n + 1 →
    a j = 2 * n + 3 →
    j = i + n + 1 →
    ∃ (k : ℕ),
      i < k ∧
      k < j ∧
      (a k).IsSemiprime
Show the full Challenge.lean (106 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Array read by upward antidiagonals

Array read by upward antidiagonals: row $n$ ($n \ge 0$) contains the numbers
$m^2 - n^2$, $m \ge n+1$.

*References:*
- [A105020](https://oeis.org/A105020)
-/

@[expose] public section

namespace OeisA105020

/--
Triangular number $T_c = c(c+1)/2$.
-/
def triangularNumber (c : ℕ) : ℕ := Nat.choose (c + 1) 2

/--
The index $c$ of the antidiagonal containing $n$, i.e., the largest $c$ such that $T_c \le n$.
This is derived from $c = \lfloor (\sqrt{8n+1} - 1) / 2 \rfloor$.
-/
def antidiagonalIndex (n : ℕ) : ℕ :=
  (Nat.sqrt (8 * n + 1) - 1) / 2

/-- The primary defining sequence `a`.
Array read by upward antidiagonals: row $n$ ($n \ge 0$) contains the numbers
$m^2 - n^2$, $m \ge n+1$.
The array entry $T(i, j)$ is $(i+j+1)^2 - i^2$.
The sequence $a(n)$ is generated by reading $T(i, j)$ for $i+j=c$,
with $i$ decreasing from $c$ to $0$.
-/
def a (n : ℕ) : ℕ :=
  let c := antidiagonalIndex n
  let k := n - triangularNumber c
  let i := c - k
  let m := c + 1
  m^2 - i^2

/-- 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 = 1 := by
  unfold a antidiagonalIndex triangularNumber
  norm_num

@[category test, AMS 11]
theorem a_1 : a 1 = 3 := by
  unfold a antidiagonalIndex triangularNumber
  norm_num

@[category test, AMS 11]
theorem a_2 : a 2 = 4 := by
  unfold a antidiagonalIndex triangularNumber
  norm_num

@[category test, AMS 11]
theorem a_3 : a 3 = 5 := by
  unfold a antidiagonalIndex triangularNumber
  norm_num

@[category test, AMS 11]
theorem a_4 : a 4 = 8 := by
  unfold a antidiagonalIndex triangularNumber
  norm_num

/--
A "Goldbach Conjecture" for this sequence: when there are $n$ terms between consecutive odd
integers $2n+1$ and $2n+3$ for $n > 0$, at least one will be the product of 2 primes
(not necessarily distinct). Example: $n=3$ for consecutive odd integers $a(7) = 7$ and
$a(11) = 9$ and of the 3 sequence entries $a(8) = 12$, $a(9) = 15$ and $a(10) = 16$ between
them, one is the product of 2 primes $a(9) = 15=3*5$. - _Michael Hiebl_, Jul 15 2007
-/
@[category research open, AMS 11]
theorem conjecture :
  ∀ (n i j : ℕ), 1 ≤ n →
    a i = 2 * n + 1 →
    a j = 2 * n + 3 →
    j = i + n + 1 →
    ∃ (k : ℕ),
      i < k ∧
      k < j ∧
      (a k).IsSemiprime := by
  sorry

end OeisA105020

To prove it: keep every definition of Challenge.lean unchanged and prove OeisA105020.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-105020
nosorry submit oeis-105020 nosorry/oeis-105020/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.