Questions tagged [recurrence-relations]

Questions regarding functions defined recursively, such as the Fibonacci sequence.

A recurrence relation is an equation that recursively defines a sequence or multidimensional array of values: once one or more initial terms are given, each further term of the sequence or array is defined as a function of the preceding terms.

Simple examples include the geometric sequence $a_{n}=r a_{n-1}$, which has the closed-form $a_{n}=r^n a_0$, the aforementioned Fibonacci sequence with initial conditions $f_0=0,f_1=1$ and recurrence $f_{n+2}=f_{n+1}+f_n$, and series: the sequence $S_n =\sum_{k=1}^{n} a_k$ can be written as $S_n= S_{n-1}+a_n$.

The term order is often used to describe the number of prior terms used to calculate the next one; for instance, the Fibonacci sequence is of order 2.

See the Wikipedia page for more information.

8985 questions
9
votes
5 answers

Closed form solution of recurrence relation

I am asked to solve following problem Find a closed-form solution to the following recurrence: $\begin{align} x_0 &= 4,\\ x_1 &= 23,\\ x_n &= 11x_{n−1} − 30x_{n−2} \mbox{ for } n \geq 2. \end{align}$ When I have searched what…
9
votes
0 answers

Recursion equation $a_{n+2}= a_{n+1} + \frac{1}{a_n}$

Today I was asked by some of my students, whether the following recursion equation admits a closed form solution $$ a_{n+2} = a_{n+1} + \frac{1}{a_n}, $$ where $a_1, a_2 >0$. Their motivation is the following, they know the Fibonacci sequence and…
8
votes
1 answer

Find the general term of the sequence defined by $x_0 = 3, x_1 = 4$ and $x_{n+1} = x_{n-1}^2 - nx_n$

Question: Find the general term of the sequence defined by $x_0 = 3, x_1 = 4$ and $x_{n+1} = x_{n-1}^2 - nx_n$. Attempt: If I'm not mistaken this does not match any linear homogeneous pattern, nor does it match linear nonhomogenous recurrence…
8
votes
4 answers

How to *really* solve a non-homogeneous recurrence

First let me state that I am not asking about the usual procedure for finding a trial solution to a non-homogeneous recurrence. I have been doing this for many years and can solve all the basic types, but I am looking for some deeper insight. Here…
David
  • 82,662
8
votes
1 answer

Recurrence $u_{n+1}u_{n-1}-u_n^2=Ar^{n-1}$

I was going through some old puzzles and encountered one where there was a non-linear recurrence of form $$u_{n+1}u_{n-1}-u_n^2=Ar^{n-1}$$ with $u_0$ and $u_1$ given. I know I can use a test form $u_n=p\alpha^n+q\beta^n$ with $\alpha \beta = r$, for…
Mark Bennet
  • 100,194
8
votes
1 answer

What are linear homogeneous and non-homoegenous recurrence relations?

According to my book, a linear homogeneous recurrence of order $k$ is expressed this way: $$A_0a_n+A_1a_{n-1}+A_2a_{n-2}+\cdots+A_ka_{n-k}=0$$ While a linear non-homogeneous recurrence of order $k$ is this…
Saturn
  • 7,191
8
votes
4 answers

How to find the closed form formula for this recurrence relation

$ x_{0} = 5 $ $ x_{n} = 2x_{n-1} + 9(5^{n-1})$ I have computed: $x_{0} = 5, x_{1} = 19, x_{2} = 83, x_{3} = 391, x_{4} = 1907$, but cannot see any pattern for the general $n^{th}$ term.
8
votes
1 answer

generating matrix for a recurrence relation

for the recurrence f(n)=a*f(n-1)+b*f(n-2)+c*f(n-3)+d*f(n-4) , how can one get the generating matrix so that it can be solved by matrix exponentiation? For f(n)=a*f(n-1)+b*f(n-2)+c*f(n-3) the corresponding generating matrix is: | a b c | | f(n)…
pranay
  • 405
7
votes
3 answers

The number of length-n ternary sequences with even ones and even zeroes

Just starting to appreciate recurrence relations Let $T_n = $ number of length-n ternary sequences with an even number of ones and an even number of zeroes. $T_0 = 1$, because $0$ is an even number, and there are zero $1$s and zero $0$s. $T_1 = 1$,…
compguy24
  • 421
7
votes
2 answers

Right way to solve this reccurence relation?

I am not that good in mathematics , I have solved many simple relations. But I am not be able to solve the following. This is not a homework. I found it during analysis of a program. $T(n)=2T(n-1)+\log(2T(n-1))$
7
votes
3 answers

Help me understanding logic behind limits of recurence relations

I was trying to understand how limits of recurence relations are working. I have one. $$a_0 = \dfrac32 ,\ a_{n+1} = \frac{3}{4-a_n} $$ So, from what i know, if this recurence relation has a limit, it have to be bounded and monotonous. To check if…
7
votes
4 answers

How can I solve this linear recurrence relation?

My problem is: this given recurrence relation: $$y_{n+1}-\frac{n+2}{2}\cdot y_n = (n+1)(n+2)\cdot 3^n$$ for all: $n\ge 0$ and $y_0 = 0$ I need to find the explicit form and the general solution. My Approach was: I can see, this is a linear…
7
votes
1 answer

Closed form of $a_{n+1}=\sqrt{a_n+1}, a_1=1$

I would like to find the general term, closed form or analytic solution for the recurrence relation $a_{n+1}=\sqrt{a_n+1},a_1=1$. I looked around the internet but could not find much about this problem. If anyone knows any paper or research about…
Kaira
  • 1,451
7
votes
2 answers

Recurrence Relation

How do I solve: $k(k+1)a_{k}=2(\lambda k-1)a_{k-1}+(a-\lambda^2)a_{k-2}$ where $\lambda$ and $a$ are constants, and similar other recurrence relations?
Monty123
  • 279
7
votes
1 answer

Solve a recurrence relation $D_{n} = nD_{n-1} + (n-1)!$

As the title states, I need a solution of this recurrence but I'll provide my own solution and ask if there is an easier, simpler solution using some deeper knowledge about recurrence relations. $$D_{n} = nD_{n-1} + (n-1)!$$ $$D_{n} = n[(n-1)D_{n-2}…
user48724
1
2
3
96 97