Cody

Problem 45384. Sum! Sum! Sum!

Solution 2195524

Submitted on 6 Apr 2020 by Nikolaos Nikolaou
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))

y = 3702

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

y = 2.4691e+14

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

y = 1.1111e+09

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

y = 1.2346e+11

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

y = 61725

Suggested Problems

More from this Author148