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

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Smallest factorial containing exactly nn 6's

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 a(24)=0a(24) = 0 since no factorial less than 1000010000 contained just 24 sixes.

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

Formal statement

theorem conjecture : a 24 = 0
Show the full Challenge.lean (99 lines) — definitions included
module

public import FormalConjecturesUtil


/-!
# Smallest factorial containing exactly $n$ 6's

The sequence $a(n)$ gives the smallest $k$ such that the decimal expansion of $k!$
contains exactly $n$ occurrences of the digit '6', or $0$ if no such $k$ exists.

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

@[expose] public section

namespace OeisA72200

open Classical in
/-- Smallest $k$ such that $k!$ contains exactly $n$ 6's in base 10, or 0 if no such $k$ exists. -/
noncomputable def a (n : ℕ) : ℕ :=
  if h : ∃ k, (Nat.digits 10 k.factorial).count 6 = n then
    Nat.find h
  else
    0

/-- Value of the sequence `a` at 1. -/
@[category test, AMS 11]
theorem a_1 : a 1 = 3 := by
  classical
  dsimp [a]
  split_ifs with h
  · rw [Nat.find_eq_iff]
    decide
  · exact (h ⟨3, by decide⟩).elim

/-- Value of the sequence `a` at 2. -/
@[category test, AMS 11]
theorem a_2 : a 2 = 15 := by
  classical
  dsimp [a]
  split_ifs with h
  · rw [Nat.find_eq_iff]
    decide
  · exact (h ⟨15, by decide⟩).elim

/-- Value of the sequence `a` at 3. -/
@[category test, AMS 11]
theorem a_3 : a 3 = 23 := by
  classical
  dsimp [a]
  split_ifs with h
  · rw [Nat.find_eq_iff]
    decide
  · exact (h ⟨23, by decide⟩).elim

/-- Value of the sequence `a` at 4. -/
@[category test, AMS 11]
theorem a_4 : a 4 = 26 := by
  classical
  dsimp [a]
  split_ifs with h
  · rw [Nat.find_eq_iff]
    decide
  · exact (h ⟨26, by decide⟩).elim

/-- Value of the sequence `a` at 5. -/
@[category test, AMS 11]
theorem a_5 : a 5 = 32 := by
  classical
  dsimp [a]
  split_ifs with h
  · rw [Nat.find_eq_iff]
    decide
  · exact (h ⟨32, by decide⟩).elim

/--
It is conjectured that $a(24) = 0$ since no factorial less than $10000$ contained just 24 sixes.-/
@[category research open, AMS 11]
theorem conjecture : a 24 = 0 := by
  sorry

end OeisA72200

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