Cody

Problem 45384. Sum! Sum! Sum!

Solution 2771821

Submitted on 3 Aug 2020 by Ramesh Kumar V
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))

d = 3

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

d = 2

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

d = 9

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

d = 1

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

d = 5

Suggested Problems

More from this Author148