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
1
vote
0 answers

Characteristic equation for recurrence relations

This year we learned this method of characteristic equation to find the formula for the general element of a string of numbers (i.e. $a_n$) the characteriatic equation of the recurrence relation $a_n=p_1a_{n-1}+...+p_ka_{n-k}$ is: …
Anonymus
  • 571
1
vote
0 answers

Is this proof of the convergence of a recurrence relation correct?

The relation: \begin{equation} a_{n+1} = a_n + e^{-a_n} (a_0 = 0) \end{equation} Does it converge or diverge? I've been working on this on and off for about a year, and I think I've figured out a proof: Proof: You can easily rewrite the relation as…
1
vote
1 answer

Solve the following recurrence $f(n) = 2^n f(n - 1) + 2^n$ given $f(0)=1$.

Solve the recurrence $f(n) = 2^n f(n - 1) + 2^n$ given $f(0)=1$. The pattern I can come up with is $2^{2n-1} f(n - 2) + 2^{3n-1}$ $2^{3n-3} f(n - 3) + 2^{6n-4}$ $2^{4n-6} f(n - 4) + 2^{10n-10}$ How do I solve the recurrence relation from this…
1
vote
2 answers

Is the recurrence relation a good way to compute $x_n$ from arbitrary initial values $x_0$ and $x_1$?

Show that the recurrence relation $$x_n=2x_{n-1}+x_{n-2}$$ has a general solution of the form $$x_n=A\lambda^n+B\mu^n.$$ Is the recurrence relation a good way to compute $x_n$ from arbitrary initial values $x_0$ and $x_1$? Proof: Suppose we are…
1
vote
1 answer

Recurence relation $D(n) \le D(\frac{2}{3}n) + 2$

We know that $D(1) = 0$. Now from the inequality, $$D(n) \le D\left(\frac{2}{3}n\right) + 2$$ it should follow that $$D(n) \le 2\cdot \log_{\frac{3}{2}}(n).$$ *Edit: the logarithm has a base $\frac{3}{2}$ How do we get that last bound?
1
vote
2 answers

How to solve recurrence relation

How do I solve the recurrence relation in terms of $f_0$? $$f_{n+k} = -\frac{f_n}{(n+a+k)(n+b+k)}$$ where $a$ and $k$ are fixed. No idea what to do in this case due to the fact that the difference is bigger than 1 in the $f_i$. Thanks.
AC21
  • 220
  • 1
  • 8
1
vote
0 answers

Is there any methods for solving mixed recurrence relations

Suppose $x_i$ are variables, $i\in \mathbb{Z}$, $n\in \mathbb{N}$. I'm interested in solving the mixed recurrence relation: $a_{i,n}=a_{i-1,n-1}+x_i \cdot a_{i,n-1}+a_{i+1,n-1}$ with initial conditions $a_{0,1}=x_i$, $a_{1,1}=a_{-1,1}=1$, and…
joeyg
  • 511
1
vote
1 answer

Recurrence solution of a first-degree relation in 2 variables

Let $$a_n = x_1a_{n-1}+x_2b_{n-1} \\b_n = x_3a_{n-1}+x_4b_{n-1}$$. Given the set $(x_1 , x_2,x_3, x_4)$ is it possible to find a general formular for $a_n,b_n$.
mtheorylord
  • 4,274
1
vote
0 answers

Matrix Difference Equation

$$x_{k+2} - (2b) x_{k+1}+x_k=0$$ Here $x_k$ is a $2 \times 1$ column matrix sequence ($ k \ge 1$), $b$ is a constant. I know the form of answer, $$x_k=A \cos(k\cos^{-1}(b))+B\sin(k\cos^{-1}(b))$$ Here $A,B$ are $2 \times 1$ constant matrices.…
1
vote
2 answers

Proving that the closed form of a recurrence is positive infinitely often.

$$[-1, 1, 7, 17, 23, 1, -89, -271, -457, -287, 967, 4049]$$ are the first couple of terms in the recurrence $h(n) = 3h(n-1) - 4h(n-2)$, where $h(1) = -1$ and $h(2) = 1$. It seems that the recurrence's terms are positive infinitely often. How can I…
Muno
  • 1,509
1
vote
1 answer

Are linear signals independent if the Casoratian is $0$?

Consider the signals $3^k$, $(-4)^k$, $(-1)^k$. To compute whether they are linearly independent we must analyze their respective Casorati Matrix. We have $\begin{bmatrix}…
1
vote
3 answers

Solving Fibonacci recurrence relation

I just started learn how to do data structure and algorithm and i think this is like one of the hardest subject i picked up as compared to doing programming. I have such a hard time understanding hence i do need a little help. For example, how does…
Bryan
  • 319
1
vote
3 answers

How do you develop a recurrence relation for the function $f(n) = 5n^2 +3$, where $n \in \mathbb{Z}^+$?

On an exam of mine, I was asked to find a recurrence relation for the function $f(n) = 5n^2 +3$, where $n \in \mathbb{Z}^+$. I needed to provide a base case and the actual relation itself. I know the base case is for $n = 1$, were $f(1) = 8$, but I…
Aleksandr Hovhannisyan
  • 2,983
  • 4
  • 34
  • 59
1
vote
1 answer

A recursive relation

I'm trying to solve this recursive relation: $$\ T(n) = 2nT(\sqrt n)+1 $$ I tried to set $ m = 2^m $ but I'm stuck. I got a Hint: Use recursive tree.. Anybody?... Thank!
1
vote
4 answers

Solving recurrence relations of type $S_n-7S_{n-1}+10S_{n-2}=5\cdot 3^n$

I know how to solve this kind of equasions $$S_n-7S_{n-1}+10S_{n-2}=5\cdot 3^n$$ $$S_0=0, S_1=1$$ for example...but when there is a constant (example:$(3^n+5))$ or $(5\cdot 3^n)$ i don't know how to solve it. Any tips.