Math / calculator
Number Sequence Calculator
Find an arithmetic or geometric nth term, compensated partial sum and bounded preview using an explicit difference or ratio.
Calculator
Calculator
Calculate an arithmetic or geometric sequence.
Use a finite first term and difference/ratio, with n from 1 to 10,000. The first 30 terms form the preview; overflow or nonzero underflow is rejected.
Your result
Enter details to see the result.
Complete the inputs and calculate to see the main result and its supporting breakdown.
Example
Worked example
Example inputs
- Sequence
- Arithmetic
- First term
- 2
- Common difference / ratio
- 3
- Term number n
- 10
Calculation breakdown
Arithmetic a_n=a1+(n−1)d, S_n=n[2a1+(n−1)d]/2; geometric a_n=a1×r^(n−1), S_n=a1(1−r^n)/(1−r), with r=1 giving n×a1.
- Sequence preview (first 30 at most)
- 2, 5, 8, 11, 14, 17, 20, 23, 26, 29
- Sum of first n terms
- 155
Example result
Nth term
29
How to interpret the result
The nth term is the requested position starting from one; the sum includes all n terms even when the preview shows fewer. Alternating signs are allowed for negative geometric ratios.
How to use this calculator
- Choose arithmetic progression or geometric progression.
- Enter the first term and its constant difference or ratio.
- Supply n to view the nth term, sum through n and first-thirty-term preview.
How it works
Formula
Arithmetic a_n=a1+(n−1)d, S_n=n[2a1+(n−1)d]/2; geometric a_n=a1×r^(n−1), S_n=a1(1−r^n)/(1−r), with r=1 giving n×a1.
What happens when the geometric ratio is one?
Every term equals the first term, so the sum is n times the first term, without dividing by zero.
What this calculator does
Explore an arithmetic or geometric progression from a first term and a fixed difference or ratio.
Inputs you will need
Required or selected inputs
- Sequence
- First term
- Common difference / ratio
- Term number n
Assumptions
- Arithmetic uses a constant difference; geometric uses a constant ratio. n is a positive whole number. The implementation sums the bounded recurrence with compensation.
Limitations
- n is capped at 10,000 and previews at 30 terms. Overflow and nonzero geometric underflow are errors; results use real floating-point arithmetic.
Useful next steps
Inspect the powers used in geometric terms with Exponent Calculator.
See how HandyChest handles units, validation, rounding, and testing, or Report a problem with this calculator.
Good to know
Frequently asked questions
How should I read the number sequence result?
The nth term is the requested position starting from one; the sum includes all n terms even when the preview shows fewer. Alternating signs are allowed for negative geometric ratios.
Keep going