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 symbols '*' and '^' to write the canonical prime factorization of n

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 that 1,2,3,4,5,6,7,9,111,2,3,4,5,6,7,9,11 are the only positive integers which cannot be represented as the sum of two elements of indices nn such that a(n)=1a(n) = 1.

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

Formal statement

theorem conjecture :
  ∀ m > 0, m ∉ exceptionalSet ↔ ∃ x y : ℕ, a x = 1 ∧ a y = 1 ∧ m = x + y
Show the full Challenge.lean (99 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Number of symbols '*' and '^' to write the canonical prime factorization of n

The canonical prime factorization is $n = p_1^{e_1} p_2^{e_2} \cdots p_k^{e_k}$.
The written form is $p_1^{\wedge} e_1 * p_2^{\wedge} e_2 * \cdots * p_k^{\wedge} e_k$,
where the $\wedge$ appears only if $e_i > 1$.
$a(n) = (\text{number of distinct prime factors}) - 1 +$
$(\text{number of distinct prime factors with exponent } > 1)$.

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

@[expose] public section

namespace OeisA110475

/--
The primary defining sequence `a`.
$a(n)$ is the number of symbols '*' and '^' to write the canonical prime factorization of $n$.
-/
noncomputable def a (n : ℕ) : ℕ :=
  let f := Nat.factorization n
  let s := f.support
  let numDistinctPrimes := s.card
  let numAsterisks := numDistinctPrimes - 1
  let numCarets := (s.filter fun p => f p > 1).card
  numAsterisks + numCarets

/-- Term theorems verifying the first few values of the sequence against the official OEIS b-file -/
@[category test, AMS 11]
theorem a_1 : a 1 = 0 := by
  dsimp [a]
  simp

@[category test, AMS 11]
theorem a_2 : a 2 = 0 := by
  dsimp [a]
  have h2 : Nat.Prime 2 := by decide
  rw [Nat.Prime.factorization h2]
  simp

@[category test, AMS 11]
theorem a_3 : a 3 = 0 := by
  dsimp [a]
  have h3 : Nat.Prime 3 := by decide
  rw [Nat.Prime.factorization h3]
  simp

@[category test, AMS 11]
theorem a_4 : a 4 = 1 := by
  dsimp [a]
  have : (4 : ℕ) = 2 ^ 2 := by rfl
  rw [this, Nat.Prime.factorization_pow (by decide)]
  simp [Finset.filter_singleton]

@[category test, AMS 11]
theorem a_5 : a 5 = 0 := by
  dsimp [a]
  have h5 : Nat.Prime 5 := by decide
  rw [Nat.Prime.factorization h5]
  simp



/-- The set of exceptional integers. -/
def exceptionalSet : Finset ℕ :=
  {1, 2, 3, 4, 5, 6, 7, 9, 11}

/--
It is conjectured that $1,2,3,4,5,6,7,9,11$ are the only positive integers
which cannot be represented as the sum of two elements of indices $n$ such that $a(n) = 1$.
-/
@[category research open, AMS 11]
theorem conjecture :
  ∀ m > 0, m ∉ exceptionalSet ↔ ∃ x y : ℕ, a x = 1 ∧ a y = 1 ∧ m = x + y := by
  sorry

end OeisA110475

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