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
4
votes
1 answer

recurrence relation with variable coefficients

How to solve recurrence relation $y_n= y_{n-1}+ (n-1).y_{n-2}$ where $n$ is a variable ? $y_n$ is a $n$th term, $y_{n-1}$ is $(n-1)$th term and $y_{n-2}$ is $(n-2)$th term.
4
votes
2 answers

$T(n)=3T(n/2) + n\log n,\ T(1)=1$

Possible Duplicate: $T(n) = 4T({n/2}) + \theta(n\log{n})$ using Master Theorem What is the order of this recurrence? $$T(n)=3T(n/2) + n\log n,\ \ T(1)=1$$ I found the answer where $a=2$ using the Master Theorem case 2, but was unable to make…
Jessie
  • 41
3
votes
2 answers

Problem to understand a recurrence relation

In Norris, Markov chains, I found the following: [...] a recurrence relation of the form $$ ax_{n+1}+bx_n+cx_{n-1}=0 $$ where $a$ and $c$ were both non-zero. Let us try a solution of the form $x_n=\lambda^n$; then…
mathfemi
  • 2,631
3
votes
4 answers

General solution of recurrence relation if two equal roots

Consider the recurrence relation $$ ax_{n+1}+bx_n+cx_{n-1}=0 $$ If the characteristic equation $$ a\lambda^2+b\lambda+c=0 $$ has two equal roots, then the general solution is given by $$ x_n=(A+nB)\alpha^n. $$ Could you please explain that to me, I…
user34632
3
votes
4 answers

Recurrence relation $x_0=1, x_n=p x_{n+1} + q x_{n-1}$

I have the following recurrence relation: $$x_0=1 \\ x_n=p x_{n+1} + q x_{n-1} \text{ for }n=1,2,3,...$$ where $0
Kasper
  • 13,528
3
votes
5 answers

Amateur Math and a Linear Recurrence Relation

I haven't received a formal education on this topic but a little googling told me this is what I am trying to find. I would like to put $$ a_n = 6 a_{n-1} - a_{n-2} $$ $$ a_1 =1, a_2 = 6 $$ into its explicit form. So far I have only confused myself…
William
  • 100
3
votes
2 answers

Particular solution of recurrence equations

How do we solve recurrence equations of the form: $$ax_{n+1}+bx_n+cx_{n-1}=dn^p+e\;,$$ where $a,b,c,d,e$ are constants and $p\in \mathbb Z$? Perhaps we could first solve the homogeneous equation $$ax_{n+1}+bx_n+cx_{n-1}=0\;.$$ Then we find the…
richard
  • 31
  • 2
3
votes
3 answers

Closed Form of Recursion $a_n = \frac{6}{a_{n-1}-1}$

Given that $a_0=2$ and $a_n = \frac{6}{a_{n-1}-1}$, find a closed form for $a_n$. I tried listing out the first few values of $a_n: 2, 6, 6/5, 30, 6/29$, but no pattern came out.
3
votes
5 answers

Solve $ x_{n+1} - x_n = 2n + 3$

Solve $$ x_{n+1} - x_n = 2n + 3, x_0 = 1, n \ge 0$$ I would try to find a homogen solution and used $$ r^2 - r = 0$$ and got $$x^h_n = A1^n$$ but this seems wrong and I'm stuck on how to continue. === Edit === Homogen solution: $r^2 - r = 0 $ has…
iveqy
  • 1,327
3
votes
2 answers

The sequence $(a_0,a_1,a_2,\cdots,)$ satisfies $ a_{n+1}=a_n+2a_{n−1}$. What is $a_5$?

Assume that the sequence $(a_0,a_1,a_2,\cdots,)$ satisfies the recurrence $\displaystyle a_{n+1}=a_n+2a_{n−1}$. We know that $a_0=4$ and $a_2=13$. What is $a_5$? I got $a_1=5, a_3=23, a_4=49, a_5=95$
3
votes
5 answers

recurrence relation, linear, second order, homogeneous, constant coefficients, generating functions

How to solve this by using the generating functions? What is the possible solution for this? recurrence relation $$ a_n = 5a_{n-1} – 6a_{n-2}, n \ge 2,\text{ given }a_0 = 1, a_1 = 4.$$ Thanks.
3
votes
3 answers

Why, intuitively, does the solution to a general linear recurrence relation make sense?

I reasoned through the solution to a differential equation, and $e^{\alpha x}$, for better or worse, seems to make sense. Each derivative sending the function to itself seems to suggest $e^{\alpha x}$. Why does the solution to recurrence relations,…
user82004
3
votes
2 answers

Recurrence Master Theorem Question with asymptotic Upper and Lower Bounds

If I were to solve the recurrence of following equation and give asymptotic upper and lower bounds: $$T(n) = 4T(\frac{n}{2}) + n^2 + n$$ Can I apply Master Theorem on this? My attempt was following: Then, $f(n) = n^2 + n$ $c = 2$ so it has…
user156407
  • 43
  • 1
  • 5
3
votes
1 answer

Help finding the closed formula for a recurrent relation

In the last steps of finding the complete solution of a linear differential equation by a power series, I got stuck on finding the closed formula for the following recurrent relation: $$B_n = B_{n-1} \times {2n-5\over 2n^2 - n}$$ Can you please…
lvella
  • 715
3
votes
1 answer

Solving a recurrence relation ${}$

I feel I'm wasting my time trying to solve this $a_0$ is given $\displaystyle a_{n+1}=\frac{n-1}{n+2}(a_n-n-2)$ Mathematica found a closed form but there's a problem when evaluating for $n=0$ $\displaystyle-\frac{30 C-n^5+5 n^3-4 n}{5 n-5…
Gabriel Romon
  • 35,428
  • 5
  • 65
  • 157