Cody

Problem 45364. Sum of series

Solution 3188566

Submitted on 13 Oct 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   Fail
assert(isequal(seq_sum(236),55696))

Unrecognized function or variable 'x'. Error in seq_sum (line 2) y = x; Error in Test1 (line 1) assert(isequal(seq_sum(236),55696))

2   Fail
assert(isequal(seq_sum(881224),776555738176))

Unrecognized function or variable 'x'. Error in seq_sum (line 2) y = x; Error in Test2 (line 1) assert(isequal(seq_sum(881224),776555738176))

3   Fail
assert(isequal(seq_sum(10199),104019601))

Unrecognized function or variable 'x'. Error in seq_sum (line 2) y = x; Error in Test3 (line 1) assert(isequal(seq_sum(10199),104019601))

4   Fail
assert(isequal(seq_sum(8812249),77655732438001))

Unrecognized function or variable 'x'. Error in seq_sum (line 2) y = x; Error in Test4 (line 1) assert(isequal(seq_sum(8812249),77655732438001))

Suggested Problems

More from this Author149

Community Treasure Hunt

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

Start Hunting!