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

Find all sequences that satisfy the recurrence relation

Find all sequences that satisfy the recurrence relation $$u_n\cdot (u_{n+1})^2-u_{n+1}-u_n+1=0, \text{with }u_0=1$$ My try First, we find $u_1$, which follows $u_0=1$. $u_0\cdot (u_{1})^2-u_{1}-u_0+1=0$ $(u_1)^2-u_1-1+1=0$ $(u_1)^2-u_1=0$ $u_1=0…
rae306
  • 9,742
2
votes
1 answer

$g(n)=\sum_{i=0}^{n-1}g(i)g(n-i-1)$, and $g(0) = 1$, so which is $g(n)$?

I have an equation that: $g(n) = g(0)g(n-1)+g(1)g(n-2) + ... + g(n-2)g(1)+g(n-1)g(0)$ And I also know that $g(0)=1$. How can I derive the close form of function $g(n)$ ?
C. Wang
  • 145
2
votes
2 answers

Recurrence Problem involving multiple dependencies.

I have 3 equations :- $r_n=r_{n-1}+5m_{n-1}$ $m_n = r_{n-1} + 3m_{n-1}$ $p_n = 5m_{n-1}$ The initial values of the sequences are $$r_0=3, m_0=1, p_0=0$$ How can I get the formula to get the nth term of the series without the recurrence? A…
2
votes
2 answers

Help with a recurrence relation

I have been battling with the following: $$T\left(n\right)=3T\left(\frac{n}{2}\right)+n\log(n)$$ I have tried expanding it but the term $n\log(n)$ gets very messy. What is the approach for solving this recurrence?
Francisco
  • 235
2
votes
1 answer

Solving recurrence relation

If I have the following recurrence relation, $$T(n) = T(\lfloor n/2 \rfloor) + T(\lceil n/2 \rceil) + n $$ How would I show that $T(n)\le cn\lg(n)+dn $ for some reals $c$ and $d$?
dissem
  • 327
2
votes
3 answers

Solve recurrence equations-homework extras

Extras from my homework. The first one should be easier, but still hard enough. 1) $a_{n+3}-(3/2)a_{n+2}-a_{n+1}-(1/4)a_n=0$ 2) $a_{n+3}-3a_{n+2}-3a_{n+1}+a_n=n^2+2^n$
2
votes
0 answers

Recurrence Relation with $n^{\frac{1}{2^k}}$ Square Root

I tried to solve this recurrence relation, like the following: $$ \\ T(n) = \begin{cases} T(\sqrt[2]{n}) + c, & \text{if }n \geq 2 \\ a, & \text{otherwise} \end{cases} \\\\ T(n) = T(\sqrt[2]{n}) + c \\ T(n) = T(\sqrt[4]{n}) + c + c =…
2
votes
0 answers

Asymptotic behaviour of two dependent recursive sequences

I have two sequences whose relation is described in the following recurrence relations: $ p_{k + 1} = p_k + \frac{1}{2s_k}$ $ s_{k + 1} = s_k + \frac{s_k}{p_{k+1}}$ (when $p_0=2, s_0 = \frac{1}{2}$ $p_k$ is a probabilistic approximation for the…
Ruben
  • 694
  • 4
  • 11
2
votes
2 answers

Solving a recurrence relation. Check my answer

I have a recurrence relation: T(n)=4 for n<=2 T(n)=3T(n/3)+5 for n>2 So I began solving it, T(n/3)=3T(n/9)+5 then T(n)=3(3T(n/9)+5)+5 = 3^k T(n/3^k)+5k letting k=log_3_n = 3^log_3_n T(n/3^log_3_n)+5log_3_n = nT(1)+5log_3_n = 4n+5log_3_n Is this…
2
votes
1 answer

Linear recurrence relation in Cantor-like sets

I have a linear recurrence relation $$a_i = \alpha_0 a_{i-1} + \beta(i)$$ Where $\beta(i) = \beta_0b_i$ with $b_i \in \{0,1\}^\mathbb N$ I know that $0 < \alpha_0 < \frac{1}{2}$, $\beta_0 = 1 - \alpha_0$ and $a_1 \in [0,1]$ How can I express…
ruler501
  • 1,218
2
votes
1 answer

How to solve the difference equation $W(x+h)=c(x)W(x)$?

Let $c(x)=\prod_{s=1}^{n}(x-z_s)$ be a polynomial, where $z_s$ are some complex numbers. How to solve the difference equation $W(x+h)=c(x)W(x)$ for $W(x)$? Thank you very much.
LJR
  • 14,520
2
votes
0 answers

Is there a better notation for difference equations?

Difference equations are quite messy to deal with, esp. in constraint optimization with many time subscripts that invite mistakes. Is there a better notation? Something like Feynman diagrams for difference equations? That would be quite…
Hirek
  • 457
  • 3
  • 12
2
votes
1 answer

How can I make this recurrent equation non-recurrent?

I have a recurrent equation that defines a sequence $a_k$ from a sequence $b_k$: $$a_k = b_k - \sum^\infty_{i=k+1}a_i$$ How can I write this equation without mentioning $a_k$ on the right side?
FUZxxl
  • 9,307
2
votes
1 answer

Solving recurrence

Can anyone help me solving this recurrence? I don't see how I could use Master Theorem for this one and I couldn't find anything that would give me some idea how to do this. $$ T(n) = T(\lfloor{2n/3}\rfloor)+ n^2 $$
2
votes
1 answer

Recursive formula for creating a specific string

I have 5 characters ${a,b,c,1,2}$. $a_n$ is the number of strings I can create for $n$ length. I can't have the following sequences in a string: $a1$, $b2$ and any sequence of numbers $(12, 21)$. For example legal string: $aaaa$, $abb1$, $1aaa$ For…