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

Need to solve this recurrence relation

We are provided with a recurrence relation as follows:- $F(n,k) = F(n,k-1) + F(n-k+1,k)$ $F(n,1) = n $ $F(X,k) = 0$ if $ (X\leq0)$ I need help in solving this for k=1 to 10 only Edit:- I have added values I computed using a simple program upto n=25…
1
vote
1 answer

Why is the recurrence relation for finding the # of bit strings of length n that contains a pair of 2 consecutive 0's...?

$$a_n = a_{n-1} + a_{n-2} + 2^{n-2} \text{ ?}$$ The solution manual states, Let $a_n$ be the number of bit strings of length $n$ containing a pair of consecutive $O$s. In order to construct a bit string of length $n$ containing a pair of consecutive…
1
vote
1 answer

Find the tight bound for the recurrence relation $T(n) = T(\frac{n}{3}) + 6^n $

$$T(1) = 2$$ $$T(n) = T(\frac{n}{3}) + 6^n \text{ For n > 1}$$ I tried using the substitution method to find it's closed form but I even from there, I could not figure out how to find its bound. My working: $k = 1$ $$T(n) =…
TheValars
  • 505
1
vote
1 answer

Nonlinear recurrence relation

I have a question about solving nonlinear recurrence relation. $(a_{n+1}*a_n)^2 = \sqrt{a_n} * 2^n$ and $a_0=1$ I do not know how to solve this kind of relations. What is the strategy to solve them? Thanks for your help.
Vitiello
  • 163
1
vote
1 answer

Tiling a 3x1 grid with $1\times 1$ and $2\times 1$ tiles

my professor assigned as extra credit (and the due date has passed) but I'm still curious as to how I could go about doing this. Basically the goal is to find the amount of possible patterns there are for a 3xn grid being filled with $2\times 1$,…
1
vote
2 answers

find the solution to recurrent relation

Solving some math problem, I have faced this recurrent equation: $$S(n) = 3 S(n - 3) + 2 \sum\limits_{k = 2}^{n / 3} S(n - 3 k) \times k.$$ Here $n = 3 \alpha$, means, $n$ can be divided by $3$ ($\alpha$ is integer), and $S(0) = 1$. Could anyone…
1
vote
1 answer

How to prove asymptotic solution for recurrence equation: $T(n) = 2T(n/4)+4T(n/8) + n$ for $n>8$ with $T(n) = 1$ for $1 \leq n \leq 8$?

As title says, how does one solve $T(n) = 2T(n/4)+4T(n/8)+n$ for $n>8$ with $T(n)=1$ when $1 \leq n \leq 8$?
mmwer
  • 21
1
vote
1 answer

How to solve this nonlinear difference equation $y_{t+1}-y_{t}+ty_{t+1}y_{t}=0$

I need help to solve the following difference equation: $$y_{t+1}-y_{t}+ty_{t+1}y_{t}=0$$ I start by dividing with $y_{t+1}y_{t}$. Then I get: $$y_{t}^{-1}-y_{t+1}^{-1}=-t$$ Then I assume $y_{t}=\frac{1}{m^{t}}$ and find general solution to…
Dragan
  • 11
1
vote
3 answers

general solution to linear second order difference equation

Is there a general solution to difference equations of the form: $$ u(n+2) + a(n)u(n+1) + b(n)u(n) = 0 $$ Thank you in advance
Amr
  • 20,030
1
vote
1 answer

Solving the system of recurrence relatioin

Given the recurrence system: \begin{equation*} \begin{cases} T_n = T_{n-1} + S_n, &\\ S_n = T_{n-1} + S_{n-1} & \end{cases} \end{equation*} And we know $T_0 = 1, S_0 = 0$. I tried to solve it the following way: Using generating functions I…
J.Exactor
  • 215
1
vote
3 answers

Recurrence Relation $T_n=\sum_{r=0}^{n-1} T_r+2^n$

From a recent solution I posted here, working from an alternative path would have led to the following recurrence relation which involves a summation term: $$T_n=\sum_{r=0}^{n-1}T_r+2^n; \qquad T_0=1\qquad (n>1)$$ How can this be solved? Edit 3…
1
vote
1 answer

Recurrence relation for this exponentiation algorithm

I am trying to come up with a recurrence relation for the number of multiplications needed for this algorithm: EXP(x,e): if e = 0, return 1 else r = EXP(x, floor(e/2)) if e is even return r*r else return r*r*x I have…
1
vote
1 answer

Why does the polynomial recurrence of $P(n)$ of degree $k$ requires a degree $k+1$ polynomial for its closed form?

Suppose we have a recurrence defined in the following way: $$a_n=a_{n-1}+n^2-3n$$ $$a_0 = 1$$ which produces the following sequence: $$1, -1, -3, -3, 1, ...$$ In order to find the polynomial closed form of this sequence given the recurrence, we…
1
vote
2 answers

Solving the recurrence relation $T(n)=4T(n-1)+n+1, T(0)=1$

I'm attempting to solve the recurrence relation $ T(n)=4T(n-1)+n+1, T(0)=1 $ From here I say $ T(n-1) = 4(4T(n-2)+n)+n+1 = 4^2T(n-2)+4n+n+1 $ $ = 4^2(4T(n-3)+n-1)+4n+n+1 = 4^3T(n-3)+(4^2+4+1)n-4^2+1 $ At this point, I understand most of the…
Brad
  • 100
1
vote
1 answer

How to solve the recurrence

How to solve the following recurrence relation? $T(n) = 1$ if $n=1$. $T(n) = T(n-1)+T(n-2)+T(n-3)+....+T(1)$ if $n > 1$. No clue about solving it. Help will be appreciated.