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
Replicate elements in vectors
Sum the Digits of a Number
Find the nearest integer
MATCH THE STRINGS (2 CHAR) very easy
Magic Concentric Circles
provide the numerical answer to these number questions...
Tony's trick for duplicating an mx1 vector n times
is the number happy?
remove nans fast
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