Cody

# Problem 165. Woodall number

Solution 3785023

Submitted on 22 Nov 2020 by Akrem Hadji
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
x = 1; tf_correct = true; assert(isequal(woodall(x),tf_correct))

z = 2 n = 1 tf = logical 1

2   Pass
x = 2; tf_correct = false; assert(isequal(woodall(x),tf_correct))

z = 2 n = 1 z = 8 tf = logical 0

3   Pass
x = 3; tf_correct = false; assert(isequal(woodall(x),tf_correct))

z = 2 n = 1 z = 8 tf = logical 0

4   Pass
x = 7; tf_correct = true; assert(isequal(woodall(x),tf_correct))

z = 2 n = 1 z = 8 tf = logical 1

5   Pass
x = 23; tf_correct = true; assert(isequal(woodall(x),tf_correct))

z = 2 n = 1 z = 8 z = 24 tf = logical 1

6   Pass
x = 63; tf_correct = true; assert(isequal(woodall(x),tf_correct))

z = 2 n = 1 z = 8 z = 24 z = 64 tf = logical 1

7   Pass
x = 159; tf_correct = true; assert(isequal(woodall(x),tf_correct))

z = 2 n = 1 z = 8 z = 24 z = 64 z = 160 tf = logical 1

8   Pass
x = 383; tf_correct = true; assert(isequal(woodall(x),tf_correct))

z = 2 n = 1 z = 8 z = 24 z = 64 z = 160 z = 384 tf = logical 1

9   Pass
x = 895; tf_correct = true; assert(isequal(woodall(x),tf_correct))

z = 2 n = 1 z = 8 z = 24 z = 64 z = 160 z = 384 z = 896 tf = logical 1

10   Pass
x = 1000; tf_correct = false; assert(isequal(woodall(x),tf_correct))

z = 2 n = 1 z = 8 z = 24 z = 64 z = 160 z = 384 z = 896 z = 2048 tf = logical 0

11   Pass
x = 2000; tf_correct = false; assert(isequal(woodall(x),tf_correct))

z = 2 n = 1 z = 8 z = 24 z = 64 z = 160 z = 384 z = 896 z = 2048 tf = logical 0

12   Pass
x = 2047; tf_correct = true; assert(isequal(woodall(x),tf_correct))

z = 2 n = 1 z = 8 z = 24 z = 64 z = 160 z = 384 z = 896 z = 2048 tf = logical 1

13   Pass
x = 3000; tf_correct = false; assert(isequal(woodall(x),tf_correct))

z = 2 n = 1 z = 8 z = 24 z = 64 z = 160 z = 384 z = 896 z = 2048 z = 4608 tf = logical 0

14   Pass
x = 3001; tf_correct = false; assert(isequal(woodall(x),tf_correct))

z = 2 n = 1 z = 8 z = 24 z = 64 z = 160 z = 384 z = 896 z = 2048 z = 4608 tf = logical 0

15   Pass
x = 4607; tf_correct = true; assert(isequal(woodall(x),tf_correct))

z = 2 n = 1 z = 8 z = 24 z = 64 z = 160 z = 384 z = 896 z = 2048 z = 4608 tf = logical 1

16   Pass
x = 10239; tf_correct = true; assert(isequal(woodall(x),tf_correct))

z = 2 n = 1 z = 8 z = 24 z = 64 z = 160 z = 384 z = 896 z = 2048 z = 4608 z = 10240 tf = logical 1

17   Pass
x = 22527; tf_correct = true; assert(isequal(woodall(x),tf_correct))

z = 2 n = 1 z = 8 z = 24 z = 64 z = 160 z = 384 z = 896 z = 2048 z = 4608 z = 10240 z = 22528 tf = logical 1

18   Pass
x = 7516192767; tf_correct = true; assert(isequal(woodall(x),tf_correct))

z = 2 n = 1 z = 8 z = 24 z = 64 z = 160 z = 384 z = 896 z = 2048 z = 4608 z = 10240 z = 22528 z = 49152 z = 106496 z = 229376 z = 491520 z = 1048576 z = 2228224 z = 4718592 z = 9961472 z = 20971520 z = 44040192 z = 92274688 z = 192937984 z = 402653184 z = 838860800 z = 1.7448e+09 z = 3.6239e+09 z = 7.5162e+09 tf = logical 1

19   Pass
x = 7516192766; tf_correct = false; assert(isequal(woodall(x),tf_correct))

z = 2 n = 1 z = 8 z = 24 z = 64 z = 160 z = 384 z = 896 z = 2048 z = 4608 z = 10240 z = 22528 z = 49152 z = 106496 z = 229376 z = 491520 z = 1048576 z = 2228224 z = 4718592 z = 9961472 z = 20971520 z = 44040192 z = 92274688 z = 192937984 z = 402653184 z = 838860800 z = 1.7448e+09 z = 3.6239e+09 z = 7.5162e+09 tf = logical 0

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!