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 refactorable numbers (A033950) ≤10n\le 10^n · colton_conjecture_le_500

Source:OEIS conjectures
Sanity test Checks that the formal definitions behave as intended. First verified proof: +1 points.
Statement:reviewed
Statement:

Colton's conjecture holds for n≤500n \le 500.

Subjects:Number Theory (math.NT)
MSC classes:11
Cite as:NS.04712 [math.NT] · NS.04712v1 for this version
Declaration:OeisA111291.colton_conjecture_le_500
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 1; accepted critique: up to 100
Statement hash:088e46a1cce6ab4c2f83864a904ed05beae6b3ac4800a437e2b4b512dd8fdd18
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/OEIS/111291.lean

Formal statement

theorem colton_conjecture_le_500 : ∀ n ≤ 500, Nat.primeCounting n ≤ 2 * countRefactorableNat n
Show the full Challenge.lean (111 lines) — definitions included
module

public import FormalConjecturesUtil
meta import FormalConjecturesForMathlib.NumberTheory.Refactorable
meta import Mathlib.NumberTheory.PrimeCounting

/-!
# Number of refactorable numbers (A033950) $\le 10^n$

A number $k$ is refactorable if its number of divisors, $\tau(k)$, divides $k$.

*References:*
- [A111291](https://oeis.org/A111291)
- [Co99] Colton, S., *Refactorable numbers - a machine invention*. J. Integer Seq. 2 (1999),
  Article 99.1.2.
- [Ze02] Zelinsky, J., *Tau numbers: a partial proof of a conjecture and other results*.
  J. Integer Seq. 5 (2002), Article 02.2.8.
- [Sp85] Spiro, C., *How often is the number of divisors of n a divisor of n?*
  J. Number Theory 21 (1985), 81--100.
-/

@[expose] public section

namespace OeisA111291

open Nat Finset Real

/-- Helper function: number of refactorable numbers $\le m$. -/
def countRefactorableNat (m : ℕ) : ℕ :=
  (Icc 1 m).filter IsRefactorable |>.card

/--
`a n` is the number of refactorable numbers $\le 10^n$.
A number $k$ is refactorable if its number of divisors, $\tau(k)$, divides $k$.
-/
def a (n : ℕ) : ℕ :=
  countRefactorableNat (10 ^ n)

@[category test, AMS 11]
theorem a_0 : a 0 = 1 := by rfl

@[category test, AMS 11]
theorem a_1 : a 1 = 4 := by rfl

@[category test, AMS 11]
theorem a_2 : a 2 = 16 := by rfl

@[category test, AMS 11]
theorem a_3 : a 3 = 92 := by native_decide

@[category test, AMS 11]
theorem a_4 : a 4 = 665 := by native_decide

/--
`countRefactorable x` is the number of refactorable numbers $\le x$.
-/
noncomputable def countRefactorable (x : ℝ) : ℕ :=
  if _hx : x ≥ 1 then
    countRefactorableNat (Int.toNat (floor x))
  else
    0

/--
Simon Colton conjectures that the number of refactorable numbers less than $x$ is at least
$\frac{x}{2\log x}$. This is an asymptotic claim, so we state it for sufficiently large $x$.

In this form it is a theorem: Zelinsky [Ze02, Theorem 7] proved that for every $k$ the number of
refactorable numbers $\le n$ exceeds $k \pi(n)$ for all sufficiently large $n$, and
$\pi(n) \sim n / \log n$. It also follows from Spiro's asymptotic [Sp85], by which the count is
$\frac{x}{\sqrt{\log x}} (\log \log x)^{-1 + o(1)}$. See `colton_conjecture` for the
pointwise conjecture that remains open.
-/
@[category research solved, AMS 11]
theorem conjecture : ∀ᶠ x in Filter.atTop,
    (countRefactorable x : ℝ) ≥ x / (2 * Real.log x) := by
  sorry

/--
Colton's conjecture [Co99] as stated by Zelinsky [Ze02]: for every $n$, the number of
refactorable numbers $\le n$ is at least half the number of primes $\le n$, i.e.
$\pi(n) \le 2\,T(n)$.

Zelinsky [Ze02] proved this for all sufficiently large $n$ (see `conjecture`), with an explicit
bound of $7.42 \cdot 10^{13}$ beyond which it holds; the remaining range is open.
-/
@[category research open, AMS 11]
theorem colton_conjecture : ∀ n : ℕ, Nat.primeCounting n ≤ 2 * countRefactorableNat n := by
  sorry

/-- Colton's conjecture holds for $n \le 500$. -/
@[category test, AMS 11]
theorem colton_conjecture_le_500 : ∀ n ≤ 500, Nat.primeCounting n ≤ 2 * countRefactorableNat n := by
  native_decide

end OeisA111291

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

nosorry desk oeis-111291--colton-conjecture-le-500      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch oeis-111291--colton-conjecture-le-500
nosorry submit oeis-111291--colton-conjecture-le-500 nosorry/oeis-111291--colton-conjecture-le-500/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.