Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

Arithmetic Sequence Calculator






What is an Arithmetic Sequence?

An arithmetic sequence (also called an arithmetic progression, AP) is a sequence where each term is obtained by adding a constant to the previous term. The constant is called the common difference, denoted dd.

a1,    a1+d,    a1+2d,    a1+3d,    a_1, \;\; a_1 + d, \;\; a_1 + 2d, \;\; a_1 + 3d, \;\; \ldots


Examples.

a1=2a_1 = 2, d=3d = 3: gives 2,5,8,11,14,17,20,23,2, 5, 8, 11, 14, 17, 20, 23, \ldots
a1=10a_1 = 10, d=3d = -3: gives 10,7,4,1,2,5,8,10, 7, 4, 1, -2, -5, -8, \ldots
a1=0a_1 = 0, d=1d = 1: gives 0,1,2,3,4,0, 1, 2, 3, 4, \ldots — the natural numbers.
a1=1a_1 = 1, d=2d = 2: gives 1,3,5,7,9,1, 3, 5, 7, 9, \ldots — the odd numbers.
a1=100a_1 = 100, d=0d = 0: gives 100,100,100,100, 100, 100, \ldots — the constant sequence.

Two key formulas.

• The nn-th term: an=a1+(n1)da_n = a_1 + (n - 1) d.
• The sum of the first nn terms: Sn=n2(a1+an)=n2(2a1+(n1)d)S_n = \dfrac{n}{2}(a_1 + a_n) = \dfrac{n}{2}(2 a_1 + (n - 1) d).

Parametric nature. Unlike triangular or square numbers (where the sequence is fixed), an arithmetic sequence depends on two parameters: a1a_1 and dd. Different choices give different sequences. This explorer lets you set both parameters and explore the resulting sequence.

For deeper coverage see arithmetic sequence, arithmetic progression, and series.

The n-th Term Formula

Derivation. Starting from a1a_1, the next term is a1+da_1 + d, then a1+2da_1 + 2d, then a1+3da_1 + 3d. After n1n - 1 additions, the nn-th term is

an=a1+(n1)da_n = a_1 + (n - 1) d


Inverting the formula. Given ana_n, a1a_1, and dd, solve for nn:

n=ana1d+1n = \frac{a_n - a_1}{d} + 1


This works only when d0d \neq 0; if d=0d = 0, every term equals a1a_1 and nn is undetermined.

Examples.

• Sequence 5,8,11,14,5, 8, 11, 14, \ldots: a1=5a_1 = 5, d=3d = 3. The 20th term is a20=5+193=62a_{20} = 5 + 19 \cdot 3 = 62.
• Sequence 100,97,94,100, 97, 94, \ldots: a1=100a_1 = 100, d=3d = -3. The 10th term is a10=100+9(3)=73a_{10} = 100 + 9 \cdot (-3) = 73.
• Membership test: is 47 in the sequence 2,5,8,11,2, 5, 8, 11, \ldots? Solve 47=2+(n1)3    n=1647 = 2 + (n-1) \cdot 3 \implies n = 16. Since nn is a positive integer, yes — 47=a1647 = a_{16}.
• Non-membership: is 50 in the sequence 2,5,8,11,2, 5, 8, 11, \ldots? Solve 50=2+(n1)3    n=1750 = 2 + (n-1) \cdot 3 \implies n = 17. Wait, 1717 is an integer — so 5050 IS in the sequence. Let me try 5151: 51=2+(n1)3    n=17.3351 = 2 + (n-1) \cdot 3 \implies n = 17.33, not an integer. So 5151 is not in the sequence.

Two-parameter recovery. Given any two terms ama_m and ana_n with mnm \neq n, both a1a_1 and dd can be recovered: d=(anam)/(nm)d = (a_n - a_m)/(n - m) and a1=am(m1)da_1 = a_m - (m - 1) d.

The Sum Formula and Gauss's Trick

The sum formula. The sum of the first nn terms of an arithmetic sequence is

Sn=n2(a1+an)=n2(2a1+(n1)d)S_n = \frac{n}{2}(a_1 + a_n) = \frac{n}{2}(2 a_1 + (n - 1) d)


Gauss's trick. Write the sum forward and backward:

Sn=a1+a2+a3++anSn=an+an1+an2++a1\begin{aligned} S_n &= a_1 + a_2 + a_3 + \cdots + a_n \\ S_n &= a_n + a_{n-1} + a_{n-2} + \cdots + a_1 \end{aligned}


Adding column by column: each pair (ak+ank+1)(a_k + a_{n - k + 1}) has the same value, because in an arithmetic sequence the sum of equally-spaced-from-the-ends terms is constant. Specifically, ak+ank+1=a1+ana_k + a_{n - k + 1} = a_1 + a_n for every kk. Summing nn such pairs:

2Sn=n(a1+an)    Sn=n(a1+an)22 S_n = n (a_1 + a_n) \implies S_n = \frac{n (a_1 + a_n)}{2}


