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

How to generalize the recurrence relation to iterative form?

I have the following recurrence relations: $$t_0=\frac{1}{a+b}+\frac{a}{a+b}\frac{1}{c}\\t_n=\frac{1}{a+b}+\frac{a}{a+b}\frac{n+1}{c}+\frac{b}{a+b}\sum_{j=1}^n p^j q^{n-j} t_{n-j}\\with\quad\quad p+q=1.$$ I want to find a closed form expression for…
Litun
  • 670
0
votes
1 answer

Polynomials: functions of functions integer roots

I'm attempting to prove: Define functions $f_m$ by the recursion relation such that $f_1(x) = 2x^2-1$ and $f_k(x) = f_1(f_{k-1}(x))$ . Then for all $ m > 0$, there exists no $x \in \mathbb Z$ such that $f_m = x$ other than the trivial $x = 1$. I…
Dane Bouchie
  • 1,282
0
votes
1 answer

Part of a proof recurrence relation

I'm reading this survey by Carl Offner about digit computation of the number $\pi$. In page 7 there's a step that I didn't understand: suppose $$\alpha_{n+1}=\frac{\alpha_n \beta_n}{\alpha_n + \beta_n}$$ $$\beta_{n+1}=\sqrt{\frac{ \beta_n …
Amihai Zivan
  • 2,874
0
votes
2 answers

Recurrence relation rabbit population

A young pair of rabbits (one of each sex) is placed on an island. A pair of rabbits does not breed until they are 2 months old. After they are 2 months old, each pair of rabbits produces another pair each month. And the pairs leave the island after…
Sakthi
  • 100
0
votes
1 answer

Second-Order Linear Homogeneous Recurrence Relations with Constant Coefficients

How would I find sequences that satisfy the following relation? $$a_{n+2} = -a_{n+1} + 5a_{n}$$ $$\text{given:}\quad a_{0} = 2, a_{1} = 8, \text{ and }(n \ge 0)$$
0
votes
1 answer

Stability of equilibrium points

Given the difference equation and the continuously differentiable function $g$: $$x(n+1)=x(n)+h\times g(x(n))$$ Determine conditions on $h$ for which an equilibrium point is asymptotically stable, respectively unstable.
Anton
  • 3
0
votes
0 answers

Second Order Recurrence Relation with Exogenous Forcing Sequence

I am solving an infinite horizon maximization problem, which yields as FOC second-order recurrence relation $A_{n+1} = \delta A_{n+2} + \delta A_{n} + c_n$, where $\{c_n\}_{n=0}^\infty$ and $\delta$ are exogenous (i.e. I need a solution for $A_n$…
0
votes
3 answers

Solving Linear Recursion with backtracking

What am I doing wrong? Is there a missing step? Tried googling but cannot seem to get it. Question: $$\begin{align} a_{n} &= a_{n-1}+2n+3 ,\\ a_{0} &= 4 \end{align}$$ Things I did: $$\begin{align} a_{n}&=a_{n-1}+2n+3\\ &= (a_{n-2}-2n+3) +2n+3\\ &=…
steve0hh
  • 103
0
votes
2 answers

How to solve this recurrence relation $f_n = 13{f_{n-2}} + 12{f_{n - 3}} + 2n + 1$?

$f_n = 13f_{n-2} + 12f_{n - 3} + 2n + 1$ Ok so first I was to find the solution for the $13f_{n-2} + 12f_{n - 3}$ portion. There are 3 roots, however, so I am not sure which ones to use in my general solution. Also, I'm stuck trying to find the…
nikki
  • 143
0
votes
1 answer

Deriving the recurrence for the number of strings of length n?

(a) Let $P_n$ be the number of strings of length n formed from letters A, B, C, E, O, that do not contain two consecutive consonants (that is, B or C). For example, AABOCA and BACOOEBO satisfy this condition, while AABCEC does not. Derive a…
nikki
  • 143
0
votes
1 answer

Using Difference Equations to Solve Word problems

While I was studying about finite differences I noticed a question in difference equations.Does anyone knows how to solve this using difference equations? WORD PROBLEM Imagine you are to jump from an aircraft at an altitude of 1000 metres. You want…
justin
  • 367
0
votes
1 answer

Solving recurrence relation with unrolling technique

I tried to solve below recurrence relation with unrolling technique. $A({n})=4A(\lfloor{n/7} \rfloor)+n^2$ for $n\ge 2$ $A({n})=1$ for $0\le n\le 1$ What I have come up so far is $A(n) = 4^kA(n/7^k)+4^k\lfloor n/7^k \rfloor ^2 ....+4\lfloor n/7…
0
votes
2 answers

Solving easy inhomogeneous second order recurrence equations

I know the method of solving the characteristic equation to solve homogeneous second order recurrence equations. Now there is added an inhomogeneous term $c$, a constant. I have seen many different approaches to handle such summands, but mainly…
user136457
  • 2,560
  • 1
  • 22
  • 41
0
votes
1 answer

Painting a circular disk

A circular disk is divided into n sectors, each shaped like a piece of pie and all meeting at the centre point of the disk. Each sector is to be painted either red, green or blue in such a way that no two adjacent sectors are painted the same…
Chris
  • 11
0
votes
3 answers

How many bit Strings?...

I have trouble figuring out these types of problems. Could someone help me out, with the different ways to answer it? How many bit strings of length six contain three consecutive 1’s? P.S i thought this recurance relation would be an-1+1 but that is…