Download Article
Simple methods to help you conquer recurrence relations
Download Article

In trying to find a formula for some mathematical sequence, a common intermediate step is to find the nth term, not as a function of n, but in terms of earlier terms of the sequence. For example, while it'd be nice to have a closed form function for the nth term of the Fibonacci sequence, sometimes all you have is the recurrence relation, namely that each term of the Fibonacci sequence is the sum of the previous two terms. This article will present several methods for deducing a closed form formula from a recurrence.

Method 1
Method 1 of 5:

Arithmetic

Download Article
  1. How.com.vn English: Step 1 Consider an arithmetic sequence such as 5, 8, 11, 14, 17, 20, ....
    [1]
  2. How.com.vn English: Step 2 Since each term is 3 larger than the previous, it can be expressed as a recurrence as shown.
    Advertisement
  3. How.com.vn English: Step 3 Recognize that any recurrence of the form an = an-1 + d is an arithmetic sequence.
    [2]
  4. How.com.vn English: Step 4 Write the closed-form...
    Write the closed-form formula for an arithmetic sequence, possibly with unknowns as shown.[3]
  5. How.com.vn English: Step 5 Solve for any unknowns depending on how the sequence was initialized.
    In this case, since 5 was the 0th term, the formula is an = 5 + 3n. If instead, you wanted 5 to be the first term, you would get an = 2 + 3n.
  6. Advertisement
Method 2
Method 2 of 5:

Geometric

Download Article
  1. How.com.vn English: Step 1 Consider a geometric sequence such as 3, 6, 12, 24, 48, ....
  2. How.com.vn English: Step 2 Since each term is twice the previous, it can be expressed as a recurrence as shown.
  3. How.com.vn English: Step 3 Recognize that any recurrence of the form an = r * an-1 is a geometric sequence.
  4. How.com.vn English: Step 4 Write the closed-form...
    Write the closed-form formula for a geometric sequence, possibly with unknowns as shown.
  5. How.com.vn English: Step 5 Solve for any unknowns depending on how the sequence was initialized.
    In this case, since 3 was the 0th term, the formula is an = 3*2n. If instead, you wanted 3 to be the first term, you would get an = 3*2(n-1).[4]
  6. Advertisement
Method 3
Method 3 of 5:

Polynomial

Download Article
  1. How.com.vn English: Step 1 Consider the sequence 5, 0, -8, -17, -25, -30, ...
    given by the recursion an = an-1 + n2 - 6n.[5]
  2. How.com.vn English: Step 2 Any recursion of...
    Any recursion of the form shown, where p(n) is any polynomial in n, will have a polynomial closed form formula of degree one higher than the degree of p.[6]
  3. How.com.vn English: Step 3 Write the general form of a polynomial of the required degree.
    In this example, p is quadratic, so we will need a cubic to represent the sequence an.[7]
  4. How.com.vn English: Step 4 Since a general cubic has four unknown coefficients, four terms of the sequence are required to solve the resulting system.
    Any four will do, so let's use terms 0, 1, 2, and 3. Running the recurrence backwards to find the -1th term might make some calculations easier, but isn't necessary.
  5. How.com.vn English: Step 5 Either Solve the...
    Either Solve the resulting system of deg(p)+2 equations in deg(p)=2 unknowns or Fit a Lagrange polynomial to the deg(p)+2 known points.
    • If the zeroth term was one of the terms you used to solve for the coefficients, you get the constant term of the polynomial for free and can immediately reduce the system to deg(p)+1 equations in deg(p)+1 unknowns as shown.
  6. How.com.vn English: Step 6 Present the closed formula for an as a polynomial with known coefficients.
  7. Advertisement
Method 4
Method 4 of 5:

Linear

Download Article
  1. How.com.vn English: Step 1 This is the...
    This is the first method capable of solving the Fibonacci sequence in the introduction, but the method solves any recurrence where the nth term is a linear combination of the previous k terms. So let's try it on the different example shown whose first terms are 1, 4, 13, 46, 157, ....[8]
  2. How.com.vn English: Step 2 Write the characteristic polynomial of the recurrence.
    This is found by replacing each an in the recurrence by xn and dividing by x(n-k) leaving a monic polynomial of degree k and a nonzero constant term.[9]
  3. How.com.vn English: Step 3 Solve the characteristic...
    Solve the characteristic polynomial. In this case, the characteristic has degree 2 so we can use the quadratic formula to find its roots.[10]
  4. How.com.vn English: Step 4 Any expression of the form shown satisfies the recursion.
    The ci are any constants and the base of the exponents are the roots to the characteristic found above. This can be verified by induction.[11]
    • If the characteristic has a multiple root, this step is modified slightly. If r is a root of multiplicity m, use (c1rn + c2nrn + c3n2rn + ... + cmnm-1rn) instead of simply (c1rn). For example, the sequence starting 5, 0, -4, 16, 144, 640, 2240, ... satisfies the recursive relationship an = 6an-1 - 12an-2 + 8an-3. The characteristic polynomial has a triple root of 2 and the closed form formula an = 5*2n - 7*n*2n + 2*n2*2n.
  5. How.com.vn English: Step 5 Find the ci that satisfy the specified initial conditions.
    As with the polynomial example, this is done by creating a linear system of equations from the initial terms. Since this example has two unknowns, we need two terms. Any two will do, so take the 0th and 1st to avoid having to raise an irrational number to a high power.
  6. How.com.vn English: Step 6 Solve the resulting system of equations.
  7. How.com.vn English: Step 7 Plug the resulting constants into the general formula as the solution.
  8. Advertisement
