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

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Number of integers 0<k<n0 < k < n such that (k+1)ϕ(n−k)+k(k + 1)^{\phi(n - k)} + k is prime

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

Conjecture (i): a(n)>0a(n) > 0 for all n>1n > 1.

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

Formal statement

theorem conjecture_1 (n : ℕ) (hn : 1 < n) : 0 < a n
Show the full Challenge.lean (100 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Number of integers $0 < k < n$ such that $(k + 1)^{\phi(n - k)} + k$ is prime

For $n \ge 1$, $a(n)$ counts the integers $0 < k < n$ for which $(k + 1)^{\phi(n - k)} + k$ is
prime, where $\phi$ is Euler's totient function.

*References:*
- [A234360](https://oeis.org/A234360)
- T. Adamczewski, "OEIS Open: How many conjectures can language models turn into theorems?",
  [arXiv:2608.11941](https://arxiv.org/abs/2608.11941) [cs.AI], 2026.
-/

@[expose] public section

namespace OeisA234360

/--
Number of integers $0 < k < n$ such that $(k + 1)^{\phi(n - k)} + k$ is prime,
where $\phi$ is Euler's totient function.
-/
def a (n : ℕ) : ℕ :=
  (Finset.filter (fun k =>
    Nat.Prime ((k + 1) ^ (n - k).totient + k)
  ) (Finset.Ico 1 n)).card

@[category test, AMS 11]
theorem a_1 : a 1 = 0 := by decide

@[category test, AMS 11]
theorem a_2 : a 2 = 1 := by decide

@[category test, AMS 11]
theorem a_3 : a 3 = 2 := by decide

@[category test, AMS 11]
theorem a_4 : a 4 = 3 := by decide

@[category test, AMS 11]
theorem a_5 : a 5 = 3 := by decide

/--
Conjecture (i): $a(n) > 0$ for all $n > 1$.
-/
@[category research open, AMS 11]
theorem conjecture_1 (n : ℕ) (hn : 1 < n) : 0 < a n := by
  sorry

/--
Conjecture (i): For any $n > 5$ there is a positive integer $k < n$ with
$(k + 1)^{\phi(n - k) / 2} - k$ prime.

Disproved for $n = 1408$ in the OEIS Open project, see T. Adamczewski, OEIS Open: How many
conjectures can language models turn into theorems?,
[arXiv:2608.11941](https://arxiv.org/abs/2608.11941).
-/
@[category research solved, AMS 11]
theorem conjecture_2 :
    ¬ ∀ n : ℕ, 5 < n →
      ∃ k, 0 < k ∧ k < n ∧
        ∃ p : ℕ, p.Prime ∧ (p + k) ^ 2 = (k + 1) ^ (n - k).totient := by
  sorry

/--
Conjecture (ii): If $n > 1$, then $k(k + 1)^{\phi(n - k)} + 1$ is prime for some $0 < k < n$.
-/
@[category research open, AMS 11]
theorem conjecture_3 (n : ℕ) (hn : 1 < n) :
    ∃ k, 0 < k ∧ k < n ∧ Nat.Prime (k * (k + 1) ^ (n - k).totient + 1) := by
  sorry

/--
Conjecture (ii): If $n > 3$, then $k(k + 1)^{\phi(n - k) / 2} - 1$ is prime for some $0 < k < n$.
-/
@[category research open, AMS 11]
theorem conjecture_4 (n : ℕ) (hn : 3 < n) :
    ∃ k, 0 < k ∧ k < n ∧
      ∃ p : ℕ, p.Prime ∧ (p + 1) ^ 2 = k ^ 2 * (k + 1) ^ (n - k).totient := by
  sorry

end OeisA234360

To prove it: keep every definition of Challenge.lean unchanged and prove OeisA234360.conjecture_1 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_conjecture_1 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry fetch oeis-234360
nosorry submit oeis-234360 nosorry/oeis-234360/Solution.lean --wait

Formal variants

Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.

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.