In this problem, simply return 1 if a supplied number is Munchhausen narcissistic or 0 if not.
153 is narcissistic but not a Munchhausen number
NOTE: the convention is that 0^0=0
Wikipedia link: https://en.wikipedia.org/wiki/Munchausen_number
test cases 5 and 7 seem to not be Narcissistic (https://oeis.org/A005188), but they are still marked as true.
http://oeis.org/A046253 and https://en.wikipedia.org/wiki/Munchausen_number
So many choices
Sum all integers from 1 to 2^n
Getting the indices from a matrice
Generate a vector like 1,2,2,3,3,3,4,4,4,4
Equal to their cube
Strange Number Algorithms
create numeric palindromes and their square roots
Tony's trick for duplicating an mx1 vector n times
is the number happy?
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office