Cody

Solution 1941083

Submitted on 18 Sep 2019 by Doan Quang Manh
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 = 1; s_correct = 1; assert(isequal(sumOfSeriesI(n),s_correct))

2   Pass
n = 2; s_correct = 4; assert(isequal(sumOfSeriesI(n),s_correct))

3   Pass
n = 10; s_correct = 100; assert(isequal(sumOfSeriesI(n),s_correct))

4   Pass
n = 15; s_correct = 225; assert(isequal(sumOfSeriesI(n),s_correct))

5   Pass
n = 42; s_correct = 1764; assert(isequal(sumOfSeriesI(n),s_correct))

6   Pass
n = 101; s_correct = 10201; assert(isequal(sumOfSeriesI(n),s_correct))

7   Pass
n = 12345; s_correct = 152399025; assert(isequal(sumOfSeriesI(n),s_correct))

Suggested Problems

More from this Author9