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

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Conjectures associated with A101779

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

It is conjectured k always exists.

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

Formal statement

theorem conjecture : ∀ (n : ℕ), 1 ≤ n → ∃ k : ℕ, Ak n k
Show the full Challenge.lean (75 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Conjectures associated with A101779

$a(n)$ is the least $k$ such that all of $k, 2k+1, 3k+2, ..., nk+n-1$ are primes,
or $0$ if no such $k$ is found.
It is conjectured $k$ always exists.

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

@[expose] public section

namespace OeisA101779

open Nat Set
open scoped Nat.Prime

/--
A101779: `Ak n k` is true if for all $i$ from $1$ to $n$, $i \cdot k + (i - 1)$ is prime.
-/
def Ak (n k : ℕ) : Prop :=
  ∀ (i : ℕ), 1 ≤ i → i ≤ n → (i * k + (i - 1)).Prime

instance : DecidableRel Ak :=
  inferInstanceAs <| ∀ n k, Decidable <| ∀ (i : ℕ), 1 ≤ i → i ≤ n → (i * k + (i - 1)).Prime

/--
The primary defining sequence `a`.
$a(n)$ is the least $k$ such that all of $k, 2k+1, 3k+2, \ldots, nk+n-1$ are primes,
or $0$ if no such $k$ is found.
-/
noncomputable def a (n : ℕ) : ℕ :=
  sInf { k : ℕ | Ak n k }

@[category test, AMS 11]
theorem a_1 : a 1 = 2 := IsLeast.csInf_eq <| by decide

@[category test, AMS 11]
theorem a_2 : a 2 = 2 := IsLeast.csInf_eq <| by decide

@[category test, AMS 11]
theorem a_3 : a 3 = 3 := IsLeast.csInf_eq <| by decide

@[category test, AMS 11]
theorem a_4 : a 4 = 5 := IsLeast.csInf_eq <| by decide

/--
It is conjectured k always exists.
-/
@[category research open, AMS 11]
theorem conjecture : ∀ (n : ℕ), 1 ≤ n → ∃ k : ℕ, Ak n k := by
  sorry

end OeisA101779

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