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

Recurrence equation with Θ

I was studying a book and I came through an exercise which I can't solve. The problem is I do not fully understand the question. The answer must be the solution of the recurrence relation. As it is from an Algorithm book, I suppose the answer must…
Sida
  • 681
1
vote
3 answers

Solve $T(n)=2T(\frac{n}3)+\log_3(n)$ for n>1, n a power of 3

Solve the following recurrence equation using the characteristic equation. $T(n)=2T(\frac{n}3)+\log_{3}n$ for $n>1$, $n$ a power of $3$ $T(1)=1$ I'm not quite sure I understand exactly what to do here. I've done this much on my own Let $n=3^k$,…
1
vote
3 answers

using the recurrence relation

A person deposits Rs. 10, 000/- in a bank in a saving bank account at a rate of 5% per annum. Let Pn be the amount payable after n years, set up a recurrence relation to model the problem. Also using the recurrence relation, find amount payable…
Ambz
  • 11
1
vote
3 answers

Recurrence relation problem, need help:)

I´m stuck on a problem. Can anyone help me? The problem: Find the recurrence relation to $$a_n=a_{n-1}+2a_{n-2}+\cdots+(n-1)a_1+na_0\;(\text{for }n\ge 1),\\a_0=1$$ I guess I have to compare $a_n-a_{n-1}$ with $a_{n-1}-a_{n-2}$?
Tore
  • 33
1
vote
1 answer

Proving the recurrence relation $xL_n'(x) = n l_n(x) - n L_{n-1}(x)$

How can I prove the following recurrence relation for Laguerre polynomials eqn $(11)$. $$xL_n'(x) = n L_n(x) - n L_{n-1}(x)$$ I managed to show that the following which seems to be true. I put all things on one side and this yields zero. $$(x-n)…
hasExams
  • 2,285
1
vote
1 answer

Particular solution of $a_n - 3a_{n-1} + 2a_{n-2} = 2n - 1$

Let $$a_n - 3a_{n-1} + 2a_{n-2} = 2n - 1$$ $$a_0 = a_1 = 0$$ Be a recurrence relation. To solve it, we need to find homogenous and particular solution. I found out that the homogenous solution is $b_1 + b_2 \cdot 2^n$ for some constants $b_1,…
Kevinlove
  • 171
1
vote
2 answers

Finding associated Difference equation.

Assume I have some arbitrary difference equation, which should equate to $2^{n+3} - 1$. A quick way to solve this is to use the annihilator method, but I have not fully understanded how to use this. My main problem lies within finding the difference…
Kemit4
  • 329
1
vote
4 answers

Can I get a hint on solving this recurrence relation?

I am having trouble solving for a closed form of the following recurrence relation. $$\begin{align*} a_n &= \frac{n}{4} -\frac{1}{2}\sum_{k=1}^{n-1}a_k\\ a_1 &= \frac{1}{4} \end{align*}$$ The first few values are…
A.E
  • 2,473
1
vote
2 answers

Nonlinear recurrence equation solution

I'm trying to find a solution to the following recurrence: $$ R_n=A+\frac{2AR_{n-1}}{2A+R_{n-1}} $$ I don't see any simple way to find the solution to this, but WolframAlpha gives the following elegant solution (unfortunately without…
1
vote
1 answer

Particular solution of recurrence relation $y_{n+2}-6y_{n+1}+9y_n=2*3^{n+2}$

I am trying to find a particular solution of $y_{n+2}-6y_{n+1}+9y_n=2*3^{n+2}$. I set $y_n=A3^{n+2}$ and get $A3^{n+4}-6A3^{n+3}+9A3^{n+2}=A^{n+2}(9-18+9)=2*3^{n+2}$. So do I need another guess for $y_n$?
1
vote
2 answers

Find the value of the the term

The sequence $a_1,a_2,a_3,\ldots$ satisfies $a_1=1$, $a_2=2$, and $$a_{n+2}=\frac2{a_{n+1}}+a_n\;;$$ find the value of $$\frac{a_{2012}2^{2009}}{2011}$$
maths lover
  • 3,344
1
vote
1 answer

Recursion with convergent coefficients

Suppose that we have a linear recurrence $x_{n+1}=a_n x_n + b_n x_{n-1}$, such that $a_n\to a$ and $b_n\to b$, and where the roots $\lambda_1,\lambda_2$ of $x^2-ax-b=0$ are distinct real roots with $0<|\lambda_1|<1<\lambda_2$. If $v_n$ is any…
Ofir
  • 8,015
1
vote
0 answers

How would you write a system of reccurence relations for this sum?

How would you write a system of reccurence relations and initial conditions, based on which it would be possible to evaluate the value of the expression without repeatedly evaluating the same intermediate values for this sum $$\sum_{k=0}^\infty…
cal
  • 27
1
vote
1 answer

Recurrence relation with unequal division

$$T(n) = T(3n/4) + T(n/3) + n$$ Please help me solve this recurrence relation. Somehow even Akra_Bazzi method doesn't seem to work in this case
basant
  • 11
1
vote
0 answers

Can we solve this iterative equation?

As described by the title, can we obtain a formula for $X_k$? $$X_k=\sum_{i=0}^{k-1}X_{k-1-i}\sum_{j=1}^{\infty}\left(\frac{p^j}{1-p^j}\right)^{i+1},X_0=1.$$
Weimin Dai
  • 61
  • 3