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

SMO 2004 Question 21

Let $\frac{1}{a_1}$, $\frac{1}{a_2}$, $\frac{1}{a_3}$.... be a sequence of positive numbers defined by: $$a_1=1, a_{n+1}=a_n+\frac{1}{a_n}$$ Find the integer part of $a_{100}$. This question was given in the Singapore Mathematics Olympiad in 2004…
Hector Lombard
  • 649
  • 3
  • 11
4
votes
2 answers

We define a sequence of rational numbers {$a_n$} by putting $a_1=3$ and $a_{n+1}=4-\frac{2}{a_n}$ for all natural numbers. Put $\alpha = 2 + \sqrt{2}$

We define a sequence of rational numbers {$a_n$} by putting $a_1=3$ and $a_{n+1}=4-\frac{2}{a_n}$ for all $n \in \mathbb N$. Put $\alpha = 2 + \sqrt{2}$ (a) Prove by induction on n, that $3 \le a_n \lt 4$ for all $n \in \mathbb N$. (b) Show that…
4
votes
3 answers

Maximum based recursive function definition

Does a function other than 0 that satisfies the following definition exist? $$ f(x) = \max_{0<\xi
4
votes
2 answers

Solving the recurrence relation $T(n)=2T(n/4)+\sqrt{n}$

I've solved $T(n)=2T(n/4)+\sqrt{n}$ to equal $2^{\log_{4}n}(\log_{4}n+1)$, but I'm not sure how to solve it directly. I have: $2(2T(\frac{n}{16})+\sqrt{\frac{n}{4}})+\sqrt{n} =…
mirai
  • 335
4
votes
2 answers

Solution to a second order recurrence relation with non constant coefficient

I have the following equation: $(aq^n+b+s)C_n(s)=aq^nC_{n+1}(s)+bC_{n-1}(s)$ , for $n\geq1$. $C_0(s)=1$ , and for all $s\geq 0$ we have $0\leq C_n(s)\leq1$. $a>0$, $b>0$, $0\leq q\leq1$. In fact, $C_n(s)$ is a Laplace Transform of a non-negative…
Stan
  • 41
4
votes
2 answers

A partial recurrence equation

What is the closed form solution to the following partial recurrence relation? $$ q(n,m) = \frac{q(n-1,m-1)}{n} - q(n-1,m) $$ where $q(0,m)=0$ for all $m > 0$ and $q(n,0) = (-1)^n$ for all $n \geq 0$. We make the assumption that $q(n,m) = 0$ if any…
4
votes
1 answer

Find $x_{2014}$ in the recurrence $x_{2n+1}=4x_n+2n+2$ and $x_{3n+2}=3x_{n+1} + 6x_{n}$

Given: $x_{2n+1}=4x_n+2n+2$ and $x_{3n+2}=3x_{n+1} + 6x_{n}$ for all $n\in\mathbb{N}$. Prove that: $x_{3n+1}=x_{n+2}-2x_{n+1}+10x_{n}$ and hence find $x_{2014}$ I am constantly failing to eliminate $n$ to get $x_{3n+1}$ in the desired form.
4
votes
3 answers

Set up difference equation for the following recurrence.

I have the following recurrence: $t=0: 0$ $t=1: 0$ $t=2: 1$ $t=3: \beta+\alpha$ $t=4: (\beta+\alpha)\alpha+\beta^2$ $t=5: ((\beta+\alpha)\alpha+\beta^2)\alpha+\beta^3$ ... I was hoping to do something like: $x_{t+1}=x_{t}f_{t}+g_{t}$ with …
BLaursen
  • 363
4
votes
0 answers

Is this recurrence relation solvable?

Consider the following recurrence relation: \begin{equation} \gamma C_{m,n}+n\alpha C_{n,m}+ \beta \{C_{n+1,m}+ n C_{n-1,m}\}=EC_{n,m} \end{equation} where $\gamma, \alpha$ and $\beta$ are constants. The question is to find $C_{n,m}$ and $E$. If…
Ben
  • 561
4
votes
1 answer

Master Theorem for solving recurrences question

Who can explain to me why $$T (n) = 4T (n/2) + n/ \log n \Longrightarrow T (n) = Θ(n^2) \tag{Case 1}$$ But for $$T (n) = 2T (n/2) + n/ \log n$$ ⇒ Master Theorem does not apply (non-polynomial difference between $f(n) = n^{\log_ba}$)
YohanRoth
  • 1,437
4
votes
2 answers

Solving a Recurrence Relation with a Square Root term

I've been trying to learn how to solve some recurrence relations lately and I have no idea how I would go about solving something like this, if possible. $T(n) = a \cdot T(n-1) + b \cdot \sqrt{T(n-1)}$ My main problem is that I have no idea how to…
4
votes
2 answers

How to approach 2-Dimensional Recurrence Relations

How to solve the following 2-dimensional recurrence relation? Let $n, n'$ be natural numbers $> 0.$ Let $r$ be a positive integer $\ge 0.$ $$ P(n+n',r) = \sum_{i=0}^{r} P(n, i)*P(n', r-i) $$ where the base case is $$ P(1, r) = 1, \quad P(n,…
4
votes
2 answers

How to prove the characteristic equation based solution of recurrence relations?

What is the proof for / where might I find the proof to: Let $c_1, c_2,..., c_k$ be real numbers. Suppose that the characteristic equation $$r^k-c_1 r^{k-1}-...-c_k=0$$ has $k$ distinct roots $r_1, r_2,..., r_k$. Then a sequence $\{a_n\}$ is a…
4
votes
2 answers

Closed form or upper bound of $g(i)$ solving $g(i+1) = g(i) + (1-g(i))g(i)^2$

I have the following recurrence relation : $$g(0) = c $$ $$g(i+1) = g(i) + (1-g(i))*g(i)^{2}$$ where $0 < c < 1$. Is there any closed form for this relation? If not can you give me an upper bound on $g(n)$?
Kostas
  • 143
  • 5
4
votes
2 answers

Help on a rational recursive relation: $T[n+1]=\frac{E[n+1](D+T[n])}{E[n+1]+D+T[n]}$

I am trying to solve this rational recursive relation: $$T[n+1]=\frac{E[n+1](D+T[n])}{E[n+1]+D+T[n]}$$ where $T[1]=\frac{E[1]*D}{E[1]+D}$ for constant $D>0$ and $E[n]>0$. When $E[n]$ is replaced by a constant $E$ (independent of $n$), Wolfram…
M.B.M.
  • 5,406