Cody

# Problem 2423. Integer Sequence - II : New Fibonacci

Solution 2128128

Submitted on 14 Feb 2020 by Jiahang Li
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))

a = 1 1 1 2 5 21 22 10946 5702887 5702887 ans = 1

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

a = 1 1 1 2 5 21 22 10946 5702887 5702887 ans = 1

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

a = 1 1 1 2 5 21 22 10946 5702887 5702887 ans = 1

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

a = 1 1 1 2 5 21 22 10946 5702887 5702887 ans = 2

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

a = 1 1 1 2 5 21 22 10946 5702887 5702887 ans = 5

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

a = 1 1 1 2 5 21 22 10946 5702887 5702887 ans = 21

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

a = 1 1 1 2 5 21 22 10946 5702887 5702887 ans = 10946

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

a = 1 1 1 2 5 21 22 10946 5702887 5702887 ans = 5702887