Cody

# Problem 42493. Pancakes for everyone!

Solution 711634

Submitted on 7 Aug 2015 by Binbin Qi
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;y_correct = 0; assert(isequal(pancake(x),y_correct))

ans = 0

2   Pass
%% x = 2;y_correct = 1; assert(isequal(pancake(x),y_correct))

ans = 1

3   Pass
%% x = 4;y_correct = 2; assert(isequal(pancake(x),y_correct))

ans = 2

4   Pass
%% x = 7;y_correct = 3; assert(isequal(pancake(x),y_correct))

ans = 3

5   Pass
%% x = 12;y_correct = 5; assert(isequal(pancake(x),y_correct))

ans = 5

6   Pass
%% x = 27;y_correct = 7; assert(isequal(pancake(x),y_correct))

ans = 7

7   Pass
%% x = 127;y_correct = 16; assert(isequal(pancake(x),y_correct))

ans = 16

8   Pass
%% x = 2015;y_correct = 63; assert(isequal(pancake(x),y_correct))

ans = 63

9   Pass
%% x = 4060225;y_correct = 2850; assert(isequal(pancake(x),y_correct))

ans = 2850

10   Pass
%% x = 1234567890;y_correct = 49690; assert(isequal(pancake(x),y_correct))

ans = 49690

11   Pass
%% x = 1362067890;y_correct = 52193; assert(isequal(pancake(x),y_correct))

ans = 52193

12   Pass
%% x = 2030000;y_correct = 2015; assert(isequal(pancake(x),y_correct))

ans = 2015

13   Pass
%% x = 11581428900;y_correct = 152193; assert(isequal(pancake(x),y_correct))

ans = 152193

14   Pass
%% x = 9007199187632129; y_correct = 134217727; assert(isequal(pancake(x),y_correct))

ans = 134217727