Cody

Solution 1976800

Submitted on 15 Oct 2019 at 4:01 by kranthi kumar
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   Pass
assert(isequal(div_tri_n(2),6))

num = 6

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

num = 28

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

num = 36

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

num = 120

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

num = 630

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

num = 2016

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

num = 3240

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

num = 5460

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

num = 25200

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

num = 25200

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

num = 25200

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

num = 73920

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

num = 157080

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

num = 157080

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

num = 437580