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

recurrence bank equation

A bank pays 6% interest compounded annually on its passbook savings accounts. Suppose that you deposit $800 in one of these accounts and make no further deposits or withdrawals. Write a recurrence relation and initial conditions for b(sub)n, the…
Jared Y
  • 65
1
vote
2 answers

Find the limit of the sequence given by $a_{n+1}=3-\frac{1}{a_n}$ with $a_1=1$

The answer book tells me it's $\frac{1}2(3+\sqrt 5)$ but I have no idea how to come up with this answer.
1
vote
2 answers

Solve $a_n - 4a_{n-1} + 4a_{n-2} = 2^n$

Solve $a_n - 4a_{n-1} + 4a_{n-2} = 2^n$ given that $a_0 = 0$, and $a_1 = 3$ My Attempt: Get the characteristic equation and solve it. For homogeneous equation $x^2 -4x + 4 = 0$ $x = 2 $ or $ x = 2$ Hence, $a_n^h = (A+Bn)\cdot2^n $ Guess a…
RStyle
  • 607
1
vote
1 answer

Stability of fixed points of $u_{n+1}=\frac15\left(4u_n+\frac3{u_n}-2\right)$

Are the fixed points of $$u_{n+1}=\frac15\left(4u_n+\frac3{u_n}-2\right)$$ where $n\in\Bbb N$, stable? My friend and I are disagreeing but I haven't seen his work. I have obtained that the two fixed points are stable and my friend got one…
Desmoz
  • 362
1
vote
2 answers

Proving convergence of a recurcive sequence $a_{n+1}=\ln(a_{n}+2)$.

Suppose we have a sequence defined by $a_{n+1}=\ln(a_{n}+2)$. We want to prove that for every $a_{0}>0$, the sequence converges to the same $g\in\mathbb{R}$. This is where I got so far: Let's define a function $f:[0,+\infty)\to\mathbb{R}$,…
1
vote
1 answer

Particular solution of a recurrence relation

I would like to find the particular solution the following recurrence relation. $$a_{n}-a_{n-1} = 2(n-1), a_0 = 2$$ By inspection, we would try with $a_n^{(p)} = Bn+C$. When substituting this in the recurrence relation we get $$Bn+C =…
Kumara
  • 706
1
vote
2 answers

General term of recurrence relation

Find the general term of the following recurrence relation: $$a_{1} = 2$$ $$a_{n+1} = \frac{2a_{n} - 1}{3}$$ I've tried to find the first few terms: $$a_{1} = 2$$ $$a_{2} = \frac{2 \cdot 2 - 1}{3} = 1$$ $$a_{3} = \frac{2 \cdot 1 - 1}{3} =…
Ziezi
  • 631
1
vote
2 answers

solving inhomogeneous recurrence relation

I had encountered an inhomgeneous equation of the type : $$f(n)=h(f(n))+g(n)$$ below is the equation. $$f(n)=\begin{cases} f(n-1)+2^{(n-1)/2},&\text{if }n\text{ is odd}\\\\ f(n-1)+2^{n/2},&\text{if }n\text{ is even}\;. \end{cases}$$ I read various…
1
vote
2 answers

Help in solving a recurrence relation

While trying to solve an enumerative combinatorics problem, I reduced the problem to solving the following recurrence relation for $n\geq 2$: $$x_{n+2}=x_{n+1}+n.x_{n}$$ for all $n\geq 2$, given that $x_2 = x_3=1$. I wanted to know if it is possible…
MathManiac
  • 1,221
1
vote
2 answers

Solve recurrence relation $a(n) = -a(n - 2) + \cos({n} \cdot {\frac{\pi}{2}})$

Given recurrence equation $$a(n) = -a(n - 2) + \cos({n} \cdot {\frac{\pi}{2}})$$ find the closed form solution. Here is my attempt. First solve the homogeneous equation: $$a^{(0)}(n) = -a^{(0)}(n - 2)$$ My solution is: $$a^{(0)}(n) = k_1 \cos({n}…
1
vote
2 answers

How to solve this recurrence $T(n) = \log{n}*T(n/\log{n})+\sqrt{n}$

I tried substitution for $2^n$ or $2^{\log{n}}$ or even $2^{2^n}$ and it didn't work. Thanks! :)
guyml
  • 11
1
vote
5 answers

Solving $a_n = a_{n-1} + 7n$ for $n\ge1$ and $a_0 = 4$

First, I found the homogeneous solution: $$r^n - r^{n-1} = 0$$ $$\Rightarrow r = 1$$ So the homogeneous solution is of the form: $$c(1)^n = c$$ Then, to find a particular solution, I "guessed" the form $An+B$, then plug it into the equation: $$An+B…
Tony Tarng
  • 481
  • 6
  • 18
1
vote
1 answer

Solving linear recurrence after finding values via Quadratic Equation

My HW asks me to solve the following Linear Recurrence: $f(0) = 3 $ $f(1) = 1$ $f(n) = 4f(n − 1) + 21f(n − 2)$ Unfortunately my professor ran through the concept of Linear Recurrence rather quickly so I'm stuck. But this is what I've done so…
Chris T
  • 813
1
vote
0 answers

Closed form expression for a two variable recursive relation

Let $F(m,n)$ be defined recursively for non-negative integers $m$ and $n$ according to the following rules: $F(0,n) = 0$ for all $n$, $F(m,n) = F(n,m)$ for all $m$ and $n$, and if $n\ge m$, then $F(m,n) = F(m,n-m) + \lfloor (m-1)^2/4\rfloor$. What…
Adam Lowrance
  • 3,428
  • 1
  • 15
  • 19
1
vote
2 answers

Can one solve a recurrence that contains a function?

I'd like to solve a recurrence, so I've been reading about solving recurrences, and all the ones I've seen solved involve only previous terms of the recurrence, and constants. My recurrence is $$t(n) = \frac{t(n-1)(1-\ln(n-1))}{\ln n}$$ and if I…
Annick
  • 563