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

Solve recurrence relation $T(n)=T(n−1)+n^3$

I know that $$T(1)=1$$ and $$k=n-1$$ Try to solve: $$ T(n)=T(n-1)+n^3 \\ = T(n-2)+(n-1)^3 + n^3 \\ = T(n-3)+(n-2)^3+(n-1)^3+n^3 \\ = T(n-k)+\sum_{i=0}^{k-1} (n-i)^3$$ I think the nexst step is to eliminate the sum. But I am not sure how. One…
0
votes
1 answer

Is this recurrence relation valid?

The recurrence relation is defined as follows: $$f(0) = 1$$ $$ f(1) = 1$$ $$ f(2n) = f(n)$$ $$ f(2n+1) = f(n) + f(n-1)$$ I am supposed to calculate $f(10)$, however I have a hard time wrapping my head around this; I can't see any way the…
Liz
  • 103
0
votes
1 answer

How to solve this recursion?

If $r>0$ holds and recursion is given by $T(r)=\alpha T(r^{1/\alpha})+\alpha r^{1/\alpha}$ where $\alpha\geq 2$ is fixed and assume $T(r)=O(1)$ for $r\leq1$. What is $T(r)$?
Turbo
  • 6,221
0
votes
1 answer

Does the explicit formula for recurrence relation exist

Does an explicit formula exist for this recurrence relation? If so, what is it? $ f(0) = 1 $ $ f(n) = \frac{n}{f(n-1)} $
Adalynn
  • 335
0
votes
0 answers

rearranging a linear first order recurrence

Page 26 of Mathematics for Economics and Finance by M. Anthony and N. Biggs states the following equation, $y' = ay' + b$, and rearranges it as follows $(1 - a)y' = b$. I do not understand how the authors rearrange this equation, so can anyone…
0
votes
3 answers

How to solve this homogeneous recurrence relation

I have the homogeneous recurrence relation $x_n = x_{n-2}$ for $n \geq 2$ with $x_1 = 2$ and $x_0 = 1$. So for the characteristic polynomial I got $r^2 - r = 0$, then I factored out r: $r(r - 1)$ for which the roots then are: $r = 0, 1$. I then…
imc
  • 409
0
votes
1 answer

Discrete Models and Difference equations

In an atlantic fishery, anchovies are extracted at a constant rate of 6000 anchovies per year. The per-capita death rate by other causes is 0.35 anchovies per year and the per-capita birth rate is 0.60 anchovies per year. i) Derive a difference…
0
votes
1 answer

How do I solve this first order difference equation?

I have the difference equation: $x(n+1) = \beta + x(n)(1-\alpha - \beta)$, where $\alpha, \beta$ are constants, with initial condition $x(0) = 1$. The solution says that the answer is $$x(n) = \frac{\beta}{\alpha + \beta} + \frac{\alpha}{\alpha +…
0
votes
1 answer

Solving the recurrence $ T[n] = \frac{n}{T[n-1]}$

Ive had some experience solving recurrences but i think they have been more simple than this one. This is what i have so far: \begin{array}{rcl}T[1] & = & 1 \\ T[n] & = & \frac{n}{T[n-1]}\\ \frac{n}{T[n-1]} & = & \frac…
0
votes
1 answer

How to solve the recurrence relation

I was going through a problem on combinatorics and came up with the recurrence relation like this. These equations hold for all natural values of $n$. ($p_n$ is the final result that I want) $$p_n=q_n+r_n $$ $$q_{n+1}=q_n+r_n, \space…
zxcvber
  • 2,081
0
votes
2 answers

what is the value of K for given recurrence relation?

Consider the recurrence relation $a_1 = 8$, and for all $n>1$, $a_n=6n^2 + 2n+a_{n–1}$. Let $a_{99} = K\times 10000$. The value of $K$ is ___.
Sumeet
  • 127
  • 7
0
votes
0 answers

Sum of Sequence Involving Fibonacci Sequence

I have a sequence with explicit formula $b_n = F_{n+4} -(n+3)$ The question asks me to use that formula to hence find the following sum for each $n$: $$nF_1 + (n-1)F_{2} +(n-2)F_3 +...+2F_{n-1}+F_n $$ I feel like the answer to my question will be…
0
votes
1 answer

continuous evolution

I have a discrete evolution equation such that $$\rho(t+\tau) = M_0 \rho(t)M_0^\dagger+M_1 \rho(t)M_1^\dagger$$ $M_0\;\&\;M_1$ are two operators such that $tr(M_0^\dagger M_1)=0$ i.e. they are orthogonal and $M_0^\dagger M_0+M_1^\dagger M_1 =1$. I…
0
votes
1 answer

Recurrence proof problem

I need to show that $a_n= 2^n + a_{n-2}$ for $n$ is greater than or equal to $2$. Prior to that we are told that recursively define $a_0 = 1,\, a_1 = 3, a_2 = 5,\, $ and $ a_n = 3a_{n-2} + 2a_{n-3}$ for $n$ is greater than or equal to $3$. I tried…
Matt
  • 21
0
votes
1 answer

Solve the recurrence $T(n) = T(\lfloor n/2 \rfloor)+ T(\lfloor n/3 \rfloor) + \lfloor n \log_2 n\rfloor$.

$T(0) = T(1) = T(2) = 1$. For $n \geq 3, T(n) = T(\lfloor n/2 \rfloor)+ T(\lfloor n/3 \rfloor) + \lfloor n \log_2 n\rfloor$. Express the above recursion in $O(n)$ notation. I know how to solve recurrence in the form of $T(n) = aT(n/b) + f(n)$.…