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

Second Order Linear Homogeneous Recurrence Relation

I am trying to learn recurrence relations and I want to find the general formula of second-order linear homogeneous relation $a_n=6a_{n-1}-8a_{n-2}$ where $a_0=1; a_1=4.$ So I started with the characteristic equation and I got…
1
vote
0 answers

how can I find an upper bound and a lower bound for this recursive relation?

However hard I try I can't use the master theorem to solve this relation. Is there a way to do this. Any other ideas? T(n,m) = T(n-1,m)+T(n,m-1)+1
Hosna
  • 11
1
vote
2 answers

Proving divisibility for a recurrence relation

Given: $$U_1 = -1 \\ U_n = (U_{n-1})^2 - 8 ~~ \text{for} ~~ n \in \mathbb{N} \setminus\{1\}$$ I need to prove that $U_n$ is divisible by $7$ for all even values. of $n$. I thought it's proof by induction but I have only used it for numbers greater…
1
vote
1 answer

Solution to the difference equation $u_{n+2}=2u_{n+1} + 3u_{n} + 3^{n} (6n + \frac{3}{2})$

Find the solution to the following non-homogeneous difference equation: $u_{n+2}=2u_{n+1} + 3u_{n} + 3^{n} (6n + \frac{3}{2})$ The homogeneous part was pretty straight forward, but I was having trouble with the particular solution, can anyone…
1
vote
2 answers

Simple formula for map from positive integers to ones and twos?

Is there a nice simple formula for the following map: $$\{1,2,3,4,5,6,\dots\} \mapsto \{1,2,1,2,1,2,\dots \}$$
1
vote
1 answer

Solving a recurrence relation when $n$ is a power of $7$

I'm working through some recurrence relation examples and am struggling with this question that assumes inputs of $n$ are powers of $7$. Essentially we have $T(n) = T({\lfloor}n/7{\rfloor}) + \log_{3}(n)$ $T(1) = 0$ Using the bottom up method I have…
Kermitty
  • 159
  • 1
  • 9
1
vote
1 answer

How can I solve the recurrence relation:$F\left(n\right)=F\left(n-1\right)+2F\left(n-2\right),\:F\left(0\right)=1,F\left(1\right)=1$

I've been trying to solve it using Power Series and Partial Fractions but got stuck with.
1
vote
2 answers

Recurrence equation

Given the following recurrence equation: $T(n)=T\left(\dfrac{n-1}{2}\right)+2$ , $T(1)=0$ How would you set this equation up in order to allow you to solve it using telescoping? Thanks in advance.
N. Ersk
  • 11
1
vote
1 answer

Solving $A_n A_{n+1}=A_{n}+2 A_{n+1}$ to disagree with a question

Solving $$A_n A_{n+1}=A_{n}+2 A_{n+1} \tag1$$ to disagree with a question attached below: Let us re-write *1) as $$A_{n+1}(A_n-2)=A_n \tag 2$$ Let $A_n-2=B_n/B_{n-1}$ in (2) to simplify and to get $$B_{n+1}-2B_{n-1}+B_n=0 \tag3$$ Let $B_n=x^n$, we…
Z Ahmed
  • 43,235
1
vote
0 answers

Closed form of this bi-variate recurrent relation: $a_{i,j} = a_{i-1,j-1} + (r_i a_{i,j-1}) + a_{i+1,j-1}$

How to find the closed form of this relation? $\forall i,j \ge 1, a_{i,j} = a_{i-1,j-1} + (r_i a_{i,j-1}) + a_{i+1,j-1}$ where $\forall i \ge 0, a_{i,0}\in\{0,1\}$ and $r_i\in\{0,1\}$
Souvik
  • 33
1
vote
1 answer

Showing the solution of a recurrence relation

I've been working through recurrence relation problems and came across one that I am struggling with Say we have a relation as follows $r_k - 7r_{k-1} + 12r_{k-2} = 0$ for all $k \geq 2$ and $r_0 = 1, r_1 = 7$ The problem is essentially asking…
ChuChugga
  • 13
  • 4
1
vote
1 answer

Problem solving a recurrence relation

I have to find an expression for $J_n$ given the following recurrence relation (that is, solving it): $$J_n=J_{n-1}+\frac{(-1)^{n+1}}{n!}$$ I know…
kubo
  • 1,918
1
vote
1 answer

Rules Regarding Particular Solutions for Recurrence Relations

Suppose I have the recurrence relation $a_n = - a_{n-1} + a_{n-2} + 2^n + n$ Is it alright to solve for the homogeneous 'general' solution and then split the solving of the particular solution into two cases (one for $2^n$ and one for $n$) then…
user73041
  • 435
  • 1
  • 5
  • 17
1
vote
3 answers

Solving recurrence relation with initial conditions given

I am trying to solve 2 recurrence equations: a) $a_{n+1} = 2a_n + 2^n + 3, a(0)=4$ b) $a_{n+2} = a_n + 4n, a(0)=1, a(1)=1$ For (a), I don't know how to deal with $2^n$ part. For (b), I am confused because $a(0)=a(1)$.
user715796
1
vote
1 answer

Concrete Mathematics 1.16

After attempting question 1.16 of Concrete Mathematics, $g(1)=\alpha$ $g(2n+j)=3g(n)+\gamma n+ \beta_j, j=0,1$ I am having some difficulty getting the correct answer. The following is my working: $ g(n)=A(n)\alpha + B_0(n)\beta_0 + B_1(n)\beta_1 +…
switch
  • 11