Cody

# Problem 2575. Sum of series I

Solution 1935022

Submitted on 13 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   Fail
n = 1; s_correct = 1; assert(isequal(sumOfSeriesI(n),s_correct))

Error in solution: Line: 2 Column: 14 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

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

Error in solution: Line: 2 Column: 14 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

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

Error in solution: Line: 2 Column: 14 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

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

Error in solution: Line: 2 Column: 14 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

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

Error in solution: Line: 2 Column: 14 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

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

Error in solution: Line: 2 Column: 14 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

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

Error in solution: Line: 2 Column: 14 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!