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

How to solve this difference equation?

Find $ a(n) $ in function of n, $ n\geq 2 $ where $$ a(2n+1)=(2n+1)a(n+1) $$ $$ a(2n)=2a(n), $$ and $ a(2)=1, $ $ a(3)=1. $ I have showed that $ a(n)=\frac{na(n+1)a(2n)}{a(2n+1)-a(n+1)} $, but it seems it doesn't help much, can anyone help me with…
neo
  • 21
2
votes
0 answers

How to solve $a_{n+1}=a_n+\frac{1}{a_n}$

I know that the limit doesn't exist, using Fixed Point Iteration Method and some appropriate inequalities. I can't think of any way to find the explicit form for $a_n$ from the following recurrence relation. $$a_{n+1}=a_n+\frac{1}{a_n}$$ (If this…
2
votes
3 answers

Characteristic equation of a recurrence relation?

I am trying to find the general term of the following recurrence relation: $$a_{n + 1} = \frac{1}{2}(a_{n} + \frac{1}{a_{n}})$$ where $a_1 = 3$. I'm failing to write the characteristic equation.
Ziezi
  • 631
2
votes
1 answer

solving second-order linear difference equation

I am having trouble solving: $$a\frac{x_{n-1}}{n-1}-\frac{x_{n}}{n}+(1-a)\frac{x_{n+1}}{n+1}=0$$ So far I have tried eliminating the n-1,n,n+1 terms by multiplying them out but that doesn't feel right. Intuitively I think the solution would be to…
Pk.yd
  • 245
2
votes
1 answer

A condition for when $(a_n+b_n\Delta)(c_n+d_n\Delta)y_n = (c_n+d_n\Delta)(a_n+b_n\Delta)y_n$.

The biconditional is $(a_n+b_n\Delta)(c_n+d_n\Delta)y_n = (c_n+d_n\Delta)(a_n+b_n\Delta)y_n$ iff $d_n/b_n = \Delta c_n / \Delta a_n = A$, where $A$ is a constant. I showed the if part, but I am finding it difficult to prove the only if part; I got…
2
votes
1 answer

Closed form for Fibonacci-like recurrence with $\frac{2}{n}$ coefficient

I came across the following recurrence relation, and was wondering if there might be some way to get a closed form: $F\left(0\right)=0$ $F\left(1\right)=1$ $F\left(n\right)=F\left(n-1\right)+\left(\frac{2}{n}\right)F\left(n-2\right)$
2
votes
1 answer

If $2a_{n+2} \le a_{n+1}+a_n$, then $\lim \sup a_n \le \frac23 a_2 + \frac13 a_1$

This is a reformulation of a deleted question: If $a_1 > 0$ and $a_2 > 0$ and $2a_{n+2} \le a_{n+1}+a_n$, show that $\lim \sup a_n \le \frac23 a_2 + \frac13 a_1$. My proof involves showing that $a_{n+2} \le u_{n} a_{n+1} + (1-u_n)a_n $ where $u_n…
marty cohen
  • 107,799
2
votes
3 answers

Trying to solve non-homogeneous linear recurrence relation with difficult non-homogeneous part

I have the following recurrence relation that I'm trying to solve: $$f(n)=2f(n-1)-f(n-2)-2$$ The homogeneous part is easy: The characteristic polynomial $r^2-2r+r=0$ has root $r=1$ with multiplicity 2, so the general solution is: $$f(n)=An+B$$ for…
2
votes
1 answer

First-Order Linear Difference Equation with Constraint

Consider the following first order linear difference equation for $y$: $$y_{t+1} = \alpha * y_{t} + \beta * x_{t-n+1} ~~\forall t \ge n$$ For initial conditions, one could assume that $x_{i} \in \mathbb{R} ~~\forall t = 1, \ldots n$. (except that…
mark leeds
  • 1,514
2
votes
2 answers

solution to the recurrence relation $a_n=\frac{n}{a_{n-1}}$

Is there a recurrence solution to $a_n=\frac{n}{a_{n-1}}$? I'm wondering if it could be done in the form of an alternating series partial to $n$ or as a trigonometric function.
tyobrien
  • 3,469
2
votes
3 answers

General Solution and Particular Solution of Recurrence Equation

I am given: $S_{n+2} = S_{n+1}+S_{n} + {2}$ for $\forall n \in N$ My question is how do I find the general solution of the recurrence equation. And the particular solution where $S_0=1$ and $S_1 = 5 $?
2
votes
2 answers

Finding a general form $d_n$ for a recurrence relation

I have the following recurrence relation $$d_n = 2^{(1-2n)/2}d_{n-1},\qquad d_0=1,$$ for $n\in\mathbb{Z}$. Is it possible to find a general form for $n$? After calculating a few numbers around zero I have $$d_0 = 2^{1/2}d_{-1}$$ $$d_1 =…
user2850514
  • 3,689
2
votes
1 answer

Solution to a 2D recurrence equation

I am seeking an explicit solution to this 2D recurrence equation: \begin{eqnarray} f(0,b) & = & b\\ f(a,0) & = & a\\ f(a,b) & = & f(a-1,b) - f(a,b-1) \end{eqnarray} So, for example, for $a=3$, $$f(3,0)=3 \;,$$ $$f(3,1)=f(2,1)-f(3,0)=-2-3=-5…
2
votes
5 answers

Solving the recurrence $t(n)=(t(n-1))^2 + 1$

I am trying to solve the following recurrence relation: \begin{align*} t(1) & = 1, \\ t(n) & =(t(n-1))^2 + 1. \end{align*} I need to prove that $t(n)= k^{2^{n}}$ for some constant $k$. What is the value of $k$? How would I go about doing it? thanks
oscar
  • 51
2
votes
0 answers

Recurrence Relations

Base Case: T(1) = 0; T(n) = 1 + T(N/2) plug = 1 + 1(1 + T(N/4)) chug = 2 + T(N/4) plug = 2 + 1 (1 + T(N/8)) chug = 3 + T(N/8) plug = 3 + 1 (1 + T(N/16)) chug = 4 +…