Munchausen Number

A number that is equal to the sum of its digits each raised to the power equal to its digit is a Munchausen Number or perfect digit-to-digit invariant(PDDI).

For example :

number

1.In above example each digit raised to itself on addition equals to number itself.

2.Another number which exhibits this property is 1 .

Pseudocode

So a simple algorithm for identification of Munchausen Number is as follows:

For a given input number break it into constituent digits.Find the sum of each of its digits raise...
 •  0 comments  •  flag
Share on Twitter
Published on March 23, 2021 08:55
No comments have been added yet.