How this calculation works
A sequence lists terms; a series adds them. Choose arithmetic progression for a constant step and geometric progression for a constant multiplier. The result separates the requested nth term from the sum of all n terms, then shows the formula substitution and a bounded preview so you can check how the sequence develops.
Worked example
This example uses illustrative inputs. Your current result is shown above.
AP with a₁ = 3, d = 2 and n = 10: the terms begin 3, 5, 7, 9; a₁₀ = 3 + 9×2 = 21, and S₁₀ = 10×(3 + 21)/2 = 120. Switching to GP with a₁ = 3 and r = 2 gives a₁₀ = 3×2⁹ = 1536 and S₁₀ = 3×(1 − 2¹⁰)/(1 − 2) = 3069.
Assumptions and limits
- The first term has index 1. The same n specifies the requested term and the number of terms included in the finite sum.
- An AP adds a fixed difference; a GP repeatedly multiplies by a fixed ratio. Zero first terms and zero GP ratios use this recurrence convention even where a ratio of successive zero terms would be undefined.
- First term, difference and ratio are finite numbers between −10¹² and 10¹². n is a whole number from 1 to 1,000,000; the preview is limited to 50 terms.
- Arithmetic uses 80 significant digits and results show up to 12. Numeric inputs preserve approximately 15–17 significant digits. A result beyond the finite numeric range, or a nonzero result too small to represent, produces a range error.
- This calculator finds finite sums only. It does not assume that an infinite geometric series converges.
Questions people ask
What is the difference between an AP and a GP?
An AP adds the same difference each time, such as 3, 5, 7 with d = 2. A GP multiplies by the same ratio, such as 3, 6, 12 with r = 2. A percentage change must first be converted to a multiplier: 10% growth uses r = 1.1.
Can the terms or ratio be negative?
Yes. Negative differences can make an AP decrease. A negative GP ratio alternates the sign of nonzero terms. With r = −1, the terms alternate a₁ and −a₁; an even number of terms sums to zero and an odd number sums to a₁.
What happens with r = 0 or r = 1?
With r = 0, the first term stays a₁ and every later term is zero. With r = 1, all terms equal a₁ and the finite sum is n×a₁. These cases are evaluated separately to avoid an undefined division or an ambiguous zero-power expression.
Does showing only ten terms mean only ten terms are added?
No. The preview limit affects only the displayed term list. The finite sum always includes term 1 through term n. A range error means the requested result is outside the supported numeric range; it does not mean the sequence itself is mathematically undefined.