SyntaxFix
Write A Post
Hire A Developer
Questions
Sum of arithmetical progression
(A1+AN)/2*N = (1 + (N-1))/2*(N-1) = N*(N-1)/2