Skip to content

Perfect digit-to-digit invariant

A perfect digit-to-digit invariant is a positive integer equal to the sum obtained by raising each of its decimal digits to the power of that same digit.

Version
v2 · 2026-11-14 · History
Domain-specific #
11252
Domain group
Formal Sciences
Origin domain
Mathematics
Subdomain
Recreational Number Theory → Mathematics

Core Idea

A perfect digit-to-digit invariant in base \(b\) is a natural number that is fixed by the map sending each digit to that digit raised to its own power and summing the results. If \(n=\sum{i=0}^{k-1}di b^i\), define \(Fb(n)=\sumi di^{di}\) under an explicit convention for \(0^0\). Then \(n\) is perfect when \(Fb(n)=n\). In decimal, 3435 is an example because \(3^3+4^4+3^3+5^5=3435\). The popular name “Munchausen number” alludes to each digit metaphorically raising itself.

How would you explain it like I'm…

The Number That Comes Home

Take the number 3435. Each digit gets multiplied by itself as many times as it says: 3 times itself 3 times, 4 times itself 4 times, and so on. Add all those up and you get 3435 again! A number that comes back to itself like that is a perfect digit-to-digit invariant.

The Digit Power Game

A perfect digit-to-digit invariant is a number that stays the same after a special digit game. In the game, each digit is raised to its own power (3 becomes 3×3×3, 5 becomes 5×5×5×5×5), and then all those results are added up. For 3435, you get 27 + 256 + 27 + 3125, which is 3435 again. The trick depends on how you write the number: in a different counting system the digits change, so the answer can change too. These numbers are also nicknamed Munchausen numbers.

Digit-Power Fixed Point

A perfect digit-to-digit invariant (sometimes called a Munchausen number) is a number n that is a fixed point of a digit map: write n in base b, replace each digit d by d^d, and sum. If that sum equals n, n is perfect. In base 10, 3435 qualifies since 3³ + 4⁴ + 3³ + 5⁵ = 3435. The property depends on the base, because the same number has different digits in different bases, and on whether you decide 0⁰ is 1 or 0. The number 1 works in every base, which makes it trivial. There are only finitely many such numbers in any base, because place value grows exponentially with the number of digits while the digit-power sum grows only about linearly.

 

For base b, write n = Σ d_i bⁱ and define F_b(n) = Σ d_i^{d_i}, with an explicit convention for 0⁰ (either 1 or 0). A perfect digit-to-digit invariant, popularly a 'Munchausen number', is a fixed point F_b(n) = n; in decimal, 3435 = 3³ + 4⁴ + 3³ + 5⁵. Because digits depend on representation, a number can be fixed in one base and not another, and the 0⁰ convention changes cases involving zero, so any list must state both parameters. 1 is a fixed point in every base. More generally, periodic points of F_b are sociable invariants: period two is amicable, and perfect is period one. For a fixed base there are only finitely many fixed points: a k-digit number is at least b^{k−1}, while F_b(n) ≤ k(b−1)^{b−1}, so for long enough inputs place value outgrows the bounded digit terms, the map pushes values down into a finite set, and orbits eventually cycle.

Scope of Application

  • Recreational number theory. Exact fixed points provide striking examples of representation-dependent arithmetic dynamics.

  • Digit-map iteration. Orbits, cycles, basins, and period-one points are studied under one declared base and map.

  • Finite search proofs. Exponential place value eventually exceeds the linear maximum digit contribution, yielding a completeness bound.

  • Exhaustive computation. Algorithms enumerate candidates within the proved bound and verify every equality exactly.

  • Base dependence. Changing numeral representation changes digit decomposition and can change invariant status.

Clarity

Perfect digit-to-digit invariant denotes a fixed point of a representation-dependent digit map: sum each base-\(b\) digit raised to itself and recover the original integer. The base and convention for \(0^0\) are part of the definition, so a list without them is incomplete. The term distinguishes perfect fixed points from numbers that enter a cycle only after iteration and from other digit-power invariants with a common exponent.

Manages Complexity

Perfect digit-to-digit invariance converts a large integer search into a fixed-point problem bounded by digit count. The analyst tracks base, zero-power convention, number of digits, and the maximum possible sum of digit self-powers. Once positional growth exceeds that maximum, no larger candidate length can work, leaving a finite search. Fixed points and longer cycles form separate branches under iteration.

Abstract Reasoning

Bounding move. Compare the largest possible digit-self-power sum for k base-b digits with the smallest k-digit number to infer a finite maximum candidate length. Evaluation move. Apply the map exactly and retain numbers equal to their image as fixed points. Convention move. Separate results under zero-to-zero equals zero versus one and under each numeral base. Dynamics move. Iterate nonfixed values to distinguish transients and longer cycles from perfect invariants. Boundary move.

Knowledge Transfer

Within the home domain. Perfect digit-to-digit invariants transfer across recreational number theory and digit-dynamics research when a base-specific digit function is summed and fixed points satisfy equality with the original integer. Base, digit multiset, exponent or mapping, fixed-point equation, and search bounds retain exact roles. Beyond the home domain (C — formal object). The construction applies literally to any radix and digit function that are explicitly defined.

Relationships to Other Abstractions

Local relationship map for Perfect digit-to-digit invariantParents appear above the current abstraction, mutual partners to the right, and children below. Node labels state whether each abstraction is prime or domain-specific; colors identify relation types.Perfect digit-to-dig…DOMAINPrime abstraction: Classification — is a kind ofClassificationPRIME

Current abstraction Perfect digit-to-digit invariant Domain-specific

Parents (1) — outgoing typed relations

  • Perfect digit-to-digit invariant is a kind of Classification Prime

    Perfect digit-to-digit invariant is a domain-specific kind of Classification: A perfect digit-to-digit invariant is a positive integer equal to the sum obtained by raising each of its decimal digits to the power of that same digit.

Hierarchy path (1) — routes to 1 parentless root

Neighborhood in Abstraction Space

Perfect digit-to-digit invariant sits in a moderately populated region (43rd percentile for distinctiveness): it has near-neighbors but no dense thicket of look-alikes.

Family — Numeral Systems & Digit Algorithms (11 abstractions)

Nearest neighbors

Computed from structural-signature embeddings · 2026-11-14