Is the sum of n positive integers formula, \frac{n(n+1)}{2}, applicable to sets of consecutive integers as well?
For instance, if I wanted to calculate sum of first 20 multiples of 3, could I use: 3 x \frac{20(21)}{2}
In OG PS Q172, a similar approach has been used for even numbers.
For instance, if I wanted to calculate sum of first 20 multiples of 3, could I use: 3 x \frac{20(21)}{2}
In OG PS Q172, a similar approach has been used for even numbers.