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
2 answers

Higher order recurrence relation

I have the following non-homogenous recurrence relation and I'm trying to solve it using characteristics roots method : $a_n = 10a_{n-1} -37a_{n-2} + 60a_{n-3} -36a_{n-4} +4$ for $n \ge4$ and $ a_3 = a_2 = a_1 = a_0 = 1$ I found the particular…
Lisa
  • 145
1
vote
1 answer

Does the order I multiply the characteristic equation's factors in the homogeneous solution matter?

I've been doing a recurrence relation exercise in my book. Doing some steps and comparing them to the ones taken by the book. $$T(0) = 1$$ $$T(1) = 2$$ $$T(k) - 7T(k-1)+10T(k-2)=6+8k$$ Characteristic equation: $$a^2-7a+10$$ $$(a -…
Saturn
  • 7,191
1
vote
1 answer

About the particular solution given an homogeneous solution in a recurrence relation.

If your recurrence relation's characteristic equation factorizes to $$(x+1)(x-5)^3 = 0$$ and $h(n) = 3+2n \implies f_p(n) = d_0+d_1n$ $h(n) = 7n+3^n \implies f_p(n) = d_0+d_1n+d_23^n$ $h(n) = 3n^2+5^n \implies f_p(n) =…
Saturn
  • 7,191
1
vote
1 answer

Simple recursion question

While reading these lecture notes: http://www.cc.gatech.edu/%7Evigoda/7530-Spring10/Kargers-MinCut.pdf, there is an recurrance relation: $$ {\rm P}\left(n\right) \geq 1 - \left[1 - {1 \over 2}\,{\rm P}\left(\lfloor{n \over \sqrt{\,2\,}\,}\rfloor +…
lzbrace
  • 95
  • 6
1
vote
2 answers

difference equation( recurrence relation)

Let $y_n$ satisfy the nonlinear difference equation: $$(n+1)y_n=(2n)y_{n-1}+n.$$ Let $u_n=(n+1) y_n$. Show that $$u_n= 2u_{n-1}+n.$$ Solve the linear difference equation for $u_n$. Hence find $y_n$ subject to the initial condition $y_0=4$. I have…
1
vote
1 answer

Recurrence relation to calculate the number of strings of $n$ characters that don't have consecutive vowels.

How can I find a recurrence relation to calculate the number of strings of $n$ characters (english alphabet, lowercase) that don't have consecutive vowels. It's clear that for $n = 1$ the result is $26$, but, then what? Just hints.
Saturn
  • 7,191
1
vote
3 answers

Strategies for developing explicit formulas for nth term given recurrence relation?

I'm wondering if there's any general strategies to develop an explicit formula for the nth term when you're given a recurrence relation. For example, I'm given a recurrence relation: $a_{n+1}=2a_n+1$ where $a_0=0$ and I'm asked to find the first 5…
Sabien
  • 625
1
vote
2 answers

Recurrence relation for number sequence

Let $a_n$ be the number of sequences of $n$ numbers, consisting of $0's, 1's$ and $2's$, such that a number $1$ on the $j$-th place isn't followed by a $1$ or $2$ on the $j+1$-th place for $1\leq j\leq n-1$. I'm asked to prove that the correct…
RBS
  • 841
1
vote
3 answers

Recurrence of T(n) = T(n/3) + T(2n/3)

I've searched online for this but I only seem to find answers for a similar equation: T(n) = T(n/3) + T(2n/3) + cn But the one I'm trying to solve is: T(n) = T(n/3) + T(2n/3) Base case: We can assume T(a) = Theta(1) for any constant a. I've…
Cauthon
  • 389
  • 3
  • 16
1
vote
1 answer

Find a recurrence relation for the number of ternary strings of length n that contain at least one 0. Ternary string only contains 0s, 1s, and 2s.

Problem: Find a recurrence relation for the number of ternary strings of length n that contain at least one 0. Ternary string only contains 0s, 1s, and 2s. Approach: Assuming that the length n is equal or bigger than 3 (n >= 3) then: When n = 1,…
Will
  • 11
1
vote
1 answer

Recurrence Relation with two variables

I am trying to solve the following recurrence relation: $T(a,b)=T(a-2^{b-1}+1,b) + T(a,b-1)$ where: $$T(a,-1)=0\\T(0,0)=0\\T(a,1)=1\\T(a,0)=1$$ I tried using Matlab and Wolfarmalpha however they don't accept recurrences with more than one…
kyloc
  • 111
1
vote
3 answers

Solving the recurrence relation $a_{n+1}=a_n^2$

How would one solve the recurrence relation $a_{n+1}=a_n^2$ for, say, $a_0=2$? The solution seems to be $a(n)=2^{2^n}$, but how would one get to that conclusion? Furthermore, how would one solve a recurrence relation of the form $a_{n+1}=a_n^k$ for…
Bonnaduck
  • 4,058
1
vote
0 answers

Recurrence $A_{n+1}=A_{n}+\mathbf{E}G_n$

This looks like a straightforward recurrence, but I have an impression I made a mistake somewhere. In this equation $G_n$ is a random variable $ G_n=\left\{ \begin{array}{c c} 0 & 1-p_n \\ a_n & p_n \\ \end{array} \right. $ Obviously…
sigma.z.1980
  • 1,717
1
vote
1 answer

How does substituting $\log{n}$ in help me solve this recurrence?

I solved the recurrence $T(n) = T(\sqrt[4]{n}) + 1$, $T(2) = 1$ through thinking it through. $T(n) = O(\log{\log{n}})$ since the number of times we add 1 is the number of times we can take the 4th root of $n$. Assume $\log$ means base 2. Apparently,…
John Hoffman
  • 2,734
1
vote
3 answers

solve the non homogeneous recurrence relation

These recurrences should be simple to solve but I see a ton of different ways to do it, such as general solution, particular solution etc. We did not talk about these in class, just need to get the general form of it. If anyone could help and…
george
  • 13