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

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Smallest power with base>1 and exponent nn without digit 0

Source:OEIS conjectures
Known result Solved on paper; nobody has proved it in Lean here yet. First verified proof: +10 points.
Statement:reviewed
Statement:

For statistical reasons it is conjectured that the sequence is finite. Finite means here that for some nn, no power bnb^n with base b>1b > 1 has a zeroless decimal representation, which in our definition results in a(n)=0a(n) = 0.

This holds for n=2500n = 2500 (source). Take any integer b>1b > 1 and let N=b2500N = b^{2500}. Since b≥2b \ge 2, we have N≥22500>105N \ge 2^{2500} > 10^5, so NN has at least six decimal digits. We split into four cases depending on the divisibility of bb by 22 and 55:

  • If 10∣b10 \mid b: Then 10∣N10 \mid N, so the units digit of NN is 00.
  • If bb is odd and 5∤b5 \nmid b: Since bb is odd and the Carmichael function satisfies λ(16)=4∣2500\lambda(16) = 4 \mid 2500, we have N≡1(mod16)N \equiv 1 \pmod{16}. Since 5∤b5 \nmid b and φ(55)=2500\varphi(5^5) = 2500, Euler's totient theorem gives N≡1(mod3125)N \equiv 1 \pmod{3125}. By the Chinese Remainder Theorem, N≡1(mod50000)N \equiv 1 \pmod{50000} (as 16⋅3125=5000016 \cdot 3125 = 50000), so the tens digit of NN is 00.
  • If bb is odd and 5∣b5 \mid b: As above, N≡1(mod16)N \equiv 1 \pmod{16}. Since 5∣b5 \mid b and 2500≥42500 \ge 4, we also have 54=625∣N5^4 = 625 \mid N, so N≡0(mod625)N \equiv 0 \pmod{625}. Since 16⋅625=10416 \cdot 625 = 10^4 and 625≡1(mod16)625 \equiv 1 \pmod{16}, the Chinese Remainder Theorem gives N≡625(mod104)N \equiv 625 \pmod{10^4}. Because N>104N > 10^4, the last four digits of NN are 06250625, so its thousands digit is 00.
  • If bb is even and 5∤b5 \nmid b: Since 2∣b2 \mid b and 2500≥52500 \ge 5, we have 25=32∣N2^5 = 32 \mid N, so N≡0(mod32)N \equiv 0 \pmod{32}. Since 5∤b5 \nmid b, Euler's theorem again gives N≡1(mod3125)N \equiv 1 \pmod{3125}. Because 32⋅3125=10532 \cdot 3125 = 10^5 and 9376=293⋅32=3⋅3125+19376 = 293 \cdot 32 = 3 \cdot 3125 + 1, the Chinese Remainder Theorem gives N≡9376(mod105)N \equiv 9376 \pmod{10^5}. Since N>105N > 10^5, the last five digits of NN are 0937609376, so its ten-thousands digit is 00.

In every case, the decimal representation of NN contains the digit 00, so a(2500)=0a(2500) = 0.

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

Formal statement

