Choose the pattern before using the result
Use an arithmetic sequence when every step adds the same difference, such as a fixed weekly increase. Use a geometric sequence when every step multiplies by the same ratio, such as repeated percentage growth or decay. The core result keeps the nth term and the sum of the first n terms together, then shows the average, change from the first term and a short term list for a visual pattern check.
Formulas and the optional convergence decision
For an arithmetic sequence, aₙ=a₁+(n−1)d and Sₙ=n(a₁+aₙ)/2. For a geometric sequence, aₙ=a₁rⁿ⁻¹ and Sₙ=a₁(1−rⁿ)/(1−r) when r≠1; when r=1, Sₙ=na₁. An infinite geometric sum a₁/(1−r) is displayed only when |r|<1.
Independent checks
For a₁=3, d=4 and n=10, a₁₀=3+9×4=39 and S₁₀=10(3+39)/2=210. For a₁=10, d=−2 and n=6, the sixth term is 0 and the sum is 30. For a₁=2, r=3 and n=5, a₅=162 and S₅=242. For a₁=8 and r=0.5, the first four terms sum to 15 and the infinite sum is 16.
Input mistakes, interpretation and limits
n and the preview count must be positive whole numbers; the first term, difference and ratio may be negative or zero. Do not use a common difference for percentage growth or a common ratio for fixed additions. With a nonzero first term, the infinite sum is not finite when |r|≥1. Display rounding does not change the underlying calculation. This tool assumes one constant difference or ratio and does not fit a pattern from noisy data, handle variable-step recurrences or attach physical units; if terms represent units, keep them consistent.
Formula sources
OpenStax Arithmetic Sequences and OpenStax Geometric Sequences provide the formulas. For a zero first term, check the all-zero sequence separately from the nonzero convergence rule.