Arithmetic Sequence Calculator
Calculate the n-th term, partial sum, and full sequence of any arithmetic progression. Enter first term, common difference, and number of terms.
About
An arithmetic sequence (arithmetic progression) is a sequence of numbers where the difference between consecutive terms remains constant. This constant is the d (common difference). Miscalculating d or the sum formula propagates errors through financial amortization schedules, signal sampling intervals, and structural load distributions. This tool computes the k-th term, partial sum Sn, and generates the full term table using the closed-form Gauss formula. It assumes integer or decimal inputs and does not handle symbolic expressions.
Pro tip: for sequences with thousands of terms, the closed-form sum avoids iterative accumulation errors from floating-point drift. Note that the arithmetic series always diverges for d ≠ 0, so this calculator provides finite partial sums only. Remember that real-world indexed sequences (e.g., payment schedules) often start at index 0 or 1 - this tool uses 1-based indexing.
Formulas
The general (n-th) term of an arithmetic sequence is computed by the linear relation:
The partial sum of the first n terms uses Gauss's closed-form expression:
Equivalently, when the last term an is known:
Where: a1 = first term of the sequence, d = common difference (an+1 − an), n = number of terms (positive integer), an = the n-th (last) term, Sn = sum of the first n terms. The sum formula is quadratic in n: Sn = d2n2 + (a1 − d2)n, confirming that the graph of Sn vs. n is a parabola.
Reference Data
| Property | Formula / Value | Notes |
|---|---|---|
| General Term | an = a1 + (n − 1)d | Direct O(1) computation |
| Partial Sum (form 1) | Sn = n2(2a1 + (n − 1)d) | Gauss formula using a1 and d |
| Partial Sum (form 2) | Sn = n(a1 + an)2 | Useful when last term is known |
| Common Difference | d = an+1 − an | Constant for all consecutive pairs |
| Monotonicity | d > 0 → increasing | d < 0 → decreasing |
| Constant Sequence | d = 0 | All terms equal a1 |
| Arithmetic Mean | = a1 + an2 | Equals the average of first and last term |
| Sum of first 100 naturals | 5050 | a1=1, d=1, n=100 |
| Sum of first n odd numbers | n2 | a1=1, d=2 |
| Sum of first n even numbers | n(n+1) | a1=2, d=2 |
| Convergence of Series | Diverges for d ≠ 0 | Only converges trivially when a1=0 and d=0 |
| Number of terms from range | n = an − a1d + 1 | Only valid when d ≠ 0 |
| Relation to quadratic | Sn is quadratic in n | Sn = d2n2 + (a1 − d2)n |
| Finite differences | Δan = d (constant) | First differences are constant; second differences are 0 |
| Interpolation property | an = an−1 + an+12 | Each term is the arithmetic mean of its neighbors |
| Gauss anecdote | 1 + 2 + … + 100 = 5050 | Attributed to young Carl Friedrich Gauss, c. 1786 |