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
0
votes
1 answer

Recurrence into explicit formulas

Can anyone point me in the right directions for these recurrence problems? I'm having trouble figuring this out for my class I have to find the explicit formula for $H(n)$ as a fuction of $n$. Assume that $n$ is the power of the appropiate integer…
Conor F
  • 103
  • 1
0
votes
2 answers

How to solve this recurrence relation of x and g?

$$x_{t+1}=x_t-2g_t\\ g_t=0.9g_{t-1}+0.2x_t\\ g_{-1}=0\\$$ Suppose $x_0$ will be given. How to solve this recurrence relation? Write it as $s_t=\begin{bmatrix} x_t\\x_{t-1}\end{bmatrix}, s_{t+1}=Ms_t$, where M is a 2x2 matrix?
Yhqjlyr
  • 29
  • 5
0
votes
0 answers

Recurrence relation with condition

I have a problem and I am not able to find the solution, I hope someone can give me a little boost, it is a recurrence relationship, it says like this: In a factory, material is refined, raw material enters and it is refined. Every $C_o$ amount of…
0
votes
1 answer

Using the tree method to write the sum formula of a recurrence relation

Maybe someone knows how to write sum formula using tree method for this recurrence relation? $$ T(n)=T(n/2)+T(n/3)+\ln(n) $$ I found that it should be like: $$\sum\limits_{i=0}^{h} \ln \frac{n^{2^{i}}}{(2\cdot3)^{?}}$$ But I have no idea what to…
ph125
  • 9
0
votes
1 answer

Solve recurrence relation using master theorem

Maybe anyone has idea how to solve this recurrence relation using master theorem? $$T(n)=2T(\frac{n}{2})+log_2n+10$$ So $$a=2, b=2,f(n)=log_2n+10$$ I think that I should use first case, because $$\log_2n+10
ph125
  • 9
0
votes
2 answers

Finding a particular solution of a recurrence relation

Consider the following recurrence relation $$X_{n+1} - \rho X_n = W_{n+1}, \ \ \ \ \ \ \ \ \ \ \ n\geq 0$$ with initial condition $X_0 = Y$ and $\rho \in (0,1)$. I would like to find a particular solution of this relation, but I'm stuck. I have…
Vicky
  • 891
0
votes
0 answers

Solve $a_{n} = a_{n-1} - c_{n-2} a_{n-2}$

Is there a way to write a solution of the recurrence relation: $$a_{n} = a_{n-1} - c_{n-2} a_{n-2}$$ with the initial conditions $a_0=1$ and some fixed positive value for $a_1$. Here the $c_n$ are positive numbers.
a06e
  • 6,665
0
votes
0 answers

How do I solve this recurrence relation coming from a differential equation?

Solving a differential equation with the method of series as described in this site, I arrived to this point: $$\sum_nr^n\left[a_{n-1}(2n+n^2-3+4\rho+4n\rho+4\rho^2)+a_n(l(l+1)-2n+3-4\rho)+a_{n+1}(-l(l+1)-2n\rho-4\rho^2)\right]=0$$ how do I find the…
mattiav27
  • 413
0
votes
0 answers

Understanding Gauss elimination for recurrence relation

I am not sure if I should ask this question here or on the physics site; pleaase move it if it does not fit the site guide-lines. I am reading this paper, in partitcular I am reading the Method of continued fraction at pag. 13. I find it confusing…
mattiav27
  • 413
0
votes
0 answers

Solving the recurrence relation $f(n) = k f(n-1) - f(n-2)$

Let us assume that $k$, $f(1)$, and $f(0)$ are constants. I am trying to find a closed form expression for $f(a)$, $a >= 2$ in terms of $k$, $f(1)$, and $f(0)$. I have to tried to recursively substitute values for $f(a)$ to try and generate a…
V-Red
  • 193
0
votes
2 answers

Solve the recurrence $a_n=na_{n−1}+n!$

I'm working on a practice set: Solve the recurrence $a_n=na_{n−1}+n!$ for $n>0$ with $a_0=1$ Give a simple expression for $a_n$ For this problem I know the answer is $(n+1)!$ But I'm not sure how to get there.... Here is what I did so far: I…
0
votes
2 answers

Why is ))(() not in P?

Suppose P is a set of balanced parentheses. Balanced parentheses is defined inductively and recursively as such: $\lambda$ is an empty balanced parentheses $\lambda\in P$ if $w\in P$, then $(w)\in P$. if $w_1\in P$, $w_2\in P$, then $w_1w_2\in…
Andes Lam
  • 354
0
votes
1 answer

solving recurrence relation that is equal to non zero constant and double roots equal to 1

Recurrence relation $$a_n = 2 a_{n-1} - a_{n-2} + 3$$ ? The initial conditions are $a_0$ = 2 and $a_1$ = 5. I know the characteristic equation is: $$t^2-2t+1$$ The roots are 1 and 1. The homogeneous part is: $$( c_1 + c_2 * n ) * 1^n$$ How do you…
0
votes
1 answer

Reccurance relation

Hi I need help with this relation.: $$a(n)+4a(n-1)+4a(n-2)=2n-1,$$ $a(1)=2, a(2)=4$ I've been trying to solve it for days. On Wolfram Alpha I'm getting the following: $$\frac{59}{36}(-2)^n - \frac{263}{108}(-2)^n +…
0
votes
1 answer

Recurrence relation with a trigonometric nonhomogeneous part $a_n+a_{n-2}-6a_{n-3}+4a_{n-4} = 2^nn^3 + \sin\frac{2n\pi}{3}$

The first part of the question is how to solve the next relation: $$a_n+a_{n-2}-6a_{n-3}+4a_{n-4} = 2^nn^3 + \sin\frac{2n\pi}{3}$$ the explicit exact solution of characteristic polynomial is not simple. And trigonometric nonhomogeneous part confuses…
outmind
  • 159