Sum of the first n natural numbers
The sum of the first n natural numbers is given by the formula: scss S = n(n+1)/2 where S is the sum of the first n natural numbers. For example, if we want to find the sum of the first 5 natural numbers, we can use the formula as follows: scss S = 5(5+1)/2 =…