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

How to solve the nonlinear recurrence relation $a_{n+1} = \frac{1-a_n}{3+a_n}$

I know how to solve linear recurrence relations and I'm familiar with generating functions, but I don't know any methods to solve some non-linear recurrence relations. I stumbled upon the following recurrence relation that I would like to know how…
3
votes
1 answer

Josephus Problem recurrence relation

I am going through the Josephus problem and I am not able to understand the recurrence relation. The solution says that for $2n$ people, the actual number of person in the $2n$-d round can be mapped using $$J(2n)=2\cdot J(n)-1 \qquad\rm{eq.1}$$ and…
Pharaoh
  • 233
3
votes
1 answer

Find the best constant $c < 0$ for $c a_n = a_{n-1} + 2 a_{n-2} + 3 a_{n-3} + ... + n a_0$

Let's define the following recurrence relation: $$ \begin{align} a_0 &= 1 \\ c a_n &= a_{n-1} + 2 a_{n-2} + 3 a_{n-3} + ... + n a_0 \end{align} $$ Find the best constant $c < 0, \forall n \in \mathbb{N}$ which is farest from zero such…
3
votes
2 answers

Solving the recurrence relation $T(n) = \frac{1}{n}(T(0) + T(1) + ... + T(n-1)) + 5n$

I have been trying to solve the following recurrence relation $T(n) = \frac{1}{n}(T(0) + T(1) + ... + T(n-1)) + 5n$ $T(0) = 0$ I've tried to use substitution which wasn't very useful as I couldn't figure out a way to simplify the resultant…
3
votes
2 answers

Solve the following recurrence relation

Given that $$a_{n+1}=(r+1)a_n-ra_{n-1}$$ where $r$ is a known parameter, I have to find an expression for $a_n$ knowing that $a_0=0$, $a_T=1$ (where $T$ is also a known parameter).
kubo
  • 1,918
3
votes
1 answer

Solving $x_{n+1}=\frac{a^2}{2a-x_{n}}$ using characteristic equation

I am trying to solve the rational difference equation $\displaystyle x_{n+1}=\frac{a^2}{2a-x_{n}}$ using the roots of the characteristic equation. The characteristic equation is $\displaystyle \lambda=\frac{a^2}{2a-\lambda}$, which can be rewritten…
Yuta
  • 1,493
3
votes
3 answers

How to find recurrence relation from a closed form?

I don't understand how to find recurrence relation from a sequence. Suppose I have $A(n)=n^2-n, n>0.$ How do I find the recurrence relation of this sequence?
rose
  • 276
3
votes
2 answers

Solving recurrence $T(n) = 2T(n-1) + 1$

I'm trying to solve this recurrence relation: $T(n) = 2T(n-1) + 1$, $n > 0$, $T(0) = 0$ I think I may have been able to expand it, but I'm not entirely sure if it's correct. Here's what I've done: $T(1) = 2T(0) + 1 = 2 * 0 + 1 = 1$ $T(2) = 2T(1) + 1…
3
votes
2 answers

Non-homogenous Difference Equation with $f(n) = 2^n$

I'm struggling to solve $$y_n + 5y_{n-1} - 14y_{n-2} = 2^n$$ I've solved the first part: $${y_n}^{(h)} = A(-7)^n + B(2)^n$$ But struggling solving the particular solution. I tried: $${y_n}^{(p)} = Mk^n$$ $$Mk^n + 5(Mk^{n-1}) -14(Mk^{n-2}) =…
user644361
  • 345
  • 1
  • 8
3
votes
1 answer

Guess for a non-homogenous recurrence relation

I've managed to solve the below recurrence, $a_n = a_{n-1} - b a_{n-1}^{3/2}$ for some constant $b$, with the guess, $a_n = \alpha n^{-r}$ and solving for $\alpha$ and $r$. (I'm only interested in leading-order asymptotic behaviour as in this…
tea_pea
  • 131
3
votes
3 answers

How to solve quadratic recurrence relation

How to solve recurrence relation of the following form: $U_n = a \times U_{n-1}^2 + b \times U_{n-1} + c$ where: $-1 < a < 0$ , $b = 1 - a$ , $c > 0$ Edit I found here more cases where a quadratic recurrence is solvable.
Angie
  • 162
3
votes
1 answer

Is there a general formula for recurrence relations like $ f(x+1) = \sum_{i=0}^k a_n{[f(x)]}^n $

Or in other words, polynomial relation of the function rather than the argument. I've worked out that in general $ f(x+1)={f(x)}^n $ implies $$f(x) = C^{n^x} $$ for some C, but I would like to know if there's a general form for more complicated…
3
votes
2 answers

Systems of recurrence relations

This is homework, please only provide hints! I have a question: Given a 1-by-n board, let $a_{n}$ denote the number of ways to color the board with red, blue, white and green where that the number of red squares is even, and the number of white…
intervade
  • 441
3
votes
3 answers

When is a linear recurrence relation solvable?

I was reading this definition of a linear recurrence, and was wondering what characteristics are required of a linear recurrence for it to be solvable? Meaning, can I find a closed form? The subject of solving linear recurrence relations was just…
3
votes
2 answers

If $x\in \mathbb{R}$ such $|1-|2-|3-|4-\cdots-|2011-x|\cdots||||=x$

Let $x\in \mathbb{R}$, and such $$|1-|2-|3-|4-\cdots-|2011-x|\cdots||||=x$$ find the maximum of the $x$ I have try $f(x)=|1-|2-|3-|4-\cdots-|2011-x|\cdots||||$,I have find $$f(0)=0,f(1)=1,f(2)=0$$
math110
  • 93,304