{
  "id": "4740",
  "ident": "NS.04740",
  "slug": "oeis-113019",
  "title": "Number of digits of n raised to the power of the digital root of n",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "$n=1$ and $32$ are fixed points. Are there any others?\n\nYes: 9^9 = 387420489 is also a fixed point. - [Kenta Kitamura](https://oeis.org/wiki/User:Kenta_Kitamura), Aug 14 2026",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "oeis",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "OeisA113019.conjecture",
  "statement_lean": "theorem conjecture : ¬ ∀ n : ℕ, a n = n → n = 1 ∨ n = 32",
  "challenge_source": "/-\nCopyright 2026 The Formal Conjectures Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-/\nmodule\n\npublic import FormalConjecturesUtil\n\n\n/-!\n# Number of digits of n raised to the power of the digital root of n\n\n*References:*\n- [A113019](https://oeis.org/A113019)\n-/\n\n@[expose] public section\n\nnamespace OeisA113019\n\nopen Nat\n\n/--\na n is the (Number of digits of n) raised to the power of (the digital root of n),\nwith appropriate adjustments for $n=0$.\n-/\ndef a (n : ℕ) : ℕ :=\n  -- The base: number of digits of n (adjusting n=0 to have 1 digit, like n=1).\n  let numDigits : ℕ := (Nat.digits 10 (max 1 n)).length\n\n  -- The exponent: digital root of n. This correctly yields 0 for n=0,\n  -- and the standard 1..9 for n>0.\n  let digitalRoot : ℕ := if n = 0 then 0 else (n - 1) % 9 + 1\n\n  numDigits ^ digitalRoot\n\n@[category test, AMS 11]\ntheorem a_0 : a 0 = 1 := by decide\n\n@[category test, AMS 11]\ntheorem a_1 : a 1 = 1 := by decide\n\n@[category test, AMS 11]\ntheorem a_2 : a 2 = 1 := by decide\n\n@[category test, AMS 11]\ntheorem a_3 : a 3 = 1 := by decide\n\n@[category test, AMS 11]\ntheorem a_4 : a 4 = 1 := by decide\n\n/--\n$n=1$ and $32$ are fixed points. Are there any others?\n\nYes: 9^9 = 387420489 is also a fixed point. - [Kenta Kitamura](https://oeis.org/wiki/User:Kenta_Kitamura), Aug 14 2026\n-/\n@[category research solved, question, AMS 11]\ntheorem conjecture : ¬ ∀ n : ℕ, a n = n → n = 1 ∨ n = 32 := by\n  intro h\n  have hfixed : a 387420489 = 387420489 := by\n    simp [a]\n  rcases h 387420489 hfixed with h | h <;> omega\n\nend OeisA113019\n",
  "statement_hash": "3026b03761cd95540be5774b7d00099da3aef33ccc0bad0f146316f5e54db496",
  "toolchain": "leanprover/lean4:v4.33.1",
  "upstream_commit": "f9b3868d5ca994a7bf95039bcec05338c0c21e2f",
  "workspace": "formal-conjectures",
  "field": "math",
  "formalization": "formal",
  "verification": "lean-kernel",
  "license": "Apache-2.0",
  "attribution": "google-deepmind/formal-conjectures contributors",
  "metric_name": null,
  "metric_direction": null,
  "critiques": [],
  "public_partial_proofs": [],
  "research_threads": [],
  "instructions": "Read research_threads first: other people's public repositories and what they already tried. Write Solution.lean starting from challenge_source. Keep every definition identical, prove decl_name with exactly the same type, no sorry in its dependency closure, no new axioms, no native_decide, no metaprogramming. Submit with POST /api/v1/submissions."
}