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

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Least kk such that cyclotomic polynomial Φk(n)\Phi_k(n) 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:

Is a(n)a(n) defined for all n≥1n \ge 1? That is, for every n≥1n \ge 1, does there exist k>0k > 0 such that ∣Φk(n)∣|\Phi_k(n)| is prime?

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

Formal statement

theorem conjecture (n : ℕ) (hn : 0 < n) :
    ∃ k > 0, ((Polynomial.cyclotomic k ℤ).eval (n : ℤ)).natAbs.Prime
Show the full Challenge.lean (122 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Least $k$ such that cyclotomic polynomial $\Phi_k(n)$ is prime

$a(n) = \min \{k \in \mathbb{N} \mid 0 < k \wedge \text{Prime}(|\Phi_k(n)|) \}$,
where $\Phi_k(n)$ is the $k$-th cyclotomic polynomial evaluated at $n$.

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

@[expose] public section

namespace OeisA117545

/-- Least $k > 0$ such that $|\Phi_k(n)|$ is prime, or $0$ if no such $k$ exists. -/
noncomputable def a (n : ℕ) : ℕ :=
  sInf {k : ℕ | 0 < k ∧ ((Polynomial.cyclotomic k ℤ).eval (n : ℤ)).natAbs.Prime}

/-- Value of the sequence `a` at 1. -/
@[category test, AMS 11]
theorem a_1 : a 1 = 2 := by
  have h_least : IsLeast {k : ℕ | 0 < k ∧ ((Polynomial.cyclotomic k ℤ).eval (1 :
  ℤ)).natAbs.Prime} 2 := by
    constructor
    · simp only [Set.mem_ofPred_eq]
      refine ⟨by decide, ?_⟩
      have : Polynomial.cyclotomic 2 ℤ = Polynomial.X + 1 := Polynomial.cyclotomic_two ℤ
      rw [this]
      norm_num
    · intro k hk
      simp only [Set.mem_ofPred_eq] at hk
      by_contra! h
      have hk_pos := hk.1
      interval_cases k
      have hk2 := hk.2
      have h1 : Polynomial.cyclotomic 1 ℤ = Polynomial.X - 1 := Polynomial.cyclotomic_one ℤ
      rw [h1] at hk2
      revert hk2
      norm_num
  exact h_least.csInf_eq

/-- Value of the sequence `a` at 2. -/
@[category test, AMS 11]
theorem a_2 : a 2 = 2 := by
  have h_least : IsLeast {k : ℕ | 0 < k ∧ ((Polynomial.cyclotomic k ℤ).eval (2 :
  ℤ)).natAbs.Prime} 2 := by
    constructor
    · simp only [Set.mem_ofPred_eq]
      refine ⟨by decide, ?_⟩
      have : Polynomial.cyclotomic 2 ℤ = Polynomial.X + 1 := Polynomial.cyclotomic_two ℤ
      rw [this]
      norm_num
    · intro k hk
      simp only [Set.mem_ofPred_eq] at hk
      by_contra! h
      have hk_pos := hk.1
      interval_cases k
      have hk2 := hk.2
      have h1 : Polynomial.cyclotomic 1 ℤ = Polynomial.X - 1 := Polynomial.cyclotomic_one ℤ
      rw [h1] at hk2
      revert hk2
      norm_num
  exact h_least.csInf_eq

/-- Value of the sequence `a` at 3. -/
@[category test, AMS 11]
theorem a_3 : a 3 = 1 := by
  have h_least : IsLeast {k : ℕ | 0 < k ∧ ((Polynomial.cyclotomic k ℤ).eval (3 :
  ℤ)).natAbs.Prime} 1 := by
    constructor
    · simp only [Set.mem_ofPred_eq]
      refine ⟨by decide, ?_⟩
      have h1 : Polynomial.cyclotomic 1 ℤ = Polynomial.X - 1 := Polynomial.cyclotomic_one ℤ
      rw [h1]
      norm_num
    · intro k hk
      exact hk.1
  exact h_least.csInf_eq

/-- Value of the sequence `a` at 4. -/
@[category test, AMS 11]
theorem a_4 : a 4 = 1 := by
  have h_least : IsLeast {k : ℕ | 0 < k ∧ ((Polynomial.cyclotomic k ℤ).eval (4 :
  ℤ)).natAbs.Prime} 1 := by
    constructor
    · simp only [Set.mem_ofPred_eq]
      refine ⟨by decide, ?_⟩
      have h1 : Polynomial.cyclotomic 1 ℤ = Polynomial.X - 1 := Polynomial.cyclotomic_one ℤ
      rw [h1]
      norm_num
    · intro k hk
      exact hk.1
  exact h_least.csInf_eq

/--
Is $a(n)$ defined for all $n \ge 1$?
That is, for every $n \ge 1$, does there exist $k > 0$ such that $|\Phi_k(n)|$ is prime?-/
@[category research open, AMS 11]
theorem conjecture (n : ℕ) (hn : 0 < n) :
    ∃ k > 0, ((Polynomial.cyclotomic k ℤ).eval (n : ℤ)).natAbs.Prime := by
  sorry

end OeisA117545

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