MathsAlgebra

Arithmetic Sequence
calculator.

A list that adds the same step each time has a formula for any term or total.

How it's worked out

An arithmetic sequence has the same gap between any two neighbors, called the common difference, d. To reach term n from the first term, you take n − 1 steps, since the first term needs none.

an\displaystyle a_n=a1+(n−1)d\displaystyle {}= a_1 + (n - 1)d

Here a1a_1 is the first term and ana_n is the term in position n. The total of the first n terms, SnS_n, has a short formula as well. It works because first plus last equals second plus second to last, and so on down the list.

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

For 1 to 100 that makes 50 pairs of 101, so the total is 5,050. With an odd count the formula still holds, since half a pair is the middle term.

Rearrange the first formula to get whichever value you lack. Finding n only makes sense when the result is a positive whole number, and the solver says so when it is not.

a1\displaystyle a_1=an−(n−1)d\displaystyle {}= a_n - (n - 1)d
d\displaystyle d=an−a1n−1\displaystyle {}= \frac{a_n - a_1}{n - 1}
n\displaystyle n=an−a1d+1\displaystyle {}= \frac{a_n - a_1}{d} + 1

Reaching a target sets the total equal to your goal, which gives a quadratic in n. The tool takes the first root above 1 and rounds up, because you cannot add part of a term.

d2n2+(a1−d2)n\displaystyle \frac{d}{2}n^2 + \left(a_1 - \frac{d}{2}\right)n=T\displaystyle {}= T

Worked examples

Nina counts the seats in a theater

The front row has 20 seats, and each row behind it has 2 more. There are 25 rows. The back row has 68 seats, since it sits 24 steps from the front.

First plus last is 88, and there are 12.5 pairs, so the hall holds 1,100 people. The rule for any row is aₙ = 2n + 18.

Open this example in the tool

Omar works out when his savings reach a goal

Omar saves $50 in the first month and $10 more each month after that. He wants $2,500. The sum formula gives 5n2+45n=25005n^2 + 45n = 2500, and the root is not a whole number.

So he rounds up to 19 months. After 18 months he has $2,430, which falls short, and after 19 he has $2,660. His last deposit is $230. This ignores interest, so it is a floor for a real account.

Open this example in the tool

Lee checks whether a number belongs to a list

Lee has the list 5, 8, 11 and wants to know where 50 falls. The gap from 5 to 50 is 45, which is 15 steps of 3, so 50 is term 16. The 16 terms up to there add to 440.

Try 51 and the steps no longer come out whole. 51 is not a term of this sequence: n would be 16.33333333, which is not a positive whole number, so it never appears. Dividing the gap by the step is a fast way to test any number.

Open this example in the tool

Reading your result

The rule is a straight line. The form an=dn+(a1−d)a_n = dn + (a_1 - d) has slope d. For 3, 7, 11 that reads aₙ = 4n − 1. On the graph, a steeper line means a bigger step, and a falling line means a negative one.

Falling lists have a turning total. With a negative step, the terms eventually go below 0 and the total starts to drop. Start at 10 with a step of −4 and a total of 20 is out of reach. The running total turns around at n = 3 (S = 18) and never becomes at least 20. The tool reports that turn instead of giving you a false count.

Straight-line depreciation is one of these lists. A machine worth $12,000 that loses $1,500 a year is worth $4,500 at the start of year 6.

The written list stops at 1,000 terms so the page stays fast. The formulas handle positions up to a billion. Values are rounded to 12 significant figures to clear noise like 0.30000000000000004, so very large terms show as rounded figures.

Common lists at 10 terms
ListStepTerm 10Sum
1, 2, 311055
1, 3, 5219100
2, 4, 6220110
5, 10, 15550275
100, 93, 86−737685
0.5, 0.75, 10.252.7516.25

Common mistakes

  • Using n steps instead of n − 1. In 3, 7, 11, term 10 is 39. Multiplying 4 by 10 lands on 43, which is term 11.
  • Counting gaps as terms. From 5 to 50 by 3 there are 15 gaps but 16 terms. Leaving off the + 1 is an easy slip.
  • Putting the last term in for n. In 5 + 8 + ... + 32, the last term is 32, but the count is 10. OpenStax uses 10 and gets 185.
  • Rounding a term count down. If the root is 18.3, then 18 terms fall short of the target. The count always goes up to the next whole number.

Questions people ask

Find term 50, then use first plus last, times half the count. For 10, 6, 2, −2, term 50 is −186, and the total is −4,400. A negative step changes nothing about the method.

Sources