Cody

# Problem 2423. Integer Sequence - II : New Fibonacci

Solution 787925

Submitted on 3 Dec 2015 by Gergely Patay
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
%% assert(isequal(newFibo(1),1))

y = Columns 1 through 8 1 1 1 2 5 21 -1 10946 Column 9 5702887

2   Pass
%% assert(isequal(newFibo(2),1))

y = Columns 1 through 8 1 1 1 2 5 21 -1 10946 Column 9 5702887

3   Pass
%% assert(isequal(newFibo(3),1))

y = Columns 1 through 8 1 1 1 2 5 21 -1 10946 Column 9 5702887

4   Pass
%% assert(isequal(newFibo(4),2))

y = Columns 1 through 8 1 1 1 2 5 21 -1 10946 Column 9 5702887

5   Pass
%% assert(isequal(newFibo(5),5))

y = Columns 1 through 8 1 1 1 2 5 21 -1 10946 Column 9 5702887

6   Pass
%% assert(isequal(newFibo(6),21))

y = Columns 1 through 8 1 1 1 2 5 21 -1 10946 Column 9 5702887

7   Pass
%% assert(isequal(newFibo(8),10946))

y = Columns 1 through 8 1 1 1 2 5 21 -1 10946 Column 9 5702887

8   Pass
%% assert(isequal(newFibo(9),5702887))

y = Columns 1 through 8 1 1 1 2 5 21 -1 10946 Column 9 5702887