End of Year Sale: Use Coupon Code END2025 to Get Extra 25% Off.
k from 1 to sqrt(2n + 1/4) - 1/2.k, calculate x using the formula x = n/k - (k + 1)/2.x is a non-negative integer.x is an integer and x >= 0, increment the counter.n can be written as the sum of consecutive positive integers.