Cody

Problem 45364. Sum of series

Solution 2169380

Submitted on 22 Mar 2020 by Mehmed Saad
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
assert(isequal(seq_sum(236),55696))

y = 55696

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

y = 7.7656e+11

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

y = 104019601

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

y = 7.7656e+13

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!