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

Strange recurrence relation

I am trying to solve $f(n)=f( \sqrt{n}$) .Seems very strange to me, the iterator (iterator means how many steps we need to take in order to reach 1 ) then the steps are indeed $\lg\lg(n$) but how should I proceed? I found the answer it is…
0
votes
4 answers

Having trouble solving a recurrence relation

I'm trying to solve a recurrence relation and I've having trouble. $$ a_{n+2} - 3a_{n+1} - 28a_n = 0 $$ Is this a non-homogenous relation? How can I solve it? I factored it which gave me r = 7 and r = -4, but I don't know what to do after.
Andrew
  • 133
0
votes
1 answer

Recursive equation

I am trying to solve $T(n)=2T(\frac{n}{2}) +1 $ where $T(1) = \theta(1) $,since we have iterator $n->\frac{n}{2}$ then the height of the tree is $lg(n)$ but why $T(n)=1+2+4+8+ ..+n$ ,how do I deduce that the last term is exactly n and the number of…
0
votes
0 answers

Reference for recurrence relation

Is there any good reference book, link or website for solving recurrence relation ? Besides, is there any table for the type of particular solution for different kinds of RHS function of non-homogeneous linear recurrence relations when applying…
luimichael
  • 355
  • 2
  • 5
0
votes
1 answer

Resolve the recurrence for $T(n)=T(n-n/(\lg n))+ O(n\lg n)$

The recurrence I am looking for is the following. $$T(n)=T\left(n-\frac{n}{\lg n}\right)+ O(n\lg n)$$ Does it solve to $O(n\lg^2 n)$?
Vk1
  • 99
0
votes
1 answer

Recurrence Relations with Extras

I understand how to solve a recurrence relation of the form: $ U_n = 7U_{n-1} + 18U_{n-2} $ which becomes $ U_n - 7U_{n-1} - 18U_{n-2} = 0 $ and to characteristic form $ x^2 - 7x - 18 = 0 $ However i do not understand what to do when there are…
user444043
0
votes
1 answer

Recurrence relations forward substitution help

The question: solve by recurrence relation using forward substitution and verify by mathematical induction. $$ \begin{align} &T(n) = 3T(n/3) \quad \text{for $n>1$, $n$ a power of $3$} \\ &T(1) = 2 \\ &T(3) = 3T(1) = 3 * 2 = 6 \\ &T(9) = 3T(3) = 3 *…
0
votes
0 answers

Recurrance relation involving tree

I am trying to solve $T(n)=T(\frac{n}{2}) + T(\frac{n}{3}) +n $ where n is integer and we want to find the aproximate running time Θ of the tree $T(n)$ where $T(1)=Θ(1)$, At the first level the sum is $n$ at the second it is $\frac{5}{6}n$ at the…
0
votes
1 answer

Solving (non-linear) recurrence relation

I have the following recurrence relation $x_{n+1} \le x_{n-\tau} - a\cdot x_{n-\tau}^2 + b$ where $\tau$ is some positive integer, I'm not sure how to approach it. An upper bound will be enough [my hope is that $x_n \le O(1/n)$]. Any help would be…
Daniel
  • 3
0
votes
2 answers

Qualitative behaviour of the solution of a recurrence equation

Consider the recurrence equation: $x_{n+1} = \frac{ a_1 n + a_0}{b_2 n^2 + b_1 n + b_0} x_n $. (or for that matter any ratio of two polynomial with the denominator having a higher defree) Are there known results on characterizing the behavior of …
M.A
  • 450
0
votes
1 answer

Specific recurrence in $2$ variables

I have the following relation: $$F(x, y) = F(x, y - 1) + F(x - 1, y - 1)$$ and the initial conditions: $F(x, 1) = 1$ and $F(1, y) = y$. How can I solve this recurrence? Thank you in advance!
0
votes
1 answer

Show that $z_n = \alpha x_n + \beta y_n$ is also a solution to the recurrence relation for every $\alpha, \beta > 0$.

If $a_n = x_n$ and $a_n = y_n$ are two solutions to the recurrence relation $c_0a_n + c_1a_{n-1}+c_2a_{n-2}+...+c_ka_{n-k} = 0$, show that $z_n = \alpha x_n + \beta y_n$ is also a solution to the recurrence relation for every $\alpha, \beta > 0$.…
Diante
  • 189
0
votes
1 answer

Complete recurrence relation

There are many questions about $k$-order recurrence relations and answers on how to solve them at the forum. But is there a thing as a "complete" or "full" recurrence relation (I don't know their name)? I mean a recurrence relation where the $n$-th…
0
votes
0 answers

How do I create this problem as a recurrence relation?

T(n) is the running time of an algorithm of input size n. The algorithm solves the problem by breaing it up into 4 problems of the same kind (I take "same kind" to mean we're going to use function T) each of size n/4 . The solution to the…
FutureSci
  • 247
  • 2
  • 9
0
votes
1 answer

Solve the recurrence by back substitution $T(n) = 2T(\frac{n}{2} ) + 6n − 1$ and prove it by strong mathematical induction.

I am trying to solve this recurrence by back substitution and then proving it by using strong induction but induction doesn't seem to go well, maybe my error lies in my back substitution. Can someone help check my work, I might have missed…