Cody

# Problem 2056. Is this number Munchhausen Narcissistic?

Solution 812177

Submitted on 22 Jan 2016 by David Schafer
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Pass
%% n=1; y_correct=1; assert(isequal(ismunch(n),y_correct))

le = 1 mun = 1 tf = 1

2   Pass
%% n=0; y_correct=1; assert(isequal(ismunch(n),y_correct))

le = 0 mun = 1 mun = 0 tf = 1

3   Pass
%% n=153; y_correct=0; assert(isequal(ismunch(n),y_correct))

le = 1 5 3 mun = 1 mun = 1 3125 mun = 1 3125 27

4   Pass
%% n=634; y_correct=0; assert(isequal(ismunch(n),y_correct))

le = 6 3 4 mun = 46656 mun = 46656 27 mun = 46656 27 256

5   Pass
%% n=3435; y_correct=1; assert(isequal(ismunch(n),y_correct))

le = 3 4 3 5 mun = 27 mun = 27 256 mun = 27 256 27 mun = 27 256 27 3125 tf = 1

6   Pass
%% n=3534; y_correct=0; assert(isequal(ismunch(n),y_correct))

le = 3 5 3 4 mun = 27 mun = 27 3125 mun = 27 3125 27 mun = 27 3125 27 256

7   Pass
%% n=438579088; y_correct=1; assert(isequal(ismunch(n),y_correct))

le = 4 3 8 5 7 9 0 8 8 mun = 256 mun = 256 27 mun = 256 27 16777216 mun = 256 27 16777216 3125 mun = 256 27 16777216 3125 823543 mun = 256 27 16777216 3125 823543 387420489 mun = 256 27 16777216 3125 823543 387420489 1 mun = 256 27 16777216 3125 823543 387420489 0 mun = 256 27 16777216 3125 823543 387420489 0 16777216 mun = Columns 1 through 8 256 27 16777216 3125 823543 387420489 0 16777216 Column 9 16777216 tf = 1