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
1 answer

Solving a recurrence relation: $T(n^6) = 9T(n^{\frac{1}{6}}) + \log^2(n)$

I would like to solve the relation: $T(n^6) = 9T(n^{\frac{1}{6}}) + \log^2_2(n)$ Now upon searching, I found that such relations can be solved using iteration method and making a substitution, hence I tried substituting $m = \log_2 n$. This gives…
Rick
  • 1,099
1
vote
3 answers

Solving recursion with generating function

I am trying to solve a recursion with generating function, but somehow I ended up with mess..... $$y_n=y_{n-1}-2y_{n-2}+4^{n-2}, y_0=2,y_1=1…
user62453
  • 449
1
vote
1 answer

$T(n) = T(n/2) + T(2n/3) + T(3n/4) + n$ Solve for n

How do I unravel this recurrence relation? $$T(n) = T(n/2) + T(2n/3) + T(3n/4) + n$$ Here's what I've got so far: $$= T(n/4) + t(n/3) + T(3n/8) + T(n/3) + T(4n/9) + T(n/2) + T(3n/8) + T(n/2) + T(9n/16) + 35n/12 = T(n/4) + 2T(n/3) + 2T(3n/8) +…
1
vote
2 answers

How to solve the recurrence relation $d_n = a \sqrt{n+1}d_{n+1} + b \sqrt{n} d_{n-1}$ (when $n \in \mathbb { Z } ^ { + } )$, and $d_0 := a d_1$

How to solve the recurrence relation $d_n = a \sqrt{n+1}d_{n+1} + b \sqrt{n} d_{n-1}$ (when $n \in \mathbb { Z } ^ { + } )$, and $d_0 := a d_1$ to find the general form of $d_n$? I was able to solve for the special case when either $a$ or $b$ are…
Archisman Panigrahi
  • 2,156
  • 2
  • 19
  • 30
1
vote
1 answer

Recurrence relation for climbing a staircase

You can climb a staircase taking an odd number of steps at a time. Say, you can climb a staircase of 10 stairs taking any odd number of steps from $1$ to $9$ at a time. I think the recurrence relation for this is $U_n = U_{n-1} + U_{n-3} + U_{n-5} +…
1
vote
0 answers

Geometric recurrence system

I am finding some behaviour I didn't entirely expect in a system of mine based on rather simple arithmetico-geometric progression (but with a little twist). To begin with I considered $h_{n+1} = h_n + \frac{Rh_n-E}{c}$ and $X_n=Rh_{n-1}$. We may…
1
vote
1 answer

Solving a system of (nonhomogeneous) recurrence relations

I am considering the following system of recurrence of relations: for…
1
vote
1 answer

How to solve the particular solution to a recurrence relation?

Here is my solution to a problem:https://i.stack.imgur.com/9eH7O.jpg, though the answer should be:n+2/3 for the particular solution. Where am I going wrong? P.S. I am focusing on the particular solution right now. As that is where I am stuck.
user304120
1
vote
1 answer

Recursive sequence $a_n=(3a_{n-1}+1+\sqrt{12a_{n-1}+1})/3$

Given $a_0=0$, $\displaystyle a_n=\frac{3a_{n-1}+1+\sqrt{12a_{n-1}+1}}{3}$, find $a_n$ in terms of $n$. By finding the first few terms of $a$, I get a pattern and deduce that $a_n=n(n+1)/3$. I wonder if these's method to find $a_n$ without…
JSCB
  • 13,456
  • 15
  • 59
  • 123
1
vote
1 answer

How to solve this quadratic bivariate recurrence relation?

Given the recurrence relation $$\begin{aligned} a_{n + 1} &= 2 a_n b_n\\ b_{n + 1} &= a_n^2 + b_n^2 \end{aligned}$$ with initial conditions $$a_0 = a, \qquad b_0 = b$$ I am trying to come up with a formula for $a_n$ in terms of $a$ and $b$. I could…
vidhan
  • 1,020
1
vote
0 answers

Recurrence with floor function

Solve the recurrence relation$$a_n=a_{\lfloor{\frac{n}{2}\rfloor}}+n$$with $a_1=1$. I am interested in the recurrence above. I tried taking two case, one with $n$ even and other with odd to avoid the floor function. But that gave me two…
Anand
  • 3,588
1
vote
1 answer

Difficult Recurrence Problem

Find all integers $n\geq 3$ for which there exist real numbers $a_{1}, a_{2},...,a_{n+2}$ satisfying $a_{n+1}=a_{1}$ , $a_{n+2}=a_{2}$ and: $a_{i}a_{i+1}+1=a_{i+2}$ for $i=1,2,..,n$
1
vote
1 answer

the limit when n goes to infinity in recurrence relation

in this equation I don't know how to calculate the limit of $nP(n)$ $$P(n)=P(n-1)\bigg(1-\bigg(\dfrac{1}{2}\bigg)P(n-1)\bigg)$$ $$P(0)=1$$ I thought of just expand until I catch some co-relation but I failed.
1
vote
2 answers

Third-order recurrence with non-constant coefficients

During the study of a problem, I encountered this recurrence: $$ a_n=a_{n-1}+2^{n-3}a_{n-2}+a_{n-3},\ n\geq 4 $$ with $a_1=0$, $a_2=1$ and $a_3=1$. Does anyone know a way to obtain an explicit expression for $a_n$? I tried in several ways (order…
1
vote
2 answers

Simple Maths Question - Capital Sigma/Pi

I haven't studied math in a long time and am trying to solve a simple first order non-homogeneous recurrence relation. This approach uses the general formula: $$ f(n) = \prod_{i=a+1}^n b(i) \bigg\{ f(a) + \sum_{j = a+1}^nd(j)\bigg\}. $$ The…
user9492
  • 279