Cody

Solution 1523701

Submitted on 9 May 2018 by Nicolas
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 = 0; y_correct = 1; assert(isequal(Belln(n),y_correct))

2   Pass
n = 5; y_correct = [1 1 2 5 15 52]; assert(isequal(Belln(n),y_correct))

y = 1 1 y = 1 1 2 y = 1 1 2 5 y = 1 1 2 5 15 y = 1 1 2 5 15 52

3   Pass
n = 9; y_correct = [1 1 2 5 15 52 203 877 4140 21147]; assert(isequal(Belln(n),y_correct))

y = 1 1 y = 1 1 2 y = 1 1 2 5 y = 1 1 2 5 15 y = 1 1 2 5 15 52 y = 1 1 2 5 15 52 203 y = 1 1 2 5 15 52 203 877 y = 1 1 2 5 15 52 203 877 4140 y = 1 1 2 5 15 52 203 877 4140 21147