Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
n = 0;
y_correct = 1;
assert(isequal(Belln(n),y_correct))
z =
1
|
2 | Pass |
%%
n = 5;
y_correct = [1 1 2 5 15 52];
assert(isequal(Belln(n),y_correct))
z =
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))
z =
Columns 1 through 8
1 1 2 5 15 52 203 877
Columns 9 through 10
4140 21147
|
12378 Solvers
Numbers with prime factors 2, 3 and 5.
166 Solvers
Detect a number and replace with two NaN's
178 Solvers
Find out missing number from a vector of 9 elements
245 Solvers
Create an n-by-n null matrix and fill with ones certain positions
268 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!