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

Difference equation: when to use iteration and when the general method?

This question may sound weird. I'm attending a course of growth economics and our professor taught us some simple rules about difference equations. He taught us two different methods, but didn't tell us when to use the first one and when to use the…
Luigi
  • 305
  • 1
  • 3
  • 14
0
votes
2 answers

System of recurrences

I want to solve the following recurrences…
EQJ
  • 4,369
0
votes
1 answer

Is there explicit formulas for this two sequences?

I know that $C(1) = P(1) = 1$ and also I have : $$ \begin{cases} C(n) = n P(n - 1) + n(n-1) C(n-1) \\ P(n) = n P(n - 1) + \dfrac{n(n-1)}{2} C(n - 1) \end{cases} $$ Can you tell me if there is any chance to find an explicit formula for $C(n)$…
projetmbc
  • 778
  • 7
  • 14
0
votes
2 answers

Closed form $T_n=\frac{1}{4-T_{n-1}}$ for $T_0=0$

I already showed how to solve the following recurrence? $t(n)=[4-t(n-1)]^{-1}$ that for $T_0 \neq 0$ or $T_k \neq 0$ we have, $$T_{n}=\frac{c_1(2+\sqrt{3})^{n-1}+c_2(2-\sqrt{3})^{n-1}}{c_1(2+\sqrt{3})^n+c_2(2-\sqrt{3})^n}$$ But this does not work…
0
votes
1 answer

Fixed points of an iterated system

For $x_{n+1} = f(x_n)$ [1] and $z_{n+1} = f(f(z_n))$ [2] Show that all fixed points of [1] are also fixed points of [2]. If the converse is true, describe what some fixed points of [2] are in terms of [1]. I think I understand how to show that…
Joshua
  • 1
0
votes
1 answer

Solving a recurrence: $\frac{1}{a_{n}}=\frac{1}{a_{n-1}}+\frac{1}{a_{n+1}}$

As in the title, solve such recurrence: $$\frac{1}{a_{n}}=\frac{1}{a_{n-1}}+\frac{1}{a_{n+1}}$$ for $n\ge 2$, where $a_1=2$ and $a_2=1$. I mean, any hints?
user263286
0
votes
1 answer

Nonlinear recursive relation

How to solve the recursive relation $$a_{2^k-1}=a_{2^{k-1}}+c2^{k}$$? I don't think I can make use of characteristic polynomial like when solving equations of form $a_n=x a_{n-1} + f(n)$ and don't really know other methods.
0
votes
2 answers

Solving a weird difference equation

I'm trying to find a way to solve the following difference equation, but I have exhausted all the resources at my disposal so now I come here for guidance. The equation is the following: $$x_1 = 1,\quad x_{n+1}={x_n \over 2n},\ n>1.$$ Is there a…
L1meta
  • 287
0
votes
1 answer

Printing the relative lengths of the subdivisions on a ruler

From description: The $n^\text{th}$ line of output is the relative lengths of the marks on a ruler subdivided in intervals of $({}^1/_2)^{n}$ of an inch. For example, the fourth line of the output gives the relative lengths of the marks that…
0
votes
1 answer

Find a recurrence relation for the number of ternary strings of length n that after 1 there is no 0 nor 2

Find a recurrence relation for the number of ternary strings of length n that after 1 there is no 0 nor 2. Don't know how to approach these kinds of problems.
user399893
0
votes
2 answers

Recurrence relation inhomogeneous relation

$a_n = 4a_{n-1} - 4a_{n-2} + (n^2 + 1)2^n$ a) Find the general solution of the associated homogeneous equation. b) Find the solution of the non-homogeneous relation, $a_0 = 0, a_1 = 1$ My work: part (a): $a_n - 4a_{n-1} + 4a_{n-2} = (n^2 +…
0
votes
1 answer

Initial condition of recurrence relation

I really want to know how I can find the suitable initial condition of a recurrence relation. A binary message is transmitted over a channel using only two signals 0 and 1. Suppose that signal 0 requires one unit of time to transmit and signal 1…
0
votes
1 answer

How to derive Gambler's Ruin formula?

On 20:00 of this video (https://www.youtube.com/watch?v=PNrqCdslGi4&index=7&list=PL2SOU6wwxB0uwwH80KTQ6ht66KWxbzTIo) the professor explains about the Gambler's Ruin problem. He goes from $$x^i = px^{i+1}+qx^{i-1}$$ to $$px^2-x+q=0$$ I do not…
0
votes
1 answer

Ways to get a solution of this equation

The equation is $x!+(x-1)!+(x-2)!+...+1!+0!=x^x+x^{x-1}+x^{x-2}+...x^1+x^0$ I got a solution (1) by substituting $1$ in $x$ I want to know if there is another way to get the solution and also another solution to this equation.
0
votes
1 answer

Recursion $T(n) = T(\log (n)) + O(\log(\log (n)))$

$T(n) = T(\log (n)) + O(\log(\log (n)))$ assuming $n =2 \ ^ {m}$ for $m \in N $ I need to prove by induction an upper bound. I thought of doing the following: $$T(2\ ^{m} )= T(m) + O(log(m)) $$ define $S(m) := T(2 \ ^ {m}) $ we get : $$S(m) =…
user335501