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

Solve recurrence relation $a_n = 3 a_{n - 3} + a_{n-1} + 2 n$

I am not able to solve the above recurrence relation which involves $n$. The initial conditions $a_0 = 1, a_1 = 2, a_2 = 3$, for $n \geq 0$. Please try to give closed form in terms of arbitrary $a_i \geq 1 $ for $i \geq 0$
0
votes
1 answer

Is this how to prove a recurrence?

Given: $U(0)=4$ $U(n+1)=3+2\cdot U(n)$ ...recurrence case $U(n)=7\cdot 2^n-3$ My Solution: $U(n+1)=3+2\cdot U(n)$ $\frac{U(n+1)-3}{2}=U(n)$ $\frac{U(n+1)-3}{2}=7\cdot 2^n-3$ Since I know $U(0) =4$, and with that I can solve $U(1)=11$ $n =…
0
votes
1 answer

Solve $C_N = (2 + 1/\log_2N)C_{N/2}$ for $N \ge2$ and $C_1 = 1$

Solve $C_N = (2 + 1/\log_2N)C_{N/2}$ for $N \ge2$ and $C_1 = 1$. My solution: $N = 2^n$ $C_{2^n} = 3*(5/2)*(7/3)*(9/4)*...*(2+1/n)$ $C_N = 3*(5/2)*...*(2+1/lgN)$ How can I simplify further?
Hmmman
  • 37
0
votes
1 answer

Linear recurrence solving for tighest possible big O bounds

I am dealing with the following linear recurrence: X0 = 1 X1 = 2 Xn = 3Xn-1 + 2Xn-2 I have proven that this has an upper bound of O(4n) However, I have been asked to come up with tighter bounds for this linear recurrence, but I dont know how to…
user626552
0
votes
2 answers

Solving non-homogeneous recurrence relationships with exponents

Find all solutions of the recurrence relation $a_n = 2a_{n-1} + 2n^2$. I am having trouble with coming up with a guess for $2n^2$. Would it just be $an^2 + bn + c$? I feel like there's an easier way based on ways to solve other recurrances.
banana
  • 225
0
votes
1 answer

A Recurrence relations of the form: $T(n) = aT(\frac{n}{b}) + f(n)$

Is there a name / terminology used for describing the above type of recurrence relation? Is there a general method for finding a closed form for these types of recurrences? When does a closed form exist? According to this post the above…
0
votes
1 answer

Computing the solution of a recurrence relation

Let $y_k=\dfrac{16}{3}y_{k-1}-\dfrac{5}{3}y_{k-2}$ with $y_0=1$ and $y_1=\dfrac{1}{2}$ for $k \geq 2, k \in \mathbb{N}$. To find the solution $\lbrace y_k \rbrace_{k \in \mathbb{N_0}}$ I used: Firstly, I computed it for…
Olsgur
  • 131
0
votes
1 answer

solving recurence relations

$i a_i = \left(i + 1\right) a_{i-1} + 2(i - 1)$ where $a_0 = a_1 = 0$ Solving this recurence relation. How can I do this ? I tried to make something like $i (a_i + 2(i-1)) = (i+1) (a_{i-1} + 2 (i-1))$ but find it kind of useless because i would…
0
votes
1 answer

Prove the following recurrence.

A full binary tree is a tree in which every node other than the leaves has two children. Let $K_n$ be the number of full binary trees with $n+1$ leaves. Show that $$K_n = \sum_{i=0}^{n-1}K_{i}K_{n-1-i}.$$ I thought of splitting the tree by its root…
Student
  • 9,196
  • 8
  • 35
  • 81
0
votes
1 answer

Complexity for a reccurence relation

If $ T(n) = \sqrt{2n}T(\sqrt{2n} )+ {n ^ 2} $ , what is complexity of T(n)? Well, I let $ n = {2 ^ k} $ , $ y(k) = \frac{T({2 ^ k} )}{4 ^ k} $ and I tried to resolve this recurrence by iterations methods, but I saw that it not works here. How I can…
Daniel
  • 33
0
votes
2 answers

How can I solve a difference equation where one of the variables is inverted?

I'm asked to solve $z_{t+1}= 1 + \frac 1{z_t} $ and I have no clue where to start. $ 1+ \frac 1{z_t} $ looks similar to $ \Delta log t $ which is $ log({1+ \frac 1{t}}) $ but I'm not sure what to do with that, if it's even related.
Ramiro
  • 33
0
votes
1 answer

Recurrence relation problem from CSAT

The problem given is as follows: (from CSAT, here, pg 3, Q11) An organism is born on day $k = 1$ with 1 cell. During day $k = 2, 3,\dots$ the organism produces $\frac{k^2}{k−1}$ times more new cells than it produced on day $k − 1$. Give a…
Gokul
  • 514
0
votes
0 answers

Solve a 2 variable recurrence relation with 3 terms

$f(n,k) = f(n-1,k) + f(n-1,k-1) + f(n-2,k-1)$ $f(n,1) = 2n$ $f(1,k) = 2$ if $k = 1$ $f(1,k) = 0$ if $k\geq2$ $f(2,k) = 4$ if $k = 1$ $f(2,k) = 2$ if $k = 2$ $f(2,k) = 0$ if $k\geq3$ How to solve this 2-variable recurrence relation?
0
votes
1 answer

Solving coupled recurrence equations with non-constant coefficients

I've been looking at this way too long on this problem now, and perhaps I'm just not seeing it clear but I can't figure out how solve the coupled recurrence equations $a_n, b_n$ with non-constant coefficients as in e.g. $$\begin{cases}a_n =…
J.N.
  • 3
0
votes
1 answer

Find a recurrence relation for the number of ternary strings that do not contain consecutive symbols that are the same.

I tried to solve this question by subtracting the number of strings that contain consecutive symbols that are same from the total number of symbols possible of length n. Let bn denote the number of strings of length n, with consecutive symbols that…