Set First term a₁ and Common difference d in the Parameters row and click Apply; every tab recomputes with the new rule. Learn more about the parameters
Pick a mode with the five tabs across the top of the card: List first N, List a – b, Test a number, Lookup by index or Solver; the ? beside each tab describes it. Learn more about the modes
In List first N, type how many terms to show in Show first and click Update; the cards give the count, the largest term and the sum, and the tiles list every term. Learn more about listing terms
In List a – b, type the From index and the To index and click List range; a red box explains a bad range. Learn more about ranges
In Test a number, type a number in Test number and click Check; a green box names the index, a red box says it is not a term. Learn more about the test
In Solver, pick Find term (aₙ) or Sum Sₙ, fill three boxes, leave the one marked solve empty and click Solve; move the radio to change the unknown. Learn more about the solver
The panel on the right explains the current mode and walks through the arithmetic with your own numbers; it changes with every tab and click. Learn more about the panel
DemoTwo new parameter pairs, then the opening pair again
Step 0 of 3
The card opens with the Sequence drop-down set to Arithmetic sequence; the other entry switches the card to the Geometric sequence, which has its own page, Geometric sequence calculator. Under it the Parameters row holds the two numbers that fix the sequence, First term a₁ and Common difference d, opening with a1=2 and d=3. Type new values and click Apply or press Enter; every tab recomputes at once with the rule an=a1+(n−1)⋅d. With a1=5 and d=2 the first eight terms run 5,7,…,19 with the sum 96; with a1=10 and d=−3 they fall from 10 to −11 and the sum is −4.
Both boxes take any decimal, negative values included; a blank or non-numeric box is refused with "Enter a number in every parameter box." and the tabs keep their last values. Which two numbers define the sequence is explained in what is an arithmetic sequence.
Listing the First N Terms
DemoThree counts in List first N
Step 0 of 3
The explorer opens on the List first N tab, one of five tabs across the top of the card; the small ? beside each tab shows what the mode does. Type how many terms you want in the Show first box and click Update or press Enter. Three cards answer at once: Showing gives the count, Largest the last term with its index, and Sum the total of the listed terms, SN=2N(a1+aN). Under the cards every term is laid out as a tile with its index above its value.
With the opening parameters the box accepts 1 to 500: 8 gives a8=23 with the sum 100, 10 gives a10=29 with the sum 155, and 600 is capped at 500 terms, ending at a500=1,499 with the sum 375,250; a single term gives a1=2. Large values are printed with thousands separators. A count of 0, a decimal or an empty box is refused with "Enter a positive integer." There is no Reset button: type a new count and click Update again. The panel on the right, List first N, states the rule the tiles come from, and its walkthrough repeats the last term and the sum with your own N. The rule is explained in the n-th term formula and the sum in the sum formula and gauss's trick.
Listing a Range of Indexes
DemoThe range tab, a new range, two bad ranges
Step 0 of 4
Click the List a – b tab to list the terms between two positions instead of starting from 1. Type the From index and the To index and click List range or press Enter. The cards give the Countb−a+1, the Smallest term aa and the Largest term ab, and the tiles below list every term in between with its index. The tab opens with 5 to 12, 8 terms from a5=14 to a12=35; indexes 10 to 20 give 11 terms from 29 to 59.
Both boxes must hold positive integers, the first no larger than the second, and the range may hold at most 500 terms; otherwise a red box explains: "Enter two positive integer indexes", "From-index must be less than or equal to to-index", or "Range too wide — cap is 500 terms". The panel on the right, List a – b, explains the mode, and its walkthrough names the smallest and largest term of your range. The rule each tile uses is explained in the n-th term formula.
Testing a Number
DemoThe test tab, a non-member, a member, a decimal
Step 0 of 4
Click the Test a number tab to ask whether a given number is a term of the sequence. Type it in the Test number box and click Check or press Enter. A green box with a tick answers yes and names the index, as for the opening value 47, which is a16; a red box with a cross answers no, as for 49, and the walkthrough on the right then shows the two nearest terms, a16=47 and a17=50. A large value is handled the same way: 2,999 is a1000.
The box takes any number, decimals and negatives included, since the parameters may be decimals too; an empty box is refused with "Enter a number". The test is exact: the explorer computes k=(m−a1)/d and accepts m only when k is a whole number that is not negative; the index is then k+1. The panel on the right, Test a number, states this rule, and its walkthrough carries out the arithmetic for your number. The formula behind it is in the n-th term formula.
Looking Up a Term by Index
DemoThe lookup tab, two indexes, n = 0
Step 0 of 4
Click the Lookup by index tab to compute one term directly. Type the position in the Index n box and click Get term or press Enter. Two cards answer: Index repeats n and Value gives an with its index as a subscript. The tab opens with n=20, which gives a20=59; n=100 gives 299 and n=1000 gives 2,999. The box takes positive integers only; 0 is refused with "Enter a positive integer index".
The panel on the right has two parts in every mode. How it works names the rule the mode uses, here an=a1+(n−1)⋅d, and links to the section of this page that explains it; Walkthrough applies the rule to the numbers you typed, so for the lookup it shows the arithmetic with your n and the current parameters filled in. Both change as soon as you switch tabs or click a button. The rule and where it comes from are in the n-th term formula.
Using the Solver Tab
DemoThe solver tab: a term, an unknown moved, a sum
Step 0 of 4
Click the Solver tab, the fifth tab, to work the formulas backwards. Two buttons choose the relation: Find term (aₙ) uses an=a1+(n−1)⋅d and Sum Sₙ uses Sn=2n(2a1+(n−1)⋅d). Each relation has four boxes; the one marked solve with a ? is the unknown and the other three must be filled. The unknown opens as an or Sn; click the solve radio beside another box to make that the unknown. Click Solve or press Enter and the answer appears under the grid, while the walkthrough on the right shows the substitution.
With a1=2, d=3 and n=20 the term is a20=59; with an=299 and the unknown moved to n the solver returns n=100; with n=10 the sum is S10=155. Switching the relation clears the boxes, and clicking Solve with a box empty gives the message "Fill all fields except the one being solved for". Solving Sn for n solves a quadratic and reports "No positive solution for n" when none fits. The solver boxes are independent of the Parameters row. Every relation is explained in using the solver — five quantities, four relations.
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 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.
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 (an) — uses the relation an=a1+(n−1)d. Fill any three of {a1,d,n,an} and the solver computes the fourth. • Sum Sn — 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 an. Direct substitution: an=a1+(n−1)d.
Solving for a1. 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.
• 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.