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

a limit of recurrence relation

I have and the following recurrence relaation: , I need to solve I found that this string is increasing and I tried to find z and w from general form I tried to factorize xn but I didn't get too far.
Vali RO
  • 125
1
vote
0 answers

Solving inhomogeneous second-order linear difference equation

In general, how does one solve an inhomogeneous second-order linear difference equation of the form $$ a f(n+1) + b f(n) + c f(n-1) = d(n) $$ where $a, b, c$ are constants but $d(n)$ may also depend on $n$? For instance, consider as in here: $ 2…
p-value
  • 474
1
vote
2 answers

Reduce the 2nd order difference equation to 1st order

I have the following 2nd order difference equation. $\alpha X_{t+1}-X_{t+2} = \beta\alpha \left(\alpha X_{t}-X_{t+1}\right)$ Clearly, one solution is the process of $\alpha X_{t}=X_{t+1}$. However, there is another solution which is…
1
vote
0 answers

Is a closed form expression for this recurrence relation possible?

Consider the relation $$t_{n}=t+t_{n-1}+\sqrt{(t+t_{n-1})^{2}+t^{2}}, n>1$$ with $t_{1}=(1+\sqrt{2})t$. Is it possible to get a closed form expression for this relation? I found that $$t_{2}=\left(2+\sqrt{2}+\sqrt{7+4\sqrt{2}}\right)t$$ but after…
JennyToy
  • 385
1
vote
4 answers

Recurrence relation/with limit

Let $F_{n+1}=F_{n-1}+F_{n-2}$ for $n \in \mathbb{N}$ with $n \geq 2$ $F_0:=0$ and $F_1:=1$. How to compute $\lim\limits_{n\to\infty}\frac{F_{n-1}}{F_{n+1}}$? I tried to use Binet's…
Nekarts
  • 53
1
vote
2 answers

Solving a nonhomogeneous recurrence relation?

I was asked to find a first order linear recurrence relation for $$ a_n=3n^2-2n+1 $$ Here is what I did \begin{align}\label{1} a_{n-1} &= 3(n-1)^2-2(n-1)+1\\ &=3(n^2-2n+1)-2n+2+1\\ &=\underbrace{3n^2-2n+1}_{a_n}-6n+5\\ &=a_n-6n+5 \end{align} Thus,…
marya
  • 745
1
vote
1 answer

Predictions for recurrence relations

Given the recurrence relation $a_n = 2a_{n-1} + a_{n-2}$ $a_0 = 1$ and $a_1=1$ Is it true that $a_n < 6a_{n-2}$ for all $n\ge4$ I'm not really sure how to go about solving this problem. I've tried to replace $a_n$ in the inequality and solve and…
1
vote
0 answers

Am I on the right path solving this problem from 11 n-bits?

So the problem is to find how many 11-bit strings will have no consecutive three zeroes. I have used recurrence to solve this problem. I set $T(n)$ to be the number of strings of size n that there will be no consecutive three zeroes. If the firsst…
1
vote
0 answers

How to find the recurrence relation for the following?

A coding system encodes messages using strings of base 7 digits. A codeword is considered valid if and only if it contains an even number of 6s. i. Find a recurrence relation for the number of valid codewords of length n. State initial conditions.…
Eliza Q
  • 31
1
vote
1 answer

finding recurrence relations

This is homework, please only provide hints. I've been given a problem: consider a 1-by-n chessboard. Coloring each square with one of two colors, red or blue. Let $a_n$ be the number of colorings in which no two squares that are red are adjacent.…
intervade
  • 441
1
vote
1 answer

Recurrence Relations Telescoping Method Last Step Clarification

For whatever reason I'm having a really hard time figuring out the last step of the telescoping method when it comes to solving recurrence relations. Any help will be greatly appreciated. So, for example, say T(1) = 1 and T(n) = T(n-1) + 2(n) -…
1
vote
1 answer

A closed solution for $f^2[n]=1+nf[n+1]$

I attempted to solve $\sqrt{1+\sqrt{1+2\sqrt{1+3\sqrt{\cdots}}}}$ but it leads me to a recursive form $f^2[n]=1+nf[n+1]$. Is there a closed solution for this difference equation?
Display Name
  • 2,715
1
vote
1 answer

Bounding a 'Complicated' Recurrence

I've been trying to solve the following problem: Consider the following recurrence: $$ \begin{cases} M(0)=1\\ M(1)=1\\ M(n)=\min_{0\leq k\leq n-1}\{M(k)+M(n-k-1)\}+n \text{, if } n\geq 2 \end{cases} $$ Show that $M(n)\geq…
1
vote
2 answers

Solving a recurrence formula

I'm trying to find a simpler form for $\sum_{i=0}^{n} 2^x$ this is what I have so far: $\sum_{i=0}^{n} 2^i = 1 +2(1+2(1+... + 2(1 + 2)))$ And from this I got the following recurrence formula $x_n=1+2x_{n-1} => x_n-2x_{x-1}-1=0$. Now I'm assuming…
oren revenge
  • 566
  • 4
  • 13
1
vote
2 answers

Did I correctly derive this recurrence equation formula

I started with the recurrence equation $\space\space x_{n+1}=ax_n+b \space \space$ and turned it into the formula at the bottom to allow us to find the value of any nth term in the form $\space \space x_n=f(n)$ Here is how I derived my formula for…