Cody

Problem 45384. Sum! Sum! Sum!

Solution 2285456

Submitted on 16 May 2020 by CHANDRABHAN Singh
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(series_sum(3,4),3702))

2   Pass
assert(isequal(series_sum(2,15),246913580246910))

3   Pass
assert(isequal(series_sum(9,9),1111111101))

4   Pass
assert(isequal(series_sum(1,12),123456790122))

5   Pass
assert(isequal(series_sum(5,5),61725))

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!