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

How to solve this recurrence : $T_{n}=T_{n-1}+ (n)^2 [T_{n-2}+1]$

It is given that $T_1=1$, $T_2= 5$, $T_3 = 23$. I have already proved that it should be $(n+1)! - 1$ by induction. But I am wondering if there is any other way, which involves solving the recursive relation.
makhi1249
  • 141
0
votes
2 answers

Solve the recurrence T(n)=2T(n−1)+n using substitution method and master theorem

I have seen a solution for it but I was confused at the end. this is the solution by Siddharth Chakravorty T(n)=2T(n-1)+n -----(1) T(n-1)=2T(n-2)+n-1 ------(2) T(n-2)=2T(n-3)+n-2 ------(3) Substitute (3) in (2) and then (2) in…
0
votes
1 answer

Solve Recurrence Equation: $T(n) = T(n-4) + n$

for a university course we’ve been tasked to solve a recurrence relation similar to the following: $T(n) = T(n-4) + n$ We may assume that $T(1) = 1$, and that $T(k) = O(1)$. I’ve tried solving both by unfolding and using a recurrence tree, but I get…
lh1395
  • 3
0
votes
1 answer

How to solve $T(n)=T((4/5)n+1)+n^2$.

I have a problem with this recurrence relation. I have to find the Theta notation. I tried to solve it with the iterative method. The generic formula I calculated is: \begin{equation} T(n)=T[(4/5)^k n]+[(4/5)^{k+1} n]^2+[(4/5)^{k+2}…
0
votes
1 answer

Solving the Recurrence Relation $T(n) = T(n -1 ) + n^c $

$T(n) = T(n -1 ) + n^c $ for c >= 1 , T(1) = 1 I tried to solve it using the iterative method but then I didn't know how to finish if for k $T(n-1) = T(n-2) +(n-1)^c$ $T(n) = T(n-2) +(n-1)^c + n^c$ $T(n-2) = T(n-3) +(n-2)^c$ $T(n) = T(n-3) +(n-2)^c…
S_04
  • 9
0
votes
1 answer

Nonlinear Difference Equation Solved by Substitution

I'm reading Introduction to Dynamic Systems by David Luenberger. Question 2.1 asks to solve a nonlinear difference equation $$ y(k+1) = \frac{y(k)}{b + y(k)} \quad \text{for } k=1, 2, \ldots $$ He recommends using a change of variables to convert…
0
votes
0 answers

Solving second-order linear difference equation with variable coefficients

Given the relation $$ X_n = X_{n-1}g_{n-1} + X_{n+1}g_{n+1} $$ where $g_{n}$ is some function of $n$, say $g_n = n$, is there a general method to find solutions for $X_n$? Thank you.
71m3
  • 203
0
votes
0 answers

Relation between multiples of recurrences

If I have a recurrence $$R_n = aR_{n-1}+bR_{n-2}, R_1 = x, R_2 = y$$ and now I want to consider this new recurrence $$Q_n = c(aQ_{n-1}+bQ_{n-2})$$ Is there any way to relate the two (perhaps by setting some specific initial values of $Q$)?
0
votes
1 answer

Recurrence Relations with multiple different sub relations? (And Resources)

How can I approach recurrence relations such as the following, where the recurrence is being broken down into 1-2 different terms? I'm also not sure if I phrased this right so correct me if I'm wrong. e.g. something like the following: $T(n) =…
Revise
  • 101
0
votes
1 answer

A new Franel number recurrence relation formula

Let $$f_n=\sum_{k=0}^{n}\binom{n}{k}^3,$$ Franel showed that $$(n+1)^2f_{n+1}=(7n^2+7n+2)f_n+8n^2f_{n-1}$$ Now, my question is if i am able to show that $$Af_{n+1}=Bf_n+Cf_{n-1}+Df_{n-2}$$ for some integers $A, B, C$ and $D$, would this be a…
0
votes
1 answer

Recurrence Relation, find recurrence relation of ternary string of length n that don't include some substrings

I have been given the following problem: Find a recurrence relation for the number of ternary strings $(0,1,2)$ of length $n$ such that (a) they do not contain $22$ as a substring (b) they do not contain, neither $20$ nor $22$, as a substring I have…
0
votes
1 answer

find n for even $f(n)$: $f(1)=1,f(2n)=f(n), f(2n+1)=f(n)+f(n+1)$ from concrete mathematics

I am wondering why $f(n)$ is even why $3|n$. I can only prove that $f(n)$ is even when $n=3\cdot 2^k$ because $f(3)$ is even.
0
votes
3 answers

Find the general solution of the recurrence relation $3x_{n+2} − x_{n+1} − 2x_{n} = 5$.

Find the general solution of the recurrence relation $3x_{n+2} − x_{n+1} − 2x_{n} = 5$. Attempt First I found the auxiliary equation: $3 \lambda ^ 2 - \lambda - 2 = 0$. To get the solutions: $\lambda = 1$ , $\lambda = -2/3$. This lead to a general…
user1048905
0
votes
1 answer

How can I solve mutual recurrence relation?

I want to solve recurrence relation as following : $$ g_{l+1} = (1-2t)g_l+2\sqrt{t(1-t)}b_l \quad and \quad b_{l+1}=(1-2t)b_l-2\sqrt{t(1-t)}g_l \quad $$ $$ g_0=\sqrt{t} \quad and \quad b_0 = \sqrt{1-t}$$ where t is constant I tried generating…
0
votes
1 answer

Find a closed form of $a_n$ where $na_n=2(n - 1) + (n + 1)a_{n - 1}$ and $a_1 = a_0 = 0$

I have tried to substitute $n$ with $n - 1$ to get $$(n - 1)a_{n - 1} = 2(n - 2) + na_{n - 2}$$ and then combine the two equations to get $$n(a_n - 2a_{n - 1} + a_{n - 2})=2$$ but this didn't lead me anywhere. I heard there is a method to solve such…
Anas A. Ibrahim
  • 1,884
  • 7
  • 15