theorem conjecture : ∃ n : ℕ, a n = 0
Show the full Challenge.lean (129 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Smallest power with base>1 and exponent $n$ without digit 0

For statistical reasons it is conjectured that the sequence is finite.
Also it is conjectured that $a(40)$ does not exist (i.e. the sequence is empty for $n=40$).

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

@[expose] public section

namespace OeisA103662

open Nat List Set

/--
A helper predicate: $b^n$ is a power with base $>1$ whose decimal representation
does not contain the digit 0.
We assume $n$ is the exponent, $n \ge 1$.
-/
def IsValidZerolessPower (n b : ℕ) : Prop :=
  b > 1 ∧ 0 ∉ digits 10 (b ^ n)

/--
The primary defining sequence `a`.
`a n` is the smallest power with base $>1$ and exponent $n$ whose decimal representation
doesn't contain the digit 0.
$$a(n) = (\min \{ b \in \mathbb{N} \mid b > 1,
  \text{decimal representation of } b^n \text{ contains no digit } 0 \})^n$$
If no such base exists, `sInf` of an empty set of naturals returns 0, so `a n = 0`.
-/
noncomputable def a (n : ℕ) : ℕ :=
  let smallestBase := sInf { b | IsValidZerolessPower n b }
  smallestBase ^ n

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

@[category test, AMS 11]
theorem a_1 : a 1 = 2 := by
  simp_all[a]
  norm_num[Iff,IsValidZerolessPower]
  exact ( IsLeast.csInf_eq ⟨.symm (by norm_num), fun and => And.left⟩)

@[category test, AMS 11]
theorem a_2 : a 2 = 4 := by
  norm_num[a]
  delta IsValidZerolessPower
  exact (congr_arg) (.^2) (IsLeast.csInf_eq ⟨.symm (by norm_num), fun and=>And.left⟩)

@[category test, AMS 11]
theorem a_3 : a 3 = 8 := by
  norm_num[a]
  delta IsValidZerolessPower
  exact (.trans (by
    rw [IsLeast.csInf_eq (by use ⟨by constructor, by norm_num⟩, fun and' => And.left)])
    (by constructor))

set_option linter.style.formal_proof_palomar false in
/--
For statistical reasons it is conjectured that the sequence is finite.
Finite means here that for some $n$, no power $b^n$ with base $b > 1$ has a zeroless decimal
representation, which in our definition results in $a(n) = 0$.

This holds for $n = 2500$
([source](https://tadamcz.com/fc-review-results/aea251bb26/#/f/OEIS/103662)).
Take any integer $b > 1$ and let $N = b^{2500}$. Since $b \ge 2$, we have
$N \ge 2^{2500} > 10^5$, so $N$ has at least six decimal digits. We split into four cases
depending on the divisibility of $b$ by $2$ and $5$:

- **If $10 \mid b$:** Then $10 \mid N$, so the units digit of $N$ is $0$.
- **If $b$ is odd and $5 \nmid b$:** Since $b$ is odd and the Carmichael function satisfies
  $\lambda(16) = 4 \mid 2500$, we have $N \equiv 1 \pmod{16}$. Since $5 \nmid b$ and
  $\varphi(5^5) = 2500$, Euler's totient theorem gives $N \equiv 1 \pmod{3125}$. By the Chinese
  Remainder Theorem, $N \equiv 1 \pmod{50000}$ (as $16 \cdot 3125 = 50000$), so the tens digit
  of $N$ is $0$.
- **If $b$ is odd and $5 \mid b$:** As above, $N \equiv 1 \pmod{16}$. Since $5 \mid b$ and
  $2500 \ge 4$, we also have $5^4 = 625 \mid N$, so $N \equiv 0 \pmod{625}$. Since
  $16 \cdot 625 = 10^4$ and $625 \equiv 1 \pmod{16}$, the Chinese Remainder Theorem gives
  $N \equiv 625 \pmod{10^4}$. Because $N > 10^4$, the last four digits of $N$ are $0625$, so its
  thousands digit is $0$.
- **If $b$ is even and $5 \nmid b$:** Since $2 \mid b$ and $2500 \ge 5$, we have
  $2^5 = 32 \mid N$, so $N \equiv 0 \pmod{32}$. Since $5 \nmid b$, Euler's theorem again gives
  $N \equiv 1 \pmod{3125}$. Because $32 \cdot 3125 = 10^5$ and
  $9376 = 293 \cdot 32 = 3 \cdot 3125 + 1$, the Chinese Remainder Theorem gives
  $N \equiv 9376 \pmod{10^5}$. Since $N > 10^5$, the last five digits of $N$ are $09376$, so its
  ten-thousands digit is $0$.

In every case, the decimal representation of $N$ contains the digit $0$, so $a(2500) = 0$.
-/
@[category research solved, AMS 11, formal_proof using lean4 at "https://github.com/anatoliiohorodnyk/lean-fc-proofs/blob/5da9642575b26c2c816a49bcb56b33fed5456619/Proofs/T_OeisA103662_conjecture.lean#L191"]
theorem conjecture : ∃ n : ℕ, a n = 0 := by
  sorry

/--
$a(40)$, if it exists, is not known.

This claim is rooted in the finiteness conjecture. The most direct mathematical expression
of the open problem concerning $a(40)$ is the negation of the existence of a valid base.
-/
@[category research open, AMS 11]
theorem conjecture.variants.a_40 :
  ¬ ∃ (b : ℕ), IsValidZerolessPower 40 b := by
  sorry

end OeisA103662

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

Formal variants

Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.

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.