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

Program, Recurrence relation, Master-Theorem

Programming code: t(n) { for i=1 to n sum=sum+1 if (n>1) sum=sum+t(n/2)+t(n/2) return sum } I built the recurrence relation for the programming code above. I counted only the arithmetic…
1
vote
1 answer

Solution to non-homogeneous second order difference equation

I'm a beginner to difference equations. I have a difference equation which I want to solve: $V(x)=x^{\alpha}+\beta(\pi e ^ {-\Delta} V(x e^ {\Delta})+\pi e ^ {\Delta} V(x e^ {-\Delta})+(1-2\pi) V(x))$ I made the substitution $y=log\;x$ and then got…
Canine360
  • 1,481
1
vote
1 answer

searching for a formula for $T(n) = T(\frac{n}{2}) + T(\frac{n}{4}) + n$

So we have a number $n$, which is a power of two. And we have the following recursion: $$ T(n) = T(\frac{n}{2}) + T(\frac{n}{4}) + n$$ I solved some exercises like this, but I have a problem with this one. I don't see the structure: for the first…
RukiaKuchiki
  • 1,143
1
vote
1 answer

Proving Recurrence formula takes integer values

Let $f_0=1$, $f_1=1$, $f_2=1$, $f_{n}=\frac{f_{n-1}f_{n-2}+1}{f_{n-3}}$ for $n\geq{3}$ Prove that $f_n$ is always an integer. I tried to use induction, but the calculations were messy and unenlightening. I experimented and saw that for the more…
A. Bruno
  • 248
  • 1
  • 7
1
vote
1 answer

Deriving a recursion relation

I have read a paper which drives a recursion relation as follows and starting from Eq.(1) $$ [- \frac{d^2}{dr^2}+\frac{l(l+1)}{r^2}+\frac{\omega^2}{4}r^2+\frac{\zeta}{r}]\,\phi_{nl}(r)=E^r_{nl}\,\phi_{nl} (r) \tag{1}$$ More technically this is the…
Wisdom
  • 395
1
vote
2 answers

Solving a recurrence relation $T(n) = 2T(\frac{n}{4}) + c$

I have a recurrence relation that I would like to solve. $T(n)$ belongs to $\Theta(f(n))$. $T(n) = 2T(\frac{n}{4}) + c$, where $c$ is a constant. The base case, $T(1)$ is a constant as well. My approach was to let $n = 4^k$, but I guess I got…
1
vote
1 answer

Solve recurrence relation for non trivial base case

As per the title, I'm having some trouble to solve the recurrence equation Edited $$ T(N) = 2T \left(\left\lceil \frac{N+1}{2} \right\rceil\right) + 2T \left(\left\lfloor \frac{N+1}{2} \right\rfloor\right)$$ which is true for $N > 4$. I have two…
1
vote
1 answer

How to find unique solutions to recurrence relation $a_n =10a_{n-1}-32a_{n-2}+32a_{n-3}$ with $a_0=5$, $a_1=18$, $a_2=76$

How to find the unique solutions to the recurrence relation given initial conditions and using the characteristic root technique? $a_n =10a_{n-1}-32a_{n-2}+32a_{n-3}$ with $a_0=5$, $a_1=18$, $a_2=76$ Using the characteristic root technique, I…
Sam
  • 865
1
vote
1 answer

How to solve the recurrence relation $G(k) = 2^{(1.5)\cdot 2^k}G(k-1) + \left(2 ^{3 \cdot (2^k)}\right)\left(2 ^{ (2k)}\right) \cdot k$

$G(k) = 2^{(1.5)\cdot 2^k}G(k-1) + \left(2 ^{3 \cdot (2^k)}\right)\left(2 ^{ (2k)}\right) \cdot k$ G(1) = c I could not get any development that converged into anything. Can you please help to how to start? EDIT: I have started with other…
1
vote
0 answers

Under what conditions the coupled iterate is bounded?

Consider the two recursions $$\theta_{n+1} = \theta_n + a(n)[a \theta_n + b w_n]$$ and $$w_{n+1} = w_n + b(n)[c \theta_n + d w_n]$$ It is given that $\sum a(n) = \infty, \sum b(n) = \infty, \sum a(n)^2 < \infty, \sum b(n)^2 < \infty,…
1
vote
1 answer

Help with Nonlinear Recurrence Relation

Hello guys :) I've got a bit of an issue with the following recurrence relation: Let $\omega _1 = 1$. Now, let $\omega _n$ be defined as follows $$ w_n = 1 + \sum _{k=1}^{n-1}C^{k}_{n-k} \, \omega _k \, \omega _{n-k} $$ where $$ C^{k}_{n-k} =…
1
vote
2 answers

How to find an explicit formula for a recurrence using substitution

I have a recurrence as follows: \begin{equation} T(n) = \begin{cases}a, & \text{for $n=1$}\\ T(\dfrac{n}{2})+b,&\text{for $n\geq2$} \end{cases} \end{equation} $a$ and $b$ are some undefined constant. I'm asked to find an explicit formula using…
Justin
  • 15
1
vote
1 answer

Maximum of difference equation

If I have $y(n) = - \sum_{k=1}^N a_k \cdot y(n-k) + \sum_{k=0}^M b_k \cdot x(n-k)$ with $|x(n)|\leq L\\ y(n-k) = 0 \text{ for all } n-k \lt 0 \\ x(n-k) = 0 \text{ for all } n-k \lt 0 \\ n \in \mathbb{Z} \\ k \in \mathbb{N} \\ a_{k} \text{ and } \…
Mauro
  • 313
1
vote
3 answers

Evaluate $T(n)=2T(n-1)+1$

Evaluate $$T(n)=2T(n-1)+1$$ $T(1)=1$ $$T(n)=2T(n-1)+1$$ $$T(n-1)=2T(n-2)+1$$ $$T(n-2)=2T(n-3)+1$$ So $$T(n)= 2(2(2T(n-3)+1)+1)+1...=2^{k}T(n-k)+2^{k-1}+2^{k-2}+...+1$$ for…
gbox
  • 12,867
1
vote
4 answers

Solve recurrence relation: $T(n) = \frac{n}{n+1}T(n-1) + 1$

I am not able to solve this recurrence relation by substitution and variable change method. $$T(n) = \frac{n}{n+1}T(n-1) + 1;\ \ T(1) = 1 $$
Kivtas
  • 47