Processing math: 100%
< Back

Summation

Create a function called summation_less_than(max_sum). This function should return the largest number of sequential integers that sum to less than the specified positive integer max_sum. Put another way, return the largest n such that:

(ni=0i)<max_sum