Perfect digit-to-digit invariant

In number theory, a perfect digit-to-digit invariant (PDDI; also known as a Munchausen number ) is a natural number in a given number base $$b$$ that is equal to the sum of its digits each raised to the power of itself. An example in base 10 is 3435, because $$3435 = 3^3 + 4^4 + 3^3 + 5^5$$. The term "Munchausen number" was coined by Dutch mathematician and software engineer Daan van Berkel in 2009, as this evokes the story of Baron Munchausen raising himself up by his own ponytail because each digit is raised to the power of itself.

Definition
Let $$n$$ be a natural number which can be written in base $$b$$ as the k-digit number $$d_{k-1}d_{k-2}...d_{1}d_{0}$$ where each digit $$d_i$$ is between $$0$$ and $$b-1$$ inclusive, and $$n = \sum_{i=0}^{k-1} d_{i}b^{i}$$. We define the function $$F_b : \mathbb{N} \rightarrow \mathbb{N}$$ as $$F_b(n) = \sum_{i=0}^{k - 1} {d_i}^{d_i}$$. (As 00 is usually undefined, there are typically two conventions used, one where it is taken to be equal to one, and another where it is taken to be equal to zero. ) A natural number $$n$$ is defined to be a perfect digit-to-digit invariant in base b if $$F_b(n) = n$$. For example, the number 3435 is a perfect digit-to-digit invariant in base 10 because $$3^3 + 4^4 + 3^3 + 5^5 = 27 + 256 + 27 + 3125 = 3435$$.

$$F_b(1) = 1$$ for all $$b$$, and thus 1 is a trivial perfect digit-to-digit invariant in all bases, and all other perfect digit-to-digit invariants are nontrivial. For the second convention where $$0^0 = 0$$, both $$0$$ and $$1$$ are trivial perfect digit-to-digit invariants.

A natural number $$n$$ is a sociable digit-to-digit invariant if it is a periodic point for $$F_{b}$$, where $$F_{b}^k(n) = n$$ for a positive integer $$k$$, and forms a cycle of period $$k$$. A perfect digit-to-digit invariant is a sociable digit-to-digit invariant with $$k = 1$$. An amicable digit-to-digit invariant is a sociable digit-to-digit invariant with $$k = 2$$.

All natural numbers $$n$$ are preperiodic points for $$F_b$$, regardless of the base. This is because all natural numbers of base $$b$$ with $$k$$ digits satisfy $$b^{k-1} \leq n \leq (k){(b - 1)}^{b-1}$$. However, when $$k \geq b+1$$, then $$b^{k-1} > (k){(b - 1)}^{b-1}$$, so any $$n$$ will satisfy $$n > F_b(n)$$ until $$n < b^{b+1}$$. There are a finite number of natural numbers less than $$b^{b+1}$$, so the number is guaranteed to reach a periodic point or a fixed point less than $$b^{b+1}$$, making it a preperiodic point. This means also that there are a finite number of perfect digit-to-digit invariant and cycles for any given base $$b$$.

The number of iterations $$i$$ needed for $$F_b^{i}(n)$$ to reach a fixed point is the $$b$$-factorion function's persistence of $$n$$, and undefined if it never reaches a fixed point.

Perfect digit-to-digit invariants and cycles of Fb for specific b
All numbers are represented in base $$b$$.

Programming examples
The following program in Python determines whether an integer number is a Munchausen Number / Perfect Digit to Digit Invariant or not, following the convention $$0^0 = 1$$.

The examples below implement the perfect digit-to-digit invariant function described in the definition above to search for perfect digit-to-digit invariants and cycles in Python for the two conventions.