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

Use induction to solve the recurrence relation..!!

I don't know how to start this problem. I just need someone to show me the first couple steps of doing the induction for this relation. c is a constant. $T(n) = T(n - 4) + c\cdot n^{1/4}$ Thanks for the help..!!
0
votes
1 answer

Help with difference/recursion equation change of variable

I am in a self study of Dynamic Systems and am reading through David Luenberger's book and cannot seem to figure the following question out. Solve the difference equation using a change of variables to make it a linear difference euqation: $ y(k+1)…
0
votes
3 answers

In attempting a closed solution for a recurrence, what am I failing to do?

I'm doing a coursework assignment and find myself rather stuck. I thought I understood back-substitution as a method for solving recurrences but am not finding my working to be getting me anywhere. My current question is just "What am I doing wrong…
KitB
  • 101
0
votes
2 answers

Programmatically Solve Recurrency equations in Closed form?

$$ \begin{cases} V(k)=0 \text{ as } k < 1 \\ V(k+1) -V(k) = \left(\frac{1}{2}\right) \left(V(k) - V(k-1) \right) \text{ as } k \in [1,9] \\ V(k+1) = V(k) \text{ as } k >9 \end{cases} $$ I have got $$V(10) - V(9) = (\frac{1}{2} (V(9) -…
hhh
  • 5,469
0
votes
1 answer

Stable points of difference equation?

after getting fixed points of this system : $$x_{t+1} = a\cdot x_t\cdot(1-x_t)$$ i want to analyze the stability of the system for a = 0.9 , a = 2.1 and a = 3,58. given : An enlargement of the previous diagram around is illustrated above, with…
0
votes
1 answer

How to prove this theorem?

Let Un be the number of words with length $n$ in the alphabet ${0,1}$ that have the property of not having consecutive zeros. Prove that: $$U_1 = 2, U_2= 3, U_n = U_{n-1} + U_{n-2}.$$ I am stuck with this proof ... I know that this is related…
0
votes
1 answer

Verify if T(n) = T(n/2) + log(n) - Recurrence Relation

I'm not sure if I'm correct, but could you please verify if this is right: $$\begin{align} T(n) &= T\left(\frac{n}{2}\right) + log_{2}(n)\\ T(n) &= T\left(\frac{n}{2^{i}}\right) + n\sum_{i-1}^{k=0} \left ( \frac{1}{2} \right )^{i}\\ T(n) &= 1 +…
0
votes
1 answer

Deriving recurrences?

Hi could some do this question for me I have never derived a recurrence before For an integer $n \geq 1$, draw $n$ straight lines, such that no two of them are parallel and no three of them intersect in one single point. These lines divide the…
Jake
  • 1
0
votes
2 answers

Solve recurrence relation for given n

How do I approach the problem if I have given n. The question is to find $T(1024)$ when: $$T(n) = 2T(n/4) + 4n + 8\text{ for }n > 1 \\ T(1) = 1 $$ Do I just substitute? In that case I get: $2T(256)+4104$ so what do I do with $T(256)$?
setlio
  • 105
  • 1
0
votes
1 answer

Recurrence relations

I am trying to solve the following recurrence relation: $$ T(n) =\begin{cases} 4T(n-1) & \text{, if }n\gt1\\1 & \text{, if }n=1 \end{cases} $$ This is what I have got so far: $$4T(n-1)+2$$ $$4^2T(n-2) +4\cdot2 +2$$ $$4^3T(n-3) + 4\cdot4\cdot2…
setlio
  • 105
  • 1
0
votes
1 answer

Recurrence relation for $n$ digit numbers not containing '$20$'

How many n digits base $3$ numbers do exist such that they never contain pattern '$20$'? (first find a recurrence relation)
Emad
  • 115
0
votes
1 answer

Characteristic equation of a difference equation indicates the function behavior

For the characteristic equation $a_2 \lambda^2 + a_1 \lambda + a_0 = 0$ of the difference equation $a_2 x_{n+2} + a_1 x_{n+1} + a_0 x_n = 0$, I remember there is a way to indicate if the function of $f(n) = x_n$ is in/decreasing or oscillating?…
1LiterTears
  • 4,572
0
votes
1 answer

How do we solve a tight big-O bound for the recurrence $T(n) = T(n^{2/3}) + 1$?

The big-O bound seems largely governed by how many times we can take the input $n$ by the $\frac{2}{3}$ power until it reaches some constant like 1. How do I start formalizing this problem in math terms?
David Faux
  • 3,425
0
votes
2 answers

Prove (1 + x)^n + (1 - x)^n < 2^n by using Binomial Theorem

Hi my boss asked me to resolve this equation: Prove (1 + x)^n + (1 - x)^n < 2^n by using Binomial Theorem -1 < x < 1 and n >= 2.
0
votes
1 answer

Recurrence – Substitution

Find the asymptotic tight bound in $$ T(n) = 4T\left(\frac{n}{2}\right) + n^{2}\log n. $$ where $ \log n= \log _{2}n $ and $T(1) = 1$. I should solve this using substitution method. I used $n = 2^{k}$, $T(2^{k})=4T(2^{k-1}) + 2^{2k}k$ as Rick and…
SuzieQ
  • 45