Title:Smallest factorial containing exactly 6's · a_2
Statement:Value of the sequence
aat 2.
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Cite as: | NS.06806 [math.NT] · NS.06806v1 for this version |
| Declaration: | OeisA72200.a_2 |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 1; accepted critique: up to 100 |
| 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 a_2 : a 2 = 15Show 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.a_2 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_a_2 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry desk oeis-72200--a-2 # a desk lease: required before submitting (renew: nosorry beat) nosorry fetch oeis-72200--a-2 nosorry submit oeis-72200--a-2 nosorry/oeis-72200--a-2/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.