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
43
votes
4 answers

Solving recurrence relation in 2 variables

We already know how to solve a homogeneous recurrence relation in one variable using characteristic equation. Does a similar technique exists for solving a homogeneous recurrence relation in 2 variables. More formally, How can we solve a homogeneous…
gibraltar
  • 689
28
votes
5 answers

How to get the characteristic equation?

In my book, this succession defined by recurrence is presented: $$U_n=3U_{n-1}-U_{n-3}$$ And it says that the characteristic equation of such is: $$x^3=3x^2-1$$ Honestly, I don't understand how. How do I get the characteristic equation given a…
Saturn
  • 7,191
24
votes
3 answers

Why is solving non-linear recurrence relations "hopeless"?

I came across a non-linear recurrence relation I want to solve, and most of the places I look for help will say things like "it's hopeless to solve non-linear recurrence relations in general." Is there a rigorous reason or an illustrative example as…
JeremyKun
  • 3,580
23
votes
2 answers

Linear homogeneous recurrence relations with repeated roots; motivation behind looking for solutions of the form $nx^n$?

If we have a linear homogeneous recurrence relation, such as $t_{k+1}=4t_k-4t_{k-1}$, and attempt to find solutions of the form $t_n=x^n$ for some $x \in \mathbb{R} \setminus \{0\}$, we obtain the characteristic polynomial $(x-2)^2=0$. The…
21
votes
3 answers

Am I properly simplifying this geometric progression?

I'm studying recurrence relations and am given: $T(n) = 2 \cdot T(n-1) - 1$ with an initial condition that $T(1) = 3$. I worked through the first few recurrences: $T(n-1) = 2^2 \cdot T(n-2) - 2 - 1$ $T(n-2) = 2^3 \cdot T(n-3) - 2^2 - 2 - 1$ and so…
17
votes
4 answers

How does one solve this recurrence relation?

We have the following recursive system: $$ \begin{cases} & a_{n+1}=-2a_n -4b_n\\ & b_{n+1}=4a_n +6b_n\\ & a_0=1, b_0=0 \end{cases} $$ and the 2005 mid-exam wants me to calculate answer of $ \frac{a_{20}}{a_{20}+b_{20}} $. Do you have any idea how…
15
votes
1 answer

How to solve non-linear recurrence relation in general?

For linear recurrence, we can use generating function. So is there a general technique to solve non-linear recurrence or it depends on a specific sequence? For example, $$a_{n+1} = \dfrac{a_n(a_n - 3)}{4}$$ for $a_0 = a$
roxrook
  • 12,081
15
votes
1 answer

Solving a Nonlinear Recursion

In the course of some research computations I have been doing, I run up against a recursion $$ a_{n+3} = a_{n+2}a_{n+1} - a_n $$ I've tried to find out if it's possible to solve recursions of this form, but can't find much since it's nonlinear.…
ec92
  • 2,009
14
votes
1 answer

Why does the process defined with $a_{n+2} = \frac{1}{a_n} + \frac{1}{a_{n+1}}$ converge to $\pm\sqrt{2}$ for most choices of the starting values?

I was tinkering around with Fibonacci-style recurrences and, on a whim, tried this one: $$a_0 = 1 \qquad a_1 = 1 \qquad a_{n+2} = \frac{1}{a_n} + \frac{1}{a_{n+1}} \text.$$ I had no idea what this would look like, so I whipped up a short Python…
14
votes
6 answers

Solve the recurrence relation:$ T(n) = \sqrt{n} T \left(\sqrt n \right) + n$

$$T(n) = \sqrt{n} T \left(\sqrt n \right) + n$$ Master method does not apply here. Recursion tree goes a long way. Iteration method would be preferable. The answer is $Θ (n \log \log n)$. Can anyone arrive at the solution.
Vishnu Vivek
  • 1,441
13
votes
5 answers

Solve the sequence : $u_n = 1-(\frac{u_1}{n} + \frac{u_2}{n-1} + \ldots + \frac{u_{n-1}}{2})$

For a physical model I am trying to solve this sequence: $$\begin{align*} u_1 &= 1 \\ u_2 &= 1-\left(\frac{u_1}{2}\right) \\ u_3 &= 1-\left(\frac{u_1}{3} + \frac{u_2}{2}\right) \\ u_4 &= 1-\left(\frac{u_1}{4} + \frac{u_2}{3} + \frac{u_3}{2}\right)…
user66240
  • 133
  • 5
11
votes
1 answer

Solve $A_n=A_{n-1}+\lfloor \sqrt{A_{n-1}}\rfloor$

I am trying to solve the recurrence: $A_0=1$ $A_n=A_{n-1}+\lfloor \sqrt{A_{n-1}}\rfloor,\text{ for } n > 0$ Its obvious that $A_n=m^2 \implies A_{n+1}=m^2+m$ however my book's solution states that the key insight is to realize: $A_n=m^2 \implies…
dbyrne
  • 557
11
votes
5 answers

What's wrong in this method of solving a difference equation?

Consider: $$y_{n+1} = 2y_n + 1$$ To solve this I think I need to find "any" one particular solution and add it to a homogeneous solution. A homogeneous solution is $2^ny_0$ For a particular solution, if I substitute $y_n = an$, $$a(n+1) = 2an + 1 >…
AgentS
  • 12,195
11
votes
4 answers

How to find the limit of this recurrence relation

I am trying to solve a question which requires me to solve this problem. Given that $a_0=a_1=a_2=a_3=a_4=0$ and $a_5=1$ and $$a_{n+6}=\dfrac{a_{n+5}+a_{n+4}+a_{n+3}+a_{n+2}+a_{n+1}+a_{n}}{6}$$ find the limit of$a_n$ as $n$ approaches infinity. I…
Peter
  • 115
10
votes
4 answers

Closed form for non-linear recurrence $a_n=\sqrt{a_{n-1}+6}$ with $a_1=6$

Does equation $a_n=\sqrt{a_{n-1}+6}$ with $a_1=6$ have a closed form? I've found no linearization method. Any suggestion or hint will be highly appreciated.
Tavasanis
  • 101
1
2 3
96 97