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 do I prove that for a recurrence relation of the form $a(2 n)=2^k a(n), a(n)=c n^{k}$ for some constant $c$?

if this is difficult, I am satisfied with an example for when $k=2$ in other words, how do I prove that for a recurrence relation of the form $a(2 n)=4 a(n), a(n)=c n^{2}$ for some constant c?
0
votes
2 answers

Decreasing Recurrence Relation

Can someone solve this recurrence? $$ T(n) = 2T(n-1) + n^2 $$
Ryan sams
  • 137
0
votes
1 answer

"Scaling" second-order linear recurrences.

Below is a screenshot from Sedgewick book with exact statement. I understand how to prove it, but what is the intuition behind this? I mean how the author found this fact? UPD I've come up with the idea: Any linear combination of general (i.e. not…
Stan
  • 361
0
votes
1 answer

Closed form solution for recurrence relation with 2 variables

Please help me in finding the closed form solution for the recurrence relation : \begin{align*} f(n, d) &= 2 \sum\limits_{i=1}^{n-1} f(i, d-1) + f(n, d-1) \\ & \text{for $n > 1, d > 1$} \\ f(n, 1) &= 2n-1\\ f(1, d) &= 1 \end{align*} I have no idea…
0
votes
1 answer

Find $u_3$ of recurrence relation $u_{n+1} = 0.2u_n + 9$ when only $u_5$ is known

A sequence is defined by the recurrence relation $u_{n+1} = 0.2u_n + 9$, ${u_5 = 11}$. What is the value of ${u_3}$? I have not encountered a problem like this when only one value for n is provided. Normally I am given a couple of values for n…
dagda1
  • 825
0
votes
1 answer

two series recurrence relation

Given the recurrence $\begin{cases} F_n = 2F_{n-1}^2 H_{n-1} \\H_n = 2F_{n-1} H_{n-1}^2 \end{cases} \text{ for }n\geq 3$ and $F_2 = 1$, $H_2 = 3$. How can I find an explicit expression for $F_n$? My approach so far was applying the logarithm,…
flawr
  • 16,533
  • 5
  • 41
  • 66
0
votes
1 answer

Give a recurrence relations & base cases for the number of $n$ digit decimal strings containing an even number of $0$ digits.

Give a recurrence relations & base cases for the number of $n$ digit decimal strings containing an even number of $0$ digits. My solution is: Let $a_n$ denote the the number of $n$ digit numbers containing an even number of $0$ digits. $a_n =…
Orion
  • 31
0
votes
1 answer

Solving second-order linear homogeneous recurrence relations with constant coefficients $b,c$

I am having problems understanding how to solve second-order linear homogeneous recurrence relations with constant coefficients $b,c$. I have a clear understanding on solving second order linear recurrence relations, but am stumped with this…
0
votes
1 answer

Recurrence relation for binary strings of length $n$ that doesnt contain $010$ pattern?

I've looked up this question in here and found one whose answer didnt look complete to me or maybe I couldnt figure it out correctly.. I can understand the first part of the answer $a_n = a_{n-1} + a_{n-3} + a_{n-4} + a_{n-5} + \cdots + a_{1} +…
bhd
  • 71
0
votes
1 answer

Solve Non-homogeneous recurrence relations

Solve the recurrence relation $u_n = 2u_{n-1} + 2^n - 1$ where n is greater than or equal to 1 and $u_0=0$. We have characteristic root equal to 2 with multiplicity 1. So homogeneous part will have solution $A.2^n$, where A is constant. The…
Vibhav
  • 115
0
votes
1 answer

How I can solve this difference equation: $(2m+3) w_{m}-(2m+1) w_{m+1}-2m²-4m-1=0$

How I can solve this difference equation: $$(2m+3) w_{m}-(2m+1) w_{m+1}-2m²-4m-1=0$$ I have no idea to start.
DER
  • 3,011
0
votes
2 answers

find a recurrence relation for the sequence

Let $a_n$ be the number of words of length $n$ containing only letters “X” and “Y” without two consecutive “Y”. For example, $a_3 = 5$ since there are exactly five such words: $$\mathrm{XXX, XXY, XYX, YXX, YXY}$$ I know $a_1=2$ because it can be X…
0
votes
1 answer

Determining the recurrence relation

I am having trouble with this problem. I am trying to see if I am doing this properly, and it would be very helpful if someone could check my work. Here is the problem: A piece of paper is 1 inch thick. By folding it in half, the thickness becomes…
Hello
  • 35
0
votes
0 answers

Solving a non homogeneous recurrence relation

If we have a recurrence relation like $a_n$ = $a_{n-1} + 5 $ with $a_0=30$, can this be solved using finding characteristic roots and then characteristic roots, I can solve other type of such equations but in cases where $ a_n= a_{n-1} +…
Cloverr
  • 900
0
votes
2 answers

How to solve the recurrence $a_n = -2n a_{n-1} + 3n(n - 1) a_{n-2}$

I have problems with solving recurrences using changing variables, The recurrence relation is: $a_n = -2n a_{n-1} + 3n(n - 1) a_{n-2}$ $a_0 = 1$ $a_1 = 2$ The solution in my book is as follows Letting $b_n = \frac{a_n}{n!}$ => $a_n = n! b_n$ And ,…
bhd
  • 71