Cody

Solution 2094742

Submitted on 16 Jan 2020
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
assessFunctionAbsence({'regexp', 'regexpi', 'str2num'},'FileName','div_tri_n.m')

2   Fail
assert(isequal(div_tri_n(2),6))

the answer is 2

Assertion failed.

3   Fail
assert(isequal(div_tri_n(4),28))

the answer is 6

Assertion failed.

4   Fail
assert(isequal(div_tri_n(8),36))

the answer is 24

Assertion failed.

5   Fail
assert(isequal(div_tri_n(10),120))

the answer is 48

Assertion failed.

6   Fail
assert(isequal(div_tri_n(20),630))

the answer is 240

Assertion failed.

7   Fail
assert(isequal(div_tri_n(25),2016))

the answer is 720

Assertion failed.

8   Fail
assert(isequal(div_tri_n(39),3240))

the answer is 1680

Assertion failed.

9   Fail
assert(isequal(div_tri_n(40),5460))

the answer is 1680

Assertion failed.

10   Fail
assert(isequal(div_tri_n(50),25200))

the answer is 5040

Assertion failed.

11   Fail
assert(isequal(div_tri_n(70),25200))

the answer is 10080

Assertion failed.

12   Fail
assert(isequal(div_tri_n(80),25200))

the answer is 15120

Assertion failed.

13   Fail
assert(isequal(div_tri_n(100),73920))

the answer is 45360

Assertion failed.

14   Fail
assert(isequal(div_tri_n(115),157080))

the answer is 55440

Assertion failed.

15   Fail
assert(isequal(div_tri_n(120),157080))

the answer is 55440

Assertion failed.

16   Fail
assert(isequal(div_tri_n(130),437580))

the answer is 110880

Assertion failed.