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 d.
• The n-th term: an=a1+(n−1)d. • The sum of the first n terms: Sn=2n(a1+an)=2n(2a1+(n−1)d).
Parametric nature. Unlike triangular or square numbers (where the sequence is fixed), an arithmetic sequence depends on two parameters: a1 and d. 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 a1, the next term is a1+d, then a1+2d, then a1+3d. After n−1 additions, the n-th term is
an=a1+(n−1)d
Inverting the formula. Given an, a1, and d, solve for n:
n=dan−a1+1
This works only when d=0; if d=0, every term equals a1 and n is undetermined.
Examples.
• Sequence 5,8,11,14,…: a1=5, d=3. The 20th term is a20=5+19⋅3=62. • Sequence 100,97,94,…: a1=100, d=−3. The 10th term is a10=100+9⋅(−3)=73. • Membership test: is 47 in the sequence 2,5,8,11,…? Solve 47=2+(n−1)⋅3⟹n=16. Since n is a positive integer, yes — 47=a16. • Non-membership: is 50 in the sequence 2,5,8,11,…? Solve 50=2+(n−1)⋅3⟹n=17. Wait, 17 is an integer — so 50 IS in the sequence. Let me try 51: 51=2+(n−1)⋅3⟹n=17.33, not an integer. So 51 is not in the sequence.
Two-parameter recovery. Given any two terms am and an with m=n, both a1 and d can be recovered: d=(an−am)/(n−m) and a1=am−(m−1)d.
The Sum Formula and Gauss's Trick
The sum formula. The sum of the first n terms of an arithmetic sequence is
Sn=2n(a1+an)=2n(2a1+(n−1)d)
Gauss's trick. Write the sum forward and backward:
SnSn=a1+a2+a3+⋯+an=an+an−1+an−2+⋯+a1
Adding column by column: each pair (ak+an−k+1) has the same value, because in an arithmetic sequence the sum of equally-spaced-from-the-ends terms is constant. Specifically, ak+an−k+1=a1+an for every k. Summing n such pairs:
2Sn=n(a1+an)⟹Sn=2n(a1+an)
The Gauss schoolboy story. Legend says young Carl Friedrich Gauss was asked to sum 1+2+⋯+100. He pictured the trick instantly: pair up 1+100,2+99,…,50+51, getting fifty pairs of 101, total 5050. Whether the story is literal or apocryphal, the technique works for any arithmetic sequence.
Average-of-endpoints interpretation.Sn=n⋅a where a=(a1+an)/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 Sn, a1, and d, the equation Sn=(n/2)(2a1+(n−1)d) is quadratic in n. Solving:
dn2+(2a1−d)n−2Sn=0
The quadratic formula gives n. 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,Sn.
Two solver sub-modes.
• Find term ($a_n$) — uses the relation an=a1+(n−1)d. Fill any three of {a1,d,n,an} and the solver computes the fourth. • Sum $S_n$ — uses the relation Sn=(n/2)(2a1+(n−1)d). Fill any three of {a1,d,n,Sn} and the solver computes the fourth.
Solving for $a_n$. Direct substitution: an=a1+(n−1)d.
Solving for $a_1$. Rearrange: a1=an−(n−1)d (term sub-mode) or a1=Sn/n−(n−1)d/2 (sum sub-mode).
Solving for $d$.d=(an−a1)/(n−1) (term sub-mode) or d=2(Sn−na1)/(n(n−1)) (sum sub-mode). Both undefined when n=1.
Solving for $n$.n=(an−a1)/d+1 (term sub-mode, undefined when d=0). For sum sub-mode, solve the quadratic dn2+(2a1−d)n−2Sn=0; there may be two positive solutions, and the smaller positive integer is usually the answer.
Edge cases the solver handles.
• d=0: the sequence is constant; n is undetermined for the term sub-mode (any n gives the same value) and reduces to Sn/a1 for the sum sub-mode. • n=1: d cannot be recovered from a single term. • Negative or fractional n 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 a1 and d from the two equations, then compute a50.
Properties and Identities
• Recurrence: an=an−1+d with given a1. The defining recurrence of any arithmetic sequence. • Term in terms of any other term: an=am+(n−m)d. The difference of two terms equals the index gap times d. • Symmetry of sums: ak+an−k+1=a1+an for any k from 1 to n. The pairing property behind Gauss's trick. • Arithmetic mean is the middle term: the average of n consecutive terms of an arithmetic sequence equals the middle term (if n is odd) or the average of the two middle terms (if n is even). Always equals (a1+an)/2. • Sum identity: Sn=na, the count times the average. • Sum of squares: not a simple closed form unless reformulated. ∑ak2 involves ∑k2 and is degree 3 in n. • Difference of sums: Sn−Sn−1=an, the partial sums recover the original sequence. • Common difference from sum: Sn−2Sn−1+Sn−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 Pr each year, an arithmetic sequence with a1=P and d=Pr. (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 a1 given a11=70000 and d=3000.
Common Mistakes
• Off-by-one in the $n$-th term formula.an=a1+(n−1)d, nota1+nd. The 1st term is a1 (zero d's added), the 2nd term is a1+d (one d added). Many wrong answers come from forgetting the −1.
• Wrong sum formula.Sn=n(a1+an)/2, or equivalently Sn=n(2a1+(n−1)d)/2. Common errors: using na1 (missing the an contribution), or (a1+an)/2 (missing the multiplication by n).
• Negative common difference confusion. When d<0, the sequence decreases. All formulas still work; just be careful with signs. The sum is still n(a1+an)/2, but an<a1 now.
• Confusing arithmetic and geometric. Arithmetic adds d; geometric multiplies by r. "Doubling each step" is geometric (r=2), not arithmetic.
• Index conventions. Some sources start at a0 instead of a1, giving an=a0+nd. This explorer uses a1 as the first term.
• Trying to use the formula for non-integer $n$.an=a1+(n−1)d is mathematically defined for any real n, but only integer n corresponds to actual sequence positions.
• Forgetting the second positive root in sum-for-$n$ quadratic. The quadratic dn2+(2a1−d)n−2Sn=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 Sn values.
• Treating $d = 0$ as a special exception incorrectly. When d=0, the sequence is constant, an=a1 for all n, and Sn=na1. Many formulas still work; just verify before applying.
Related Sequences and Concepts
Geometric Sequence — multiplies by a constant ratio: an=a1rn−1. Arithmetic's exponential counterpart.
Harmonic Sequence — reciprocals of an arithmetic sequence: 1,1/2,1/3,1/4,…. Not arithmetic itself but built from one.
Arithmetic Series — the sum of an arithmetic sequence. Sn=n(a1+an)/2.
Triangular Numbers — the sums of the arithmetic sequence 1,2,3,…. Tn=n(n+1)/2 is the special case of the arithmetic-series formula with a1=1, d=1.
Square Numbers — the sums of the arithmetic sequence 1,3,5,7,…. Sn=n2= sum of first n odd numbers.
Pentagonal Numbers — sums of the arithmetic sequence 1,4,7,10,… (d=3).
Polygonal Numbers — in general, sums of arithmetic sequences with d=r−2 for the r-gonal family.
Linear Function — f(n)=a1+(n−1)d is a linear function in n. 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 d. 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=an−1+d.
Gauss Summation — the classical identity 1+2+⋯+n=n(n+1)/2, a special case of the arithmetic-series formula.