Find the smallest natural number n such that the sum of the first n natural numbers exceeds 1000.
Note
Sum of first n numbers is n(n+1)/2; for n=44 the sum is 990 (1000), so the smallest n is 45.
Find the smallest natural number n such that the sum of the first n natural numbers exceeds 1000.
Sum of first n numbers is n(n+1)/2; for n=44 the sum is 990 (1000), so the smallest n is 45.