Skip to content

Arithmetic Sequence Calculator

nth term, sum of the first terms, common difference from two terms and the position of a value, exactly.

Your details

First index

Most English textbooks start at a₁. French lycée courses often start at u₀, so that uₙ = u₀ + n·r.

a₁ (or a₀ when the sequence starts at 0).

The term to compute; the sum adds every term from the first one up to this one.

Results update as you type

nth term

a₂₀ = 62

Explicit formula
aₙ = a₁ + (n − 1)·r = 3n + 2
Recursive formula
aₙ₊₁ = aₙ + 3, a₁ = 5
Sum of the terms up to n
670
Number of terms added
20
Behaviour
Increasing (r > 0)

Step-by-step solution
  1. Explicit formula: aₙ = a₁ + (n − 1)·r = 3n + 2
  2. a₂₀ = 5 + (20 − 1) × 3 = 62
  3. Sum formula: Sₙ = (number of terms) × (first + last) ÷ 2
  4. S = 20 × (5 + 62) ÷ 2 = 670

First terms and running sums

An arithmetic sequence (or arithmetic progression) is a list of numbers in which each term is the previous one plus a fixed amount, the common difference rr (written dd in many textbooks): 5, 8, 11, 14… has r=3r = 3; 40, 35, 30… has r=−5r = -5. Savings that grow by the same deposit every month, seats added row by row in a theatre, a taxi fare rising by a fixed amount per kilometre, or the dates of a weekly meeting are all arithmetic sequences.

This arithmetic sequence calculator handles the three classic questions. From the first term and the common difference, it gives the nth term and the sum of the first n terms. From any two terms, it finds the common difference and the first term. And it tells you whether a value belongs to the sequence and at which position. Every result is exact: decimals stay decimals (0.1+0.20.1 + 0.2 is 0.30.3) and differences that do not divide evenly are shown as fractions.

You can count from index 1 (a1a_1, as in most English textbooks) or from index 0 (u0u_0, as in many French and Moroccan courses). The page also gives the explicit and recursive formulas, whether the sequence increases or decreases, and a table of the first terms with running sums.

How to use this calculator

  1. Choose what you know: the first term and the common difference, two terms, or a value whose position you want.
  2. Choose whether the sequence starts at index 1 or 0.
  3. Enter the values, and the index nn of the term you need. The sum adds every term from the first one up to ana_n.
  4. Read the term, the sum, the explicit formula and the table; open the steps to see each substitution.

The formula

With first term a1a_1 and common difference rr:

an=a1+(n−1) ran+1=an+ra_n = a_1 + (n - 1)\,r \qquad\qquad a_{n+1} = a_n + r

The sum of the first nn terms is nn times the average of the first and last terms:

Sn=a1+a2+⋯+an=n (a1+an)2=n (2a1+(n−1) r)2S_n = a_1 + a_2 + \dots + a_n = \frac{n\,(a_1 + a_n)}{2} = \frac{n\,\big(2a_1 + (n - 1)\,r\big)}{2}

From two terms apa_p and aqa_q: r=aq−apq−pr = \dfrac{a_q - a_p}{q - p}, then a1=ap−(p−1) ra_1 = a_p - (p - 1)\,r.

Position of a value LL: n=L−a1r+1n = \dfrac{L - a_1}{r} + 1; LL is a term only if this is a whole number of at least 1.

Starting at index 0, the same formulas read un=u0+n ru_n = u_0 + n\,r and u0+u1+⋯+un=(n+1)(u0+un)2u_0 + u_1 + \dots + u_n = \dfrac{(n + 1)(u_0 + u_n)}{2}, because there are n+1n + 1 terms from u0u_0 to unu_n.

Worked example

nth term and sum. For 5, 8, 11, … (a1=5a_1 = 5, r=3r = 3): $a_{20} = 5 + 19 \times 3 = $ 62, and $S_{20} = 20 \times (5 + 62) / 2 = $ 670.

Gauss’s sum. 1+2+⋯+100=100×101/2=50501 + 2 + \dots + 100 = 100 \times 101 / 2 = 5050: pair the first and last terms, the second and the second-to-last, and so on; each pair sums to 101.

From two terms. If a3=11a_3 = 11 and a10=32a_{10} = 32, then r=(32−11)/(10−3)=3r = (32 - 11) / (10 - 3) = 3 and a1=11−2×3=5a_1 = 11 - 2 \times 3 = 5: it is the same sequence.

Is 98 a term? n=(98−5)/3+1=32n = (98 - 5)/3 + 1 = 32, a whole number, so 98 is a32a_{32}, and the first 32 terms add up to 1648.

Index 0. With u0=5u_0 = 5 and r=3r = 3, u20=5+20×3=65u_{20} = 5 + 20 \times 3 = 65, and the 21 terms from u0u_0 to u20u_{20} sum to 735.

Decimals. 0.1, 0.3, 0.5… gives a10=1.9a_{10} = 1.9 and S10=10S_{10} = 10 exactly.

Arithmetic or geometric?

In an arithmetic sequence you add the same number each time, so the terms change by a constant amount and lie on a straight line when plotted: ana_n is a linear function of nn. In a geometric sequence you multiply by the same number, so the terms change by a constant percentage: that is exponential growth. A salary raised by 1,000 a year is arithmetic; one raised by 3% a year is geometric.

To test a list of numbers, compute the differences between consecutive terms: if they are all equal, the sequence is arithmetic. A useful property follows: each term is the average of its two neighbours, an=(an−1+an+1)/2a_n = (a_{n-1} + a_{n+1})/2, and the average of all terms equals the average of the first and the last, which is exactly why the sum formula works.

Frequently asked questions

How do you find the nth term of an arithmetic sequence?

Start from the first term and add the common difference n − 1 times: aₙ = a₁ + (n − 1)r. For 5, 8, 11…, the 20th term is 5 + 19 × 3 = 62.

What is the formula for the sum of an arithmetic sequence?

Sₙ = n(a₁ + aₙ)/2: the number of terms times the average of the first and last terms. Equivalently, Sₙ = n(2a₁ + (n − 1)r)/2 when you do not know the last term.

How do I find the common difference from two terms?

Subtract the two values and divide by the difference of their positions: r = (a_q − a_p)/(q − p). If a₃ = 11 and a₁₀ = 32, r = 21/7 = 3.

Why do some courses write uₙ = u₀ + nr?

Because they number the terms from 0, a common convention in France and Morocco. Then uₙ is reached after n steps of r. If the sequence starts at u₁, the formula becomes uₙ = u₁ + (n − 1)r. Choose the matching option above.

Can the common difference be negative or a fraction?

Yes. A negative difference gives a decreasing sequence (40, 35, 30…), and a fractional one such as 1/3 is handled exactly: the calculator shows fractions rather than rounded decimals.

Sources

Last updated:

More Math calculators

People also use