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

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Erdős Problem 913

Source:Erdős Problems · erdosproblems.com/913
Open problem Nobody knows the answer yet — neither on paper nor in Lean. First verified proof: +100 points.
Statement:reviewed
Statement:

Are there infinitely many nn such that if n(n+1)=∏ipiki n(n + 1) = \prod_i p_i^{k_i} is the factorisation into distinct primes then all exponents kik_i are distinct?

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

Formal statement

theorem erdos_913 :
    { n | Set.InjOn (n * (n + 1)).factorization (n * (n + 1)).primeFactors }.Infinite
Show the full Challenge.lean (101 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 913

*Reference:* [erdosproblems.com/913](https://www.erdosproblems.com/913)

Reviewed by @b-mehta on 2025-05-27
-/

@[expose] public section

namespace Erdos913

/--
Are there infinitely many $n$ such that if
$$
  n(n + 1) = \prod_i p_i^{k_i}
$$
is the factorisation into distinct primes then all exponents $k_i$ are distinct?
-/
@[category research open, question, AMS 11]
theorem erdos_913 :
    { n | Set.InjOn (n * (n + 1)).factorization (n * (n + 1)).primeFactors }.Infinite := by
  sorry

/--
It is likely that there are infinitely many primes $p$ such that $8p^2 - 1$ is also prime.
-/
@[category research open, AMS 11]
theorem erdos_913.variants.infinite_many_8p_sq_add_one_primes :
    { p | p.Prime ∧ (8 * p ^ 2 - 1).Prime }.Infinite := by
  sorry

/-- If there are infinitely many primes $p$ such that $8p^2 - 1$ is prime, then this is true. -/
@[category research solved, AMS 11]
theorem erdos_913.variants.conditional (h : { p | p.Prime ∧ (8 * p ^ 2 - 1).Prime }.Infinite) :
    { n | Set.InjOn (n * (n + 1)).factorization (n * (n + 1)).primeFactors }.Infinite := by
  set S := { p | p.Prime ∧ (8 * p ^ 2 - 1).Prime }
  let f : ℕ → ℕ := fun p ↦ 8 * p ^ 2 - 1
  have hS : ∀ p, p.Prime → 1 < 8 * p ^ 2 := by
    rintro p hp
    nlinarith [hp.two_le]
  have : S.InjOn f := by
    simp only [Set.InjOn, f]
    rintro a ha b hb h
    rw [tsub_left_inj (hS a ha.1).le (hS b hb.1).le] at h
    simpa using h
  refine ((h.sdiff (Set.finite_singleton 2)).image (this.mono Set.sdiff_subset)).mono ?_
  simp only [Set.image_subset_iff, Set.preimage_ofPred_eq, S]
  rintro p ⟨⟨hp, hp'⟩, hp''⟩
  simp only [Set.mem_singleton_iff] at hp''
  have fac : (f p * (f p + 1)).factorization =
      Finsupp.single (8 * p ^ 2 - 1) 1 + (Finsupp.single p 2 + Finsupp.single 2 3) := by
    simp only [f, Nat.sub_add_cancel (hS p hp).le]
    have : 2 ≤ p := hp.two_le
    rw [Nat.factorization_mul hp'.ne_zero (by positivity),
      Nat.factorization_mul (by positivity) (by positivity), hp'.factorization,
      hp.factorization_pow, (show 8 = 2 ^ 3 from rfl), Nat.prime_two.factorization_pow,
      add_comm (Finsupp.single 2 3)]
  have aux₂ : (fun₀ | 2 => 3).support = {2} := by simp
  have aux₁ : ((fun₀ | p => 2) + fun₀ | 2 => 3).support = {p, 2} := by
    rw [Finsupp.support_single_add (by simp [hp'']) (by simp), Finset.cons_eq_insert, aux₂]
  have aux₃ : p + 1 < 8 * p ^ 2 := by
    replace hp := hp.two_le
    zify at hp ⊢
    linear_combination (8 * p + 15 : ℤ) * hp
  have aux₄ : 8 * p ^ 2 - 1 ≠ p := by
    rw [ne_eq, tsub_eq_iff_eq_add_of_le (hS p hp).le]
    exact aux₃.ne'
  have aux₅ : 8 * p ^ 2 - 1 ≠ 2 := by
    omega
  have pf : (f p * (f p + 1)).primeFactors = {8 * p ^ 2 - 1, p, 2} := by
    rw [← Nat.support_factorization, fac, Finsupp.support_single_add _ (by simp),
      Finset.cons_eq_insert, aux₁]
    simp [*]
  simp only [Set.mem_ofPred_eq]
  rw [fac, pf]
  simp only [Finsupp.coe_add, Finset.coe_insert, Finset.coe_singleton]
  rw [Set.injOn_insert (by simp [*]), Set.injOn_insert (by simp [hp''])]
  simp [aux₄, hp'', Ne.symm, aux₅]

end Erdos913

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

nosorry fetch erdos-913
nosorry submit erdos-913 nosorry/erdos-913/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.