Cody

Solution 1944186

Submitted on 20 Sep 2019
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))

f = 3 f = 3 3

Assertion failed.

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

f = 3 f = 3 3 f = 2 3 f = 2 3 2 3 2 3 2 3

Assertion failed.

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

f = 3 f = 3 3 f = 2 3 f = 2 3 2 3 2 3 2 3 f = 2 5 f = 2 5 2 5 2 5 2 5 f = 3 5 f = 3 5 3 5 3 5 3 5 f = 3 7 f = 3 7 3 7 3 7 3 7 f = 2 2 7 f = 2 2 7 2 2 7 2 2 7 2 2 7 2 2 7 2 2 7 2 2 7 2 2 7 f = 2 2 3 3 f = 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3

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

f = 3 f = 3 3 f = 2 3 f = 2 3 2 3 2 3 2 3 f = 2 5 f = 2 5 2 5 2 5 2 5 f = 3 5 f = 3 5 3 5 3 5 3 5 f = 3 7 f = 3 7 3 7 3 7 3 7 f = 2 2 7 f = 2 2 7 2 2 7 2 2 7 2 2 7 2 2 7 2 2 7 2 2 7 2 2 7 f = 2 2 3 3 f = 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 f = 3 3 5 f = 3 3 5 3 3 5 3 3 5 3 3 5 3 3 5 3 3 5 3 3 5 3 3 5 f = 5 11 f = 5 11 5 11 5 11 5 11 f = 2 3 11 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 2 7 29 f = 2 7 29 2 7 29 2 7 29 2 7 29 2 7 29 2 7 29 2 7 29 2 7 29 f = 3 5 29 f = 3 5 29 3 5 29 3 5 29 3 5 29 3 5 29 3 5 29 3 5 29 3 5 29 f = 3 5 31 f = 3 5 31 3 5 31 3 5 31 3 5 31 3 5 31 3 5 31 3 5 31 3 5 31 f = 2 2 2 2 31 f = 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 f = 2 2 2 2 3 11 f = 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 ...

Assertion failed.

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

f = 3 f = 3 3 f = 2 3 f = 2 3 2 3 2 3 2 3 f = 2 5 f = 2 5 2 5 2 5 2 5 f = 3 5 f = 3 5 3 5 3 5 3 5 f = 3 7 f = 3 7 3 7 3 7 3 7 f = 2 2 7 f = 2 2 7 2 2 7 2 2 7 2 2 7 2 2 7 2 2 7 2 2 7 2 2 7 f = 2 2 3 3 f = 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2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 3 3 7 2 3 3 3 7 2 3 3 3 7 2 3 3 3 7 2 3 3 3 7 2 3 3 3 7 2 3 3 3 7 2 3 3 3 7 2 3 3 3 7 2 3 3 3 7 2 3 3 3 7 2 3 3 3 7 2 3 3 3 7 2 3 3 3 7 2 3 3 3 7 2 3 3 3 7 2 3 3 3 7 2 3 3 3 7 2 3 3 3 7 2 3 3 3 7 2 3 3 3 7 f = 2 7 29 f = 2 7 29 2 7 29 2 7 29 2 7 29 2 7 29 2 7 29 2 7 29 2 7 29 f = 3 5 29 f = 3 5 29 3 5 29 3 5 29 3 5 29 3 5 29 3 5 29 3 5 29 3 5 29 f = 3 5 31 f = 3 5 31 3 5 31 3 5 31 3 5 31 3 5 31 3 5 31 3 5 31 3 5 31 f = 2 2 2 2 31 f = 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 f = 2 2 2 2 3 11 f = 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 ...

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

f = 3 f = 3 3 f = 2 3 f = 2 3 2 3 2 3 2 3 f = 2 5 f = 2 5 2 5 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 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 f = 2 2 2 2 3 11 f = 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 ...

Assertion failed.

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

f = 3 f = 3 3 f = 2 3 f = 2 3 2 3 2 3 2 3 f = 2 5 f = 2 5 2 5 2 5 2 5 f = 3 5 f = 3 5 3 5 3 5 3 5 f = 3 7 f = 3 7 3 7 3 7 3 7 f = 2 2 7 f = 2 2 7 2 2 7 2 2 7 2 2 7 2 2 7 2 2 7 2 2 7 2 2 7 f = 2 2 3 3 f = 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 f = 3 3 5 f = 3 3 5 3 3 5 3 3 5 3 3 5 3 3 5 3 3 5 3 3 5 3 3 5 f = 5 11 f = 5 11 5 11 5 11 5 11 f = 2 3 11 f = 2 3 11 2 3 11 2 3 11 2 3 11 2 3 11 2 3 11 2 3 11 2 3 11 f = 2 3 13 f = 2 3 13 2 3 13 2 3 13 2 3 13 2 3 13 2 3 13 2 3 13 2 3 13 f = 7 13 f = 7 13 7 13 7 13 7 13 f = 3 5 7 f = 3 5 7 3 5 7 3 5 7 3 5 7 3 5 7 3 5 7 3 5 7 3 5 7 f = 2 2 2 3 5 f = 2 2 2 3 5 2 2 2 3 5 2 2 2 3 5 2 2 2 3 5 2 2 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2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 f = 2 2 2 2 3 11 f = 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 ...

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

