In this problem, simply return 1 if a supplied number is Munchhausen or 0 if not.
Example
153 is narcissistic but not a Munchhausen number
NOTE: the convention is that 0^0=0
Solution Stats
Problem Comments
7 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers210
Suggested Problems
-
Which values occur exactly three times?
5234 Solvers
-
Project Euler: Problem 5, Smallest multiple
1648 Solvers
-
Get the elements of diagonal and antidiagonal for any m-by-n matrix
511 Solvers
-
5792 Solvers
-
354 Solvers
More from this Author11
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
test cases 5 and 7 seem to not be Narcissistic (https://oeis.org/A005188), but they are still marked as true.
I thought from the title you were to determine if a number was both Munchhausen and Narcissistic. After wrestling a bit, I realized the test cases were based on being Munchhausen alone. Hopefully this comment saves someone else some time. As far as I can determine, the title is incorrect, and should be "Is this number Munchhausen?"
The problem is just requesting for Munchhausen numbers. The title is misleading.
I agree with the comments of Rafael S.T. Vieira and Dennis Gimlin about the title
The title has been corrected.
The current title looks good
It is better to write Münchhausen or ü -> "ue", since a simple "u" gives a totally diff word in German.