Finite arithmetic and geometric series sums with the formula worked out.
Input
Answer
Steps
Why it works
Finite series have closed forms: arithmetic sums pair terms (Sₙ = n/2(a₁+aₙ)); geometric sums telescope (Sₙ = a₁(rⁿ−1)/(r−1)). Knowing which pattern you have turns a long addition into one formula.