f = 3 f = 3 3 f = 2 3 f = 2 3 2 3 2 3 2 3 f = 2 5 f = 2 5 2 5 2 5 2 5 f = 3 5 f = 3 5 3 5 3 5 3 5 f = 3 7 f = 3 7 3 7 3 7 3 7 f = 2 2 7 f = 2 2 7 2 2 7 2 2 7 2 2 7 2 2 7 2 2 7 2 2 7 2 2 7 f = 2 2 3 3 f = 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 f = 3 3 5 f = 3 3 5 3 3 5 3 3 5 3 3 5 3 3 5 3 3 5 3 3 5 3 3 5 f = 5 11 f = 5 11 5 11 5 11 5 11 f = 2 3 11 f = 2 3 11 2 3 11 2 3 11 2 3 11 2 3 11 2 3 11 2 3 11 2 3 11 f = 2 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7 29 f = 2 7 29 2 7 29 2 7 29 2 7 29 2 7 29 2 7 29 2 7 29 2 7 29 f = 3 5 29 f = 3 5 29 3 5 29 3 5 29 3 5 29 3 5 29 3 5 29 3 5 29 3 5 29 f = 3 5 31 f = 3 5 31 3 5 31 3 5 31 3 5 31 3 5 31 3 5 31 3 5 31 3 5 31 f = 2 2 2 2 31 f = 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 f = 2 2 2 2 3 11 f = 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 ...

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

f = 3 f = 3 3 f = 2 3 f = 2 3 2 3 2 3 2 3 f = 2 5 f = 2 5 2 5 2 5 2 5 f = 3 5 f = 3 5 3 5 3 5 3 5 f = 3 7 f = 3 7 3 7 3 7 3 7 f = 2 2 7 f = 2 2 7 2 2 7 2 2 7 2 2 7 2 2 7 2 2 7 2 2 7 2 2 7 f = 2 2 3 3 f = 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 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3 3 7 2 3 3 3 7 2 3 3 3 7 2 3 3 3 7 2 3 3 3 7 2 3 3 3 7 2 3 3 3 7 2 3 3 3 7 2 3 3 3 7 2 3 3 3 7 2 3 3 3 7 2 3 3 3 7 2 3 3 3 7 2 3 3 3 7 2 3 3 3 7 2 3 3 3 7 2 3 3 3 7 2 3 3 3 7 2 3 3 3 7 2 3 3 3 7 f = 2 7 29 f = 2 7 29 2 7 29 2 7 29 2 7 29 2 7 29 2 7 29 2 7 29 2 7 29 f = 3 5 29 f = 3 5 29 3 5 29 3 5 29 3 5 29 3 5 29 3 5 29 3 5 29 3 5 29 f = 3 5 31 f = 3 5 31 3 5 31 3 5 31 3 5 31 3 5 31 3 5 31 3 5 31 3 5 31 f = 2 2 2 2 31 f = 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 f = 2 2 2 2 3 11 f = 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 ...

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

f = 3 f = 3 3 f = 2 3 f = 2 3 2 3 2 3 2 3 f = 2 5 f = 2 5 2 5 2 5 2 5 f = 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2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 f = 2 2 2 2 3 11 f = 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 ...

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

f = 3 f = 3 3 f = 2 3 f = 2 3 2 3 2 3 2 3 f = 2 5 f = 2 5 2 5 2 5 2 5 f = 3 5 f = 3 5 3 5 3 5 3 5 f = 3 7 f = 3 7 3 7 3 7 3 7 f = 2 2 7 f = 2 2 7 2 2 7 2 2 7 2 2 7 2 2 7 2 2 7 2 2 7 2 2 7 f = 2 2 3 3 f = 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 f = 3 3 5 f = 3 3 5 3 3 5 3 3 5 3 3 5 3 3 5 3 3 5 3 3 5 3 3 5 f = 5 11 f = 5 11 5 11 5 11 5 11 f = 2 3 11 f = 2 3 11 2 3 11 2 3 11 2 3 11 2 3 11 2 3 11 2 3 11 2 3 11 f = 2 3 13 f = 2 3 13 2 3 13 2 3 13 2 3 13 2 3 13 2 3 13 2 3 13 2 3 13 f = 7 13 f = 7 13 7 13 7 13 7 13 f = 3 5 7 f = 3 5 7 3 5 7 3 5 7 3 5 7 3 5 7 3 5 7 3 5 7 3 5 7 f = 2 2 2 3 5 f = 2 2 2 3 5 2 2 2 3 5 2 2 2 3 5 2 2 2 3 5 2 2 2 3 5 2 2 2 3 5 2 2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 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 2 2 2 2 31 f = 2 2 2 2 3 11 f = 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 2 3 11 2 2 2 ...

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

f = 3 f = 3 3 f = 2 3 f = 2 3 2 3 2 3 2 3 f = 2 5 f = 2 5 2 5 2 5 2 5 f = 3 5 f = 3 5 3 5 3 5 3 5 f = 3 7 f = 3 7 3 7 3 7 3 7 f = 2 2 7 f = 2 2 7 2 2 7 2 2 7 2 2 7 2 2 7 2 2 7 2 2 7 2 2 7 f = 2 2 3 3 f = 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 2 2 3 3 f = 3 3 5 f = 3 3 5 3 3 5 3 3 5 3 3 5 3 3 5 3 3 5 3 3 5 3 3 5 f = 5 11 f = 5 11 5 11 5 11 5 11 f = 2 3 11 f = 2 3 11 2 3 11 2 3 11 2 3 11 2 3 11 2 3 11 2 3 11 2 3 11 f = 2 3 13 f = 2 3 13 2 3 13 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