How to Solve Recurrence Relations
Edited by Peter, Molly, Jason, Teresa and 10 others
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 of 5: Arithmetic
- 1Consider an arithmetic sequence such as 5, 8, 11, 14, 17, 20, ....
- 2Since each term is 3 larger than the previous, it can be expressed as a recurrence as shown.
- 3Recognize that any recurrence of the form an = an-1 + d is an arithmetic sequence.
- 4Write the closed-form formula for an arithmetic sequence, possibly with unknowns as shown.
- 5Solve 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.
'via Blog this'
No comments:
Post a Comment