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

Recurrence relation in $2$ variables

Given a recurrence relation $func(n,k) = func(n-1,k) + func(n-1,k-1)$ with base cases $func(n,1) = n$ and $func(1,k) = 1$. How can I obtain its solution?
Aditya
  • 111
-1
votes
1 answer

Recurrence relations of the type $a(n,k) = a(n-1,k-1) a(n,k-1) /a(n-1,k-1)- a(n,k-1) $

How to solve recurrence relations of the type $$a(n,k) = \frac{a(n-1,k-1) a(n,k-1)}{ a(n-1,k-1)}- a(n,k-1) $$ with $a(n,1) = n$? This was my main equation: which I have solved to reduce it further but I can't solve it to make a function of it.
uder7
  • 1
-1
votes
1 answer

Solving This Particular Recurrence Equation

Let $\lambda \in \mathbb{R}$. Is there any way I could solve this recurrence? $$ a_k=-\dfrac{\lambda^2 a_{k-4}}{k(k+1)} $$ where $$ a_0\in\mathbb{R} \quad\quad a_1\in\mathbb{R} \quad\quad a_2=0 \quad\quad a_3=0 $$
-1
votes
1 answer

Is it valid recurrence for Master Theorem? $T(n)=T(n/2)+2^n$

So in class we did the following $T(n)=T(n/2)+2^n$ -----> Case 3 $ O(2^n)$ When I read in the internet it says that I cannot apply Master Theorem if f(n) is not polynomial. So what is the true case? Is it $O(2^n)$ or $T(n)=T(n/2)+2^n$ is not…
YohanRoth
  • 1,437
-1
votes
2 answers

Solving the recurrence F(n) = 3F(n - 12).

I'm very much stuck and don't even know where to begin here, any help would be much appreciated. Thanks.
Fjzer
  • 9
-1
votes
1 answer

Determining the value of Tn with a board and bricks

I have this homework question and I'm not sure where to start or how to do either of the problems at the bottom of the question. Any help appreciated!
-2
votes
0 answers

how to solve three recursive equations, master method can not solve

$\begin{aligned} &T(n) =3T(n-2)+logn \\ &T(n) =T\left(\left\lfloor\frac{n}{2}\right\rfloor\right)+T\left(\left\lfloor\frac{n}{4}\right\rfloor\right)+logn \\ &T(n) =4T(n-1)+2^{n}+2T\left(\frac{n}{2}-1\right) \end{aligned}$
q1q1q1q11
  • 1
  • 1
-2
votes
1 answer

explicit formula for $x_n$ in terms of $x_0$, and $a_k$ given recursive formula

Given the following formula for $x_n$ in terms of $x_{n-1}$ and $a_{n-1}$. Find a explicit formula for $x_n$ in terms of $x_0$, and all $a_k$. $$ x_n = \frac{x_{n-1}2^{a_{n-1}} - 1}{3} $$ For example when n = 1, the formula is as follows. $$ x_1 =…
pj5772
  • 85
-2
votes
1 answer

Recurrence equation solution help

I have come across a recurrence relation i.e $$f(a,b) = f(a-1,b) + f(a-1,b-1)$$ and the base case is $f(x,0) = 2$ for any positive $x$ and $f(x,y) = 0$ if $x \leq y$. Note that $a$ and $b$ are positive. Can anyone please tell me if we can derive a…
-2
votes
3 answers

What is wrong with the following definitions of a recursive function?

Can someone please explain what is wrong with these 4 recursive functions? (a) $f(0)=0, f(1)=1, f(2)=1, f(3)=3, f(n)=f(n-1)+f(n-2)$ for $n \geq 2$ (b) $f(0)=0, f(n)=f(n-1)+f(n-2)$ for $n \geq 2$ (c) $f(0)=0, f(n)=f(n-1)+f(n-2)$ for $n \geq 1$ (d)…
Ken
  • 3
-2
votes
2 answers

How do I solve compute some term of a recursive sequence?

I am currently taking a course in Discrete Math. The first part of our lesson this week is regarding sequences. I am stuck on formulas like the ones shown in the images I attached... I was hoping someone might be able to help me learn how to solve…
-2
votes
3 answers

Solve the difference equation $x_n-4x_{n-1}+3x_{n-2}=0$, $x_0 = 2$, $x_1 = 5$

Solve the following difference equation to the specific $x$ values $x_0 = 2$ $x_1 = 5$ $x_n-4x_{n-1}+3x_{n-2}=0$ I need some help and guidance to get this problem started and to understand the proper way to solve these equations.
-2
votes
3 answers

Solving recurrence relation using Master Method

How to solve following recurrence relation?? $T(2n) = T(2n-20) + n.$ And if there is any other way despite Master's method to do this simpler way, what is it?
-2
votes
1 answer

Derivation of Properties of Associated Laguerre Polynomial

1.How to prove Rodrigues formula for Associated Laguerre Polynomial? 2.How to show they are orthonormal in the interval (0,infinity)? Also I want to find normalization constant? 3.How to prove recurrence relation and series expansion? 4.I am also…
-2
votes
4 answers

Solve The Recurrence Homework Question

The functions $f:\mathbb{N} \to \mathbb{N}$ and $g:\mathbb{N} \to > \mathbb{N}$ are recursively defined as follows: $$ \begin{array}{lcll} f(0) &= & 1, & \\ f(n) &= & g(n, f(n-1)) & \mbox{if } n \ge 1, \\ g(m,0) &= & 0 &…
bldzrr
  • 51
1 2 3
96
97