Method 5
Method 5 of 5:

Generating Functions

Download Article
  1. How.com.vn English: Step 1 Consider the sequence 2, 5, 14, 41, 122 ...
    given by the recursion shown. This cannot be solved by any of the above methods, but a formula can be found by using generating functions.[12]
  2. How.com.vn English: Step 2 Write the generating function of the sequence.
    A generating function is simply a formal power series where the coefficient of xn is the nth term of the sequence.[13]
  3. How.com.vn English: Step 3 Manipulate the generating function as shown.
    The objective in this step is to find an equation that will allow us to solve for the generating function A(x). Extract the initial term. Apply the recurrence relation to the remaining terms. Split the sum. Extract constant terms. Use the definition of A(x). Use the formula for the sum of a geometric series.
  4. How.com.vn English: Step 4 Find the generating function A(x).
    [14]
  5. How.com.vn English: Step 5 Find the coefficient of the xn in A(x).
    The methods for doing this will vary depending on exactly what A(x) looks like, but the method of partial fractions, combined with knowing the generating function of a geometric sequence, works here as shown.
  6. How.com.vn English: Step 6 Write the formula for an by identifying the coefficient of xn in A(x).
  7. Advertisement


Community Q&A

Search
Add New Question
  • Question
    If a sequence is defined recursively by f(0)=2 and f(n+1)=-2f(n)+3 for n0, then f(2) is equal to what?
    How.com.vn English: Community Answer
    Community Answer
    For n = 0 f(0+1) = - 2 f(0) + 3 f(1) = - 2(2) + 3 So f(1) = - 4 + 3 = -1For n = 1 f(1+1) = -2 f(1) + 3 f(2) = -2 (-1) + 3 So f(2) = 2 + 3 = 5
  • Question
    Is there a sequence that has second differences which produces a geometric sequence? If there is, what is name of the sequence and how can I derive the formula for the nth term in that sequence?
    How.com.vn English: Community Answer
    Community Answer
    If you start with a geometric sequence, then all its differences will be geometric sequences (constant multiple of the original). The second differences of a linear sequence vanish, so you can add a linear sequence to any other sequence without changing its second differences. I don't believe there's a special name for the sum of a geometric and a linear sequence, but the formula is (a * b^n) + (c * n) + d for some constants a, b, c, and d, and they have your desired property.
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
      Advertisement

      Tips

      • Induction is also a popular technique. It's often easy to prove by induction that a specified formula satisfies a specified recursion, but the problem is this requires guessing the formula in advance.
      • Some of these methods are computationally intensive with many opportunities to make a stupid mistake. It's good to check the formula against a few known terms.
      • "In mathematics, the Fibonacci numbers or Fibonacci sequence are the numbers in the following integer sequence: 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, ...
        • The Fibonacci spiral: an approximation of the golden spiral created by drawing circular arcs connecting the opposite corners of squares in the Fibonacci tiling; this one uses squares of sizes 1, 1, 2, 3, 5, 8, 13, 21, and 34.
        • By definition, the first two numbers in the Fibonacci sequence are either 1 and 1, or 0 and 1, depending on the chosen starting point of the sequence, and each subsequent number is the sum of the previous two.
        • In mathematical terms, the sequence Fn of Fibonacci numbers is defined by the recurrence relation
        • Fn= Fn-1 + Fn-2 with seed values F1 = 1, F2 = 1 or F0 = 0, F1 = 1.
        • The limit as n increases of the ratio Fn/Fn-1 is known as the Golden Ratio or Golden Mean or Phi (Φ), and so is the limit as n increases of the ratio Fn-1/Fn."1
      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Thanks for submitting a tip for review!
      Advertisement

      About This Article

      How.com.vn English: Joseph Meyer
      Reviewed by:
      Math Teacher
      This article was reviewed by Joseph Meyer. Joseph Meyer is a High School Math Teacher based in Pittsburgh, Pennsylvania. He is an educator at City Charter High School, where he has been teaching for over 7 years. Joseph is also the founder of Sandbox Math, an online learning community dedicated to helping students succeed in Algebra. His site is set apart by its focus on fostering genuine comprehension through step-by-step understanding (instead of just getting the correct final answer), enabling learners to identify and overcome misunderstandings and confidently take on any test they face. He received his MA in Physics from Case Western Reserve University and his BA in Physics from Baldwin Wallace University. This article has been viewed 417,984 times.
      87 votes - 69%
      Co-authors: 21
      Updated: December 16, 2022
      Views: 417,984
      Thanks to all authors for creating a page that has been read 417,984 times.

      Reader Success Stories

      • How.com.vn English: Anonymous

        Anonymous

        Apr 14, 2017

        "I didn't know how to set up the polynomial and solve it and use the solution to get the closed form. I got to..." more
      Share your story

      Did this article help you?

      ⚠️ Disclaimer:

      Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
      Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.

      Notices:
      • - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
      • - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
      • - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
      • - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.

      Advertisement