# How to Find the General Formula for the *n*th Term of an Arithmetic Sequence Using Any Two Terms

At some point, your pre-calculus teacher will ask you to find the general formula for the *n*th 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*= –23:_{n}–23 =

*a*_{1}+ (4 – 1)*d*–23 =

*a*_{1}+ 3*d*For the second equation, you know that when

*n*= 22,*a*= 40:_{n}40 =

*a*_{1}+ (22 – 1)*d*40 =

*a*_{1}+ 21*d*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 = 18

*d.*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 three-step simplification:

*a*_{n}*n*– 1)3.5*a*= –33.5 + 3.5_{n}*n*– 3.5*a*_{n}*n*– 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.