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
3 answers

How do you go about solving difference equations?

Say you have something of the form $p_1 = p$ $p_n=kp_{n-1}+(1-k)(1-p_{n-1})$ How does one go about finding $p_{n}$ in terms of $n,p$ and $k$? In my notes here's how it's found $p_n-1/2 = (2k-1)(p_{n-1}-1/2)=(2k-1)^{n-1}(p_1-1/2)$ But to be honest I…
1
vote
0 answers

Recursive function with two variables

How should I find an explicit solution for the following function: $$f(n,m)=a \, f(n-1,m+1)+b \, f(n-1,m)+c \, f(n-1,m-1)$$ where $f(1,0)=a+b$ and $f(1,1)=c$ for $n\geq 1$, $m\geq 0$. Also $f(n,-1)=0$ for all $n$ and $f(n,m)=0$ for $m\geq n$. It…
1
vote
1 answer

Finding the closed form of recurrent sequences

What are the famous (general) methods to find the closed form of a given recurrent sequence? The only method I know of is the "generating function" method. However it only works in very special cases; the given recurrence should look like (where the…
user230734
1
vote
0 answers

General formula of a sequence $a_{n+1} = 2a_n + 1/a_n$

What is the exact formula for $a_n$ in the sequence $a_{n+1} = 2a_n + 1/a_n, a_1=1$? I discovered that there are no elementary answers, but I don't know how to solve it.
Henricus V.
  • 18,694
1
vote
1 answer

Finding the explicit formula of linear homogeneous recurrence relations.

I'm not sure if this equation is a linear homogeneous recurrence relation because I didn't learn math in english. what is the explicit formula for $f$? $$f(x) = f(x-2)-{n^{x-1}\over NW-1} f(x-1)+n^{x-1}$$ $n$ and $NW$ are constants. $n = 3$ and $NW…
urw7RSeeh8FR
  • 143
  • 1
  • 8
1
vote
1 answer

Solving a particular 2d recurrence

I'd be interested in a solution to the recurrence \begin{align*} \frac{u\left[m,n-1\right]-u\left[m,n\right]}{h}+\frac{u\left[m-1,n\right]-2u\left[m,n\right]+u\left[m+1,n\right]}{h^{2}} & =\left(mh\right)^{2} & & \text{for }n>0\\ u\left[m,n\right]…
parsiad
  • 25,154
1
vote
0 answers

Is it possible to have random number chain relation?

The real problem is like this.There are two equations executing in parallel. Can anybody help ? Ex: There are four random numbers 5 7 2 and 4. These numbers are related through a chain of relations and a initial value I=20. Scenario is to create a…
Rk B
  • 11
1
vote
1 answer

Linear recurrences relation

These are from my textbook examples, introduced as Theorem 1, If $T(n)=rT(n-1)+a,$ $T(0)=b$ and $r\ne 1$, $T(n)=r^nb+\left[\frac{a(1-r^n)}{(1-r)}\right]$ And I supposed to solve other recurrence problems applying the Theorem 1 But I don't…
Minjae
  • 207
1
vote
4 answers

Computing good bounds for $P(n) = n + nP(n-1)$

What is the technique of computing the following recurrence? $$P(n) = n + nP(n-1)$$ (We assume $P(1) = 1$.) It is obvious that the lower bound for $P(n)$ is $n!$, and the upper bound is $(n+1)!$, which is pretty good information already. I've been…
1
vote
1 answer

Difference Equations - Reduction of order

I am asked to change the order of the following to a first order:$$Y_{t+2}-3Y_{t+1}+4Y_t=2$$ The approach I took was to create another equation and got the following system. $$\begin{cases} Y_{t+2}=12-3Y_{t+1}+2Z_{t+1} \\ Z_{t+2}=Y_{t+1} …
ocram
  • 743
  • 2
  • 7
  • 15
1
vote
2 answers

Help with solving this Recurrence Relation

I really need help with this question Would anyone please give a simple step-by-step on how to solve this Recurrence Relation?? $a_n = 2a_{n-1} - 2a_{n-2}$ where $a_0 = 1$ and $a_1 = 3$ It would really be great if someone could explain how to…
1
vote
1 answer

Recurrence relation with characteristic equation that has only 1 root and complex roots

For the recurrence relation: $f_n = 2a_{n-1} - 2a_{n-2}$ I got the characteristic equation that had complex roots: $x^2 - 2x + 2 = 0$ that gave roots $i, -i$ and I wasn't sure how to continue the solving the recurrence relation with the complex…
jn025
  • 989
1
vote
1 answer

Recurrence Relation with cosine

is it possible to find general solution of the recurrence relation such as $a_{n}=a_{n-1}+A\centerdot \cos(a_{n-1})$ where $a_{0}=0$ and $A \ll 1$ EDIT: At least for $a_{n}=a_{n-1}+A - \frac{A}{2!}\centerdot a^2_{n-1} + \frac{A}{4!}\centerdot…
1
vote
1 answer

Step by step Linear Reccurence

Can someone explain to me in a little bit more detail how you can get to this point. I know its explained here but i'm trying to apply the way he did this problem to this one \begin{equation*} u_n-7u_{n-1}=3\times 7^n \end{equation*} But I get it…
1
vote
3 answers

Recurrence $T(n)=T(\sqrt n) + \Theta(\log(\log(n))$

I need to find the bounds of the above recurrence . I've tried the following however got stuck : $T(n)=T(\sqrt{n})+Θ(\log(\log(n) )=$ $n=2^m,\quad m=\log(n)$ $T(2^m)=T(\sqrt{2}^m )+Θ(\log(log(2^{m})))=T(2^{m/2}) )+Θ(\log(m))$ Now define:…
JAN
  • 2,379