How to Find the General Formula for the nth Term of an Arithmetic Sequence Using Any Two Terms
At some point, your precalculus teacher will ask you to find the general formula for the nth term of an arithmetic sequence without knowing the first term or the common difference. In this case, you will be given two terms (not necessarily consecutive), and you will use this information to find a_{1} and d. The steps are: Find the common difference d, write the specific formula for the given sequence, and then find the term you’re looking for.
For instance, to find the general formula of an arithmetic sequence where a_{4} = –23 and a_{22} = 40, follow these steps:

Find the common difference.
You have to be creative in finding the common difference for these types of problems.

a.Use the formula a_{n} = a_{1} + (n – 1)d to set up two equations that use the given information.
For the first equation, you know that when n = 4, a_{n} = –23:
–23 = a_{1} + (4 – 1)d
–23 = a_{1} + 3d
For the second equation, you know that when n = 22, a_{n} = 40:
40 = a_{1} + (22 – 1)d
40 = a_{1} + 21d

b.Set up a system of equations and solve for d.
The system looks like this:
You can use elimination or substitution to solve the system. Elimination works nicely because you can multiply either equation by –1 and add the two together to get 63 = 18d. Therefore, d = 3.5.


Write the formula for the specific sequence.
This step involves a little work.

a.Plug d into one of the equations to solve for a_{1}.
You can plug 3.5 back into either equation:
–23 = a_{1} + 3(3.5), or a_{1} = –33.5.

b.Use a_{1} and d to find the general formula for a_{n}.
This step becomes a simple threestep simplification:
a_{n} = –33.5 + (n – 1)3.5
a_{n} = –33.5 + 3.5n – 3.5
a_{n} = 3.5n – 37


Find the term you were looking for.
In this example, you weren’t asked to find any specific term (always read the directions!), but if you were, you could plug that number in for n and then find the term you were looking for.