Arithmetic Sequence & Missing Term Calculator
Enter two known terms with their indices, or enter one term and its common difference. Find the first term and exact difference, then solve for a missing value, an index or a prefix sum. The worksheet identifies unreachable targets, multiple matching counts and constant sequences.
Arithmetic sequence solver
Recover the sequence from known terms, then find a missing term or the index that produces a target.
Known sequence values
Index positions start at 1. Enter values as signed decimals or fractions.
Recovered sequence and answer
First term a₁
5/2
Common difference d
1/2
aₙ = (5/2) + (n − 1) × (1/2)
Find the term at n
5
Exact value of term 6.
Sequence plot
- Integer position
- Given index
- Result index
Exact terms and sums
| Index n | Term aₙ | Prefix sum Sₙ | Index role |
|---|---|---|---|
| 2 | 3 | 11/2 | — |
| 3 | 7/2 | 9 | Given |
| 4 | 4 | 13 | — |
| 5 | 9/2 | 35/2 | — |
| 6 | 5 | 45/2 | Result |
| 7 | 11/2 | 28 | — |
| 8 | 6 | 34 | — |
| 9 | 13/2 | 81/2 | Given |
| 10 | 7 | 95/2 | — |
How to use this calculator
- Choose Two indexed terms or One indexed term and difference. Enter the known values as signed decimals or fractions.
- Choose Solve for. Find a term at n, an index for a target term, the sum of the first n terms, or all positive counts that give a target sum.
- Read the first term, common difference and exact answer. A fractional algebraic index falls between actual sequence positions.
- Switch the Sequence plot between Term values and Prefix sums. Use the window controls to inspect givens or matching indices.
- Read Exact terms and sums or download the sequence CSV for the recovered formula, result and the nine-term window.
The Formula
The mathematical logic powering this calculation is:
From distinct known indices i and j with values aᵢ and aⱼ, the common difference is d = (aⱼ − aᵢ)/(j − i). The first term is a₁ = aᵢ − (i − 1)d. Then aₙ = a₁ + (n − 1)d and Sₙ = n(a₁ + aₙ)/2. Indices start at 1 and are positive integers.
For a target term T and d ≠ 0, solve n = 1 + (T − a₁)/d and keep a positive integer. With d = 0, every term equals a₁, so a matching target occurs at every positive index.
For a target prefix sum S and d ≠ 0, solve dn² + (2a₁ − d)n − 2S = 0. Check its discriminant exactly, accept only positive integer roots and count a repeated root once. Two positive counts can have the same sum when positive and negative terms cancel. With d = 0, Sₙ = na₁. If a₁ and the target are both zero, every positive count is a solution.
Enter known and queried indices from 1 to 1 trillion. An inverse calculation can report larger positive indices as exact integers. Term values, differences and targets accept signed decimals with up to six decimal places or a fraction with a positive denominator. Each integer component may contain up to 24 digits. Arithmetic and inverse decisions use exact fractions. The plot is a numerical preview of nine consecutive integer positions and uses offsets to preserve small differences.Worked Example
If you input:
- Known term at index 3: 7/2
- Known term at index 9: 13/2
- Term index n: 6
Result:
The common difference is the change in value 3 divided by the change in index 6, or 1/2. The first term is 5/2. Substituting n = 6 into aₙ = 5/2 + (n − 1)/2 gives the exact missing term 5.
Frequently Asked Questions
How do I find an arithmetic sequence from two nonconsecutive terms?
Divide the difference between the term values by the difference between their indices. Use that common difference to step backward from either known term to index 1. The entries can be in either order.
Can I use the same index twice?
Two identical entries give one piece of information. Enter a different index or supply the common difference. Two different values at the same index conflict because the sequence assigns a single value to each index.
Why is a fractional algebraic index unreachable?
Indices are positive whole numbers. A formal solution such as 3/2 identifies a value between two sequence positions. The plot and ledger show actual integer-indexed terms.
Can more than one count give the same prefix sum?
Yes. Positive and negative terms can cause the running sum to rise and then fall, or fall and then rise. For example, a₁ = 5 and d = −2 give S₂ = 8 and S₄ = 8. The calculator reports both counts.
What happens when the common difference is zero?
Every term equals the first term. A matching term target is reached at every positive index. Prefix sums equal the number of terms multiplied by the first term. If that term is zero, every positive prefix count gives zero.
Does this tool guess the pattern from an arbitrary list?
The worksheet assumes a common difference across consecutive indices. It recovers the unique arithmetic sequence compatible with the selected givens and uses that model for the query.
How does this differ from a summation calculator?
This worksheet recovers a sequence from indexed terms and solves backward for term positions and target-sum counts. The summation explorer evaluates explicit expressions or progressions over specified bounds and steps.
Similar Calculators
Summation & Series Explorer
Evaluate sigma notation with exact fractions. Explore indexed expressions, arithmetic and geometric series, partial sums, cancellation, remainders and CSV.
Slope & Line Equation Calculator
Find slope, intercepts and exact line equations from two points or known coefficients. Graph parallel and perpendicular lines and find the shortest distance from a point.
Fraction Calculator
Add, subtract, multiply, and divide fractions with step-by-step simplified results.
Quadratic Formula Calculator
Solve any quadratic equation ax² + bx + c = 0 and find its real or complex roots instantly.
