The sum of an arithmetic sequence with n terms, first term a1, and last term an is: S=2n(a1+an).
This formula says: multiply the number of terms by the average of first and last, then divide by two. It generalizes the 1+2+...+n formula.
For the sequence 5,8,11,14,17 (5 terms), the sum is 25(5+17)=25×22=55. Check: 5+8+11+14+17=55.