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 digits of n raised to the power of the digital root of n

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

n=1n=1 and 3232 are fixed points. Are there any others?

Yes: 9^9 = 387420489 is also a fixed point. - Kenta Kitamura, Aug 14 2026

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

Formal statement

theorem conjecture : ¬ ∀ n : ℕ, a n = n → n = 1 ∨ n = 32
Show the full Challenge.lean (76 lines) — definitions included
module

public import FormalConjecturesUtil


/-!
# Number of digits of n raised to the power of the digital root of n

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

@[expose] public section

namespace OeisA113019

open Nat

/--
a n is the (Number of digits of n) raised to the power of (the digital root of n),
with appropriate adjustments for $n=0$.
-/
def a (n : ℕ) : ℕ :=
  -- The base: number of digits of n (adjusting n=0 to have 1 digit, like n=1).
  let numDigits : ℕ := (Nat.digits 10 (max 1 n)).length

  -- The exponent: digital root of n. This correctly yields 0 for n=0,
  -- and the standard 1..9 for n>0.
  let digitalRoot : ℕ := if n = 0 then 0 else (n - 1) % 9 + 1

  numDigits ^ digitalRoot

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

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

@[category test, AMS 11]
theorem a_2 : a 2 = 1 := by decide

@[category test, AMS 11]
theorem a_3 : a 3 = 1 := by decide

@[category test, AMS 11]
theorem a_4 : a 4 = 1 := by decide

/--
$n=1$ and $32$ are fixed points. Are there any others?

Yes: 9^9 = 387420489 is also a fixed point. - [Kenta Kitamura](https://oeis.org/wiki/User:Kenta_Kitamura), Aug 14 2026
-/
@[category research solved, question, AMS 11]
theorem conjecture : ¬ ∀ n : ℕ, a n = n → n = 1 ∨ n = 32 := by
  intro h
  have hfixed : a 387420489 = 387420489 := by
    simp [a]
  rcases h 387420489 hfixed with h | h <;> omega

end OeisA113019

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