Cody

Solution 2173786

Submitted on 25 Mar 2020 by Binbin Qi
  • Size: 16
  • This is the leading solution.
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))

ans = 3702

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

ans = 2.4691e+14

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

ans = 1.1111e+09

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

ans = 1.2346e+11

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

ans = 61725