Cody

Solution 1908551

Submitted on 22 Aug 2019 at 5:46 by Virtual AS
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))

v = 1.0e+19 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 Columns 19 through 27 0.0000 0.0000 0.0000 0.0000 0.0005 0.0044 0.0446 0.4639 4.9631 y = 1

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

v = 1.0e+19 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 Columns 19 through 27 0.0000 0.0000 0.0000 0.0000 0.0005 0.0044 0.0446 0.4639 4.9631 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))

v = 1.0e+19 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 Columns 19 through 27 0.0000 0.0000 0.0000 0.0000 0.0005 0.0044 0.0446 0.4639 4.9631 y = 1 1 2 5 15 52 203 877 4140 21147

Suggested Problems