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

Find closed form of T(n) = 2T(n-1)-T(n-2) +1 by repeated substitution

Let T(1)=a, T(2)=b, and T(n) = 2T(n-1)-T(n-2)+1, for n>2 I'm trying to find the closed form of T(n) by repeated substitution and guess a closed form substitution. Then I got $f(n) = 2f(n-1) - f(n-2) +1$ $=2[2f(n-1-1) -…
user533661
0
votes
2 answers

$a_{n+1} = \frac{1}{2}(a_n)^2 - 2a_n +4$

$a_{n+1} = \frac{1}{2}(a_n)^2 - 2a_n +4$ How to find a solution to this nonlinear equation? I've heard that if we have $a_{n+1} = S(a_n)$ then there should be a function $f$ such that $Cf(S(a_n))=f(a_n) \frac{dS}{da_n} $ but is that really the only…
0
votes
1 answer

Trying to solve the following recurrence relation.

I have been trying to solve the following recurrence relation: $a_{n+2}=4a_{n+1}-4a_n+n^2-5n+2$. I already figured out that the general solution should be $c_12^n+c_2n2^n$ because the root 2 has multiplicity 2. But I'm having hard time finding the…
Ben
  • 1
0
votes
1 answer

how to solve nonhomogeneous recurrence relation??

How to solve non homogeneous recurrence relation for a given one like in the photo $a_n = a_{n-1} + 2a_{n-2} + 2^n$ and $a_0 = 1; a_1 = 1$ ; n >= 2 If someone could help me with a kind of formula or something similar , cause I am new are really…
Le MU
  • 3
  • 2
0
votes
0 answers

Recurrence with Two Variables

I am trying to solve this recurrence relation $$ f(a,b)=cf(\lceil\frac{a}{c}\rceil,b)+cf(a,b-1). $$ The base cases are $f(a,2)=a$, $f(1, b)=1$, $c\geq{2}$, and $a, b, c\in{\mathbb{Z}^+}$. I tried to expand this relation, but I am confused about the…
Snjór
  • 73
0
votes
1 answer

Recurrence relation given by a polynomial

Consider non-homogeneous, first order, nonlinear recurrence $$a(n+1)=P(a(n)),$$ where $P$ is a given polynomial. Are there any general solutions to such a problem? How about generalization to exponential polynomials?
0
votes
2 answers

Confusion with sequences

I am having some problem solving sequences in the form $x_k$, I have some notes about it however they skip over a lot of steps and I was hoping someone could help me clarify them! Basically I start with the sequence: $$x_{k+1}-4x_k+3x_{k-1}=0$$ Then…
user635953
0
votes
1 answer

Solving a simple recurrance relation

Question: Solve the following recurrance relation: $\ a_n = 3a_{n-1} $ $\ a_1 = 4 $ But for the life of me, I can't understand why the answer is $\ 3^{n-1}a_1 $ My workings so far... $\ a_n = 3a_{n-1} $ $\ = 9a_{n-2} = 3^2a_{n-2} $ $\ =…
terahertz
  • 279
0
votes
1 answer

Finding a closed form recurrence relation

I am trying to find a closed form for S(n), where $$ S(n) = \begin{cases} 1 & n = 0\\ (S(n-1))^2 + 2(n-1) & n>0 \end{cases} $$ How can I go about solving this with repeated substitution? When I try the substitution technique, I don’t see any…
0
votes
1 answer

Help with this recurrence

$$ T(n) = \begin{cases} 6, & n=0 \\ 9T(n-2)+n, & n>0 \end{cases} $$ I don't know how to resolve this.....Can you tell me how can I solve it?
0
votes
1 answer

How to find a particular solution for $a_{n}-a_{n-1}-6a_{n-2}=5\times3^n$

I tried $a_{n} = c \times 3^n$ and I got $c = 3$. So $a_{n} = 3 \times 3^n$ is a particular solution. But it is a solution in the homogeneous form already. How to find another solution that's not a homogeneous solution?
0
votes
1 answer

Find the recurrence relation a(n) = a(n−1) + n with a(0) = 0

enter preformatted text here find the recurrence relation. a(n)=a(n−1)+n with a(0)=0 Do I have to make a replace? Can someone help with initial steps? Thanks. Do like…
0
votes
3 answers

Find all solutions of the recurrence relation $a_n = 2a_{n−1} + 2n^2$

The associated homogeneous recurrence relation is $a_n = 2a_{n−1}$. The characteristic equation is $r − 2 = 0$. Since our characteristic root is $r = 2$, we know by Theorem 3 that $a_n = α_{2}^n$ Note that $F(n) = 2n^2$ so we know by Theorem 6…
0
votes
1 answer

Solving the recurrence with $a_0 = 0$ and $a_n = \left(\frac{n-2}{n}\right)a_{n-1} + 2$

Can anyone here help me to solve this recurrence relation? $$a_0 = 0,\quad a_n = \left(\frac{n-2}{n}\right)a_{n-1} + 2, \quad n > 0$$ I've tried lots of ways to solve it, unsuccessfully. Thanks in advance.
0
votes
1 answer

Recurence function inside a double sum

Given the following function: $$ P_N = \sum_{n=1}^N (A_n + \sum_{m=0}^{n-1} P_mB_{nm}) $$ Where: $$ A_{n} = (1-\alpha)^{n+1} $$ $$ B_{nm} = (1-\beta)^{n-m} $$ And $ N \in \aleph$ Given a known $ P_0 $ I want to remove the recursion created by…
Joel
  • 1