Cody

Problem 45364. Sum of series

Solution 2159936

Submitted on 14 Mar 2020 by Asif Newaz
  • Size: 10
  • 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(seq_sum(236),55696))

ans = 55696

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

ans = 7.7656e+11

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

ans = 104019601

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

ans = 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!