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

Question about Rolle's theorem

Suppose $f(x)$ is continuous on a closed interval $[a,b]$ and differentiable on the open interval $(a,b)$. I would like to prove the existence of $c$ such that $$ (c-a)\cdot(b-c)\cdot\ f'(c) = (2c-a-b)\cdot\ f(c) $$ and $a
0
votes
2 answers

Recurrence equation to solve

Given $$x_k=(I-aP)x_{k-1}-aq$$ I need to prove that it is equal to $$x_k=(I-aP)x_0-kaq$$
0
votes
1 answer

Solve by recurrence tree: $T(n)=T(n-1)+n$

How is the recurrence tree for this relation? The complexity of this relation is $n^2$ but can anyone explain how is it so?
0
votes
1 answer

Finding a recurrence relation for words with a specific alphabet and conditions

Let $x_n$ be the number of words length n where the alphabet is made up of 1, 2, 3, 4 and there are always an odd number of 2's(for example, $x_1$ = 1 because there is only one word of length 1 with an odd number of 2's). Find a recurrence relation…
0
votes
0 answers

General term for a nonlinear recurrence relation

I'd like to know the general term of the following recurrence $$a_{n+1}=a_n + \frac{\alpha}{a_n}, $$ where $\alpha>0$ and $a_0=M>0$. That is, ideally I'd like to find the function $g$ such that $a_n = g(n;\alpha,M)$. Any idea? Many thanks !
Luke
  • 141
0
votes
1 answer

How to solve a recurrence relation given an observed pattern

So I have the below recurrence relation. If you write out some terms you get the following a(0) = 2 a(1) = 13 a(2) = 57 a(3) = 233 a(4) = 937 the delta values are as follows a(0-1) = 11 a(1-2) = 44 a(2-3) = 176 a(3-4) = 704 Simple algebra tells…
Legion Daeth
  • 265
  • 3
  • 4
  • 15
0
votes
0 answers

How to find a particular element from the three-level recurrence relation?

I have the following recurrence relation (where $n$ is an integer greater than $0$): $$\begin{array}{*{20}{l}} \begin{array}{l} {x_0} = \frac{1}{2},\\ {x_1} = \frac{3}{2},\\ {x_2} = \frac{1}{2}, \end{array}\\ {{x_{3n}} = \frac{1}{2}\cdot{x_{3n -…
0
votes
1 answer

A recursive function

A recursive function is defined as follows- $$f(1) = n-1 \\ f(i) = min\{f(i-1) + m), n\} - i$$ For what $i$, $f(i) \leq 0$? Example: $n = 5, m = 2$ then - $f(1) = n-1 = 4 \\ f(2) = min(4+2,5)-2 = 5-2 = 3 \\ f(3) = min(3 + 2,5) -3 = 2 \\…
Rezwan Arefin
  • 3,106
  • 1
  • 14
  • 39
0
votes
1 answer

How to solve recurrence relation when it is equal to a non-zero constant?

My Initial Question : I understand how to solve a recurrence relation like such: $t(n) = t(n-1) + t(n-2)$. I would turn it into: $t(n) - t(n-1) - t(n-2) = 0$, then $r^2 - r - 1 = 0$, then you solve for roots and such. But what do I do if the…
Gharrot
  • 11
0
votes
1 answer

linear homogeneous recurrences: $r$ is a solution if and only if $r^n$ is a solution

I am studying recurrence relations from the following slides. If you go to slide number 12. They state the following proposition: $r$ is a solution of $r^k - c_1r^{k-1} - c_2r^{k-2} - \cdots - c_k = 0$ if and only if $r^n$ is a solution of $a_n =…
Hani Gotc
  • 159
0
votes
1 answer

Second order recurrence with two boundaries

I am dealing with the following set of equations: $\alpha w(i) ~= ~a w(i-1)+bw(i+1),~i=1,2,\ldots,B-1$ and $w(0) = 1,~w(1)= \frac{\alpha-a}{b}w(0),~\alpha w(B)=w(B-1)\left(\frac{a}{1-b}\right)$, which needs to be solved for $B+2$ unknowns…
rajat kum
  • 1
  • 1
0
votes
1 answer

Sequence formula for a recurrence relationship

Fix positive a, b, c. Define a sequence of real numbers by $x_0 = a$, $x_1 = b$ and $x_{n+1} = cx_nx_{n-1}$. Find formula for $x_n$.
naseefo
  • 147
0
votes
1 answer

general form of difference equation

The general form of diff equation for an LTi system is : $$ y(n) = - \sum_{k=1}^N a_k \cdot y(n-k) + \sum_{k=0}^M b_k \cdot x(n-k) $$ My questions are: 1) why is the first term negative ? 2) why limits of $k$ are from $1$ to $N$ and not $0$ to $N$…
shalakha
0
votes
1 answer

Solving linear recurrence with a single variable coefficient

I'm trying to solve a recurrence that looks like: $$c_n x_n = x_{n-1} + \cdots + x_1$$ This looks simple, but the $c_n$ coefficient seems to make typical approaches to linear recurrences inapplicable. Is there a general approach that can be used…
0
votes
1 answer

Recurrence relation for the number of ternary strings of length $ n$ with an even number of $0'$s

Recurrence relation for the number of ternary strings of length $ n$ with an even number of $0'$s My try: Case 1: We have an $n $ digit sequence with an even number of $0$'s and an even number of $1'$s. Case 2: We have an even number of $0$'s, but…
MatheMagic
  • 2,386