The Gauss schoolboy story. Legend says young Carl Friedrich Gauss was asked to sum 1+2++1001 + 2 + \cdots + 100. He pictured the trick instantly: pair up 1+100,2+99,,50+511 + 100, 2 + 99, \ldots, 50 + 51, getting fifty pairs of 101, total 50505050. Whether the story is literal or apocryphal, the technique works for any arithmetic sequence.

Average-of-endpoints interpretation. Sn=naS_n = n \cdot \overline{a} where a=(a1+an)/2\overline{a} = (a_1 + a_n)/2 is the average of the first and last terms — which is also the arithmetic mean of the entire sequence (a special property of arithmetic sequences).

Solving for $n$. Given SnS_n, a1a_1, and dd, the equation Sn=(n/2)(2a1+(n1)d)S_n = (n/2)(2 a_1 + (n - 1) d) is quadratic in nn. Solving:

dn2+(2a1d)n2Sn=0d n^2 + (2 a_1 - d) n - 2 S_n = 0


The quadratic formula gives nn. There can be two positive solutions; the smaller is usually the intended one.

Using the Solver — Five Quantities, Four Relations

The arithmetic-sequence explorer includes a solver mode that exploits the relationships between the five quantities a1,d,n,an,Sna_1, d, n, a_n, S_n.

Two solver sub-modes.

Find term ($a_n$) — uses the relation an=a1+(n1)da_n = a_1 + (n - 1) d. Fill any three of {a1,d,n,an}\{a_1, d, n, a_n\} and the solver computes the fourth.
Sum $S_n$ — uses the relation Sn=(n/2)(2a1+(n1)d)S_n = (n/2)(2 a_1 + (n - 1) d). Fill any three of {a1,d,n,Sn}\{a_1, d, n, S_n\} and the solver computes the fourth.

Solving for $a_n$. Direct substitution: an=a1+(n1)da_n = a_1 + (n - 1) d.

Solving for $a_1$. Rearrange: a1=an(n1)da_1 = a_n - (n - 1) d (term sub-mode) or a1=Sn/n(n1)d/2a_1 = S_n/n - (n - 1) d/2 (sum sub-mode).

Solving for $d$. d=(ana1)/(n1)d = (a_n - a_1)/(n - 1) (term sub-mode) or d=2(Snna1)/(n(n1))d = 2(S_n - n a_1)/(n(n - 1)) (sum sub-mode). Both undefined when n=1n = 1.

Solving for $n$. n=(ana1)/d+1n = (a_n - a_1)/d + 1 (term sub-mode, undefined when d=0d = 0). For sum sub-mode, solve the quadratic dn2+(2a1d)n2Sn=0d n^2 + (2 a_1 - d) n - 2 S_n = 0; there may be two positive solutions, and the smaller positive integer is usually the answer.

Edge cases the solver handles.

d=0d = 0: the sequence is constant; nn is undetermined for the term sub-mode (any nn gives the same value) and reduces to Sn/a1S_n / a_1 for the sum sub-mode.
n=1n = 1: dd cannot be recovered from a single term.
• Negative or fractional nn in the quadratic: rejected (no real positive solution).

Practical use. The solver is helpful for word problems: given partial information about an arithmetic sequence, recover the missing quantity. Example: "The 5th term of an arithmetic sequence is 17 and the 10th term is 32. Find the 50th term." Solve for a1a_1 and dd from the two equations, then compute a50a_{50}.

Properties and Identities

Recurrence: an=an1+da_n = a_{n-1} + d with given a1a_1. The defining recurrence of any arithmetic sequence.
Term in terms of any other term: an=am+(nm)da_n = a_m + (n - m) d. The difference of two terms equals the index gap times dd.
Symmetry of sums: ak+ank+1=a1+ana_k + a_{n - k + 1} = a_1 + a_n for any kk from 1 to nn. The pairing property behind Gauss's trick.
Arithmetic mean is the middle term: the average of nn consecutive terms of an arithmetic sequence equals the middle term (if nn is odd) or the average of the two middle terms (if nn is even). Always equals (a1+an)/2(a_1 + a_n)/2.
Sum identity: Sn=naS_n = n \overline{a}, the count times the average.
Sum of squares: not a simple closed form unless reformulated. ak2\sum a_k^2 involves k2\sum k^2 and is degree 3 in nn.
Difference of sums: SnSn1=anS_{n} - S_{n-1} = a_n, the partial sums recover the original sequence.
Common difference from sum: Sn2Sn1+Sn2=dS_n - 2 S_{n-1} + S_{n-2} = d (the second difference of partial sums is the common difference).

Common Applications

Linear pricing and depreciation. A car loses a fixed amount per year — its value follows an arithmetic sequence. Pricing schedules, simple interest, and linear cost models all use arithmetic sequences.
Counting in lattices. Lattice points along a line with rational slope form an arithmetic sequence in one of the coordinates.
Physics: uniform motion and constant-acceleration sums. Position under constant velocity follows an arithmetic sequence at equal time intervals. Velocity under constant acceleration does the same.
Calendars and timing. Every 4th year is a leap year (modulo century rules). Recurring schedules form arithmetic progressions.
Tournament round counts. Round-robin and elimination tournaments often have round counts following arithmetic patterns.
Stack and pile counts. Arrangements of objects with constant-difference layer counts (rare in nature, common in puzzles).
Simple interest. Account balance grows by PrP r each year, an arithmetic sequence with a1=Pa_1 = P and d=Prd = P r. (Compound interest is geometric.)
Solving word problems. Many classical algebra problems reduce to arithmetic sequences: "Anna's salary increases by \3,000 each year. After 10 years she earns \70,000. What was her starting salary?" — find a1a_1 given a11=70000a_{11} = 70000 and d=3000d = 3000.

Common Mistakes

Off-by-one in the $n$-th term formula. an=a1+(n1)da_n = a_1 + (n - 1) d, not a1+nda_1 + n d. The 1st term is a1a_1 (zero dd's added), the 2nd term is a1+da_1 + d (one dd added). Many wrong answers come from forgetting the 1-1.

Wrong sum formula. Sn=n(a1+an)/2S_n = n(a_1 + a_n)/2, or equivalently Sn=n(2a1+(n1)d)/2S_n = n(2 a_1 + (n - 1) d)/2. Common errors: using na1n a_1 (missing the ana_n contribution), or (a1+an)/2(a_1 + a_n)/2 (missing the multiplication by nn).

Negative common difference confusion. When d<0d < 0, the sequence decreases. All formulas still work; just be careful with signs. The sum is still n(a1+an)/2n(a_1 + a_n)/2, but an<a1a_n < a_1 now.

Confusing arithmetic and geometric. Arithmetic adds dd; geometric multiplies by rr. "Doubling each step" is geometric (r=2r = 2), not arithmetic.

Index conventions. Some sources start at a0a_0 instead of a1a_1, giving an=a0+nda_n = a_0 + n d. This explorer uses a1a_1 as the first term.

Trying to use the formula for non-integer $n$. an=a1+(n1)da_n = a_1 + (n - 1) d is mathematically defined for any real nn, but only integer nn corresponds to actual sequence positions.

Forgetting the second positive root in sum-for-$n$ quadratic. The quadratic dn2+(2a1d)n2Sn=0d n^2 + (2 a_1 - d) n - 2 S_n = 0 can have two positive solutions. The smaller (usually integer) one is the intended answer; the other might be an extraneous positive root or a valid second possibility for specific SnS_n values.

Treating $d = 0$ as a special exception incorrectly. When d=0d = 0, the sequence is constant, an=a1a_n = a_1 for all nn, and Sn=na1S_n = n a_1. Many formulas still work; just verify before applying.

Related Sequences and Concepts

Geometric Sequence — multiplies by a constant ratio: an=a1rn1a_n = a_1 r^{n-1}. Arithmetic's exponential counterpart.

Harmonic Sequence — reciprocals of an arithmetic sequence: 1,1/2,1/3,1/4,1, 1/2, 1/3, 1/4, \ldots. Not arithmetic itself but built from one.

Arithmetic Series — the sum of an arithmetic sequence. Sn=n(a1+an)/2S_n = n(a_1 + a_n)/2.

Triangular Numbers — the sums of the arithmetic sequence 1,2,3,1, 2, 3, \ldots. Tn=n(n+1)/2T_n = n(n+1)/2 is the special case of the arithmetic-series formula with a1=1a_1 = 1, d=1d = 1.

Square Numbers — the sums of the arithmetic sequence 1,3,5,7,1, 3, 5, 7, \ldots. Sn=n2=S_n = n^2 = sum of first nn odd numbers.

Pentagonal Numbers — sums of the arithmetic sequence 1,4,7,10,1, 4, 7, 10, \ldots (d=3d = 3).

Polygonal Numbers — in general, sums of arithmetic sequences with d=r2d = r - 2 for the rr-gonal family.

Linear Functionf(n)=a1+(n1)df(n) = a_1 + (n - 1) d is a linear function in nn. Arithmetic sequences are discrete linear functions.

Arithmetic Mean — the average. For an arithmetic sequence, the mean of any consecutive run equals the middle term.

Common Difference — the parameter dd. Defines the sequence's slope.

Arithmetic Progression — another name for arithmetic sequence. Used interchangeably.

Linear Recurrence — the general class. Arithmetic sequences satisfy the first-order linear recurrence an=an1+da_n = a_{n-1} + d.

Gauss Summation — the classical identity 1+2++n=n(n+1)/21 + 2 + \cdots + n = n(n+1)/2, a special case of the arithmetic-series formula.

Simple Interest — financial application; account balance grows arithmetically with annual interest.