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

Solving recurrence $T(n) = 2 T(n/2) + 2^n$

How about the recurrence --> $T(n) = 2 T(n/2) + 2^n$. How can this be approached by master theorem?
csnoob
  • 55
3
votes
4 answers

A cow has a calf every year. A calf becomes a cow in 4 years. Starting with one cow, how many animals are there in 17 years?

A cow gives birth to a calf every year. The calf becomes a cow in 4 years. The cow gives birth to a calf every year. Starting with one cow, how many animals are there in 17 years? P.S. The cows live forever. P.S. May have something to do with…
3
votes
0 answers

Recurrence Relation derivatives of $x^x$

I was recently trying to derive explicit formulas for the nth derivative of $f(x) = x^x$ which boiled down to solving the following recurrence relation (or something similar if I have made algebraic mistakes, which is fairly likely, this is besides…
3
votes
2 answers

Solving linear homogenuous recurrence relation

I am learning about recurrence relations from a discrete math text book by Grimaldi. An introductory example(A second degree homogeneous recurrence relation), proceeds as follows After determining the two possible solutions to the recurrence…
3
votes
2 answers

Haggling problem

Adam is trying to sell Bob a bike for $a$ dollars. Bob does not agree on the price $b$ ($0 < b < a$). Adam does not agree on this price but does lower his initial price to $\dfrac{a+b}{2}$ dollars. Bob responds by offering…
user536513
3
votes
2 answers

How can you solve this recurrence?

How can I solve this recurrence? $$B_{k}=1+\frac{n-k-1}{n} B_{k+1} + \frac{kx}{n},\qquad x>0$$ This is defined for $1 \leq k \leq n-1$ and $n \geq 2$. When $k=n-1$ then we can see that $B_{n-1} = 1+ \dfrac{(n-1)x}{n}$ so this is effectively the…
user54551
3
votes
3 answers

How to solve this recurrence problem?

problem: Find the recurrence relation satisfied by $R_n$ , where $R_n$ is the number of regions that a plane is divided into by $n$ lines , such that There are $k$ lines among $n$ lines that are parallel to each other and no two of the $n-k$ lines…
Maya
  • 55
3
votes
1 answer

Solving recurrence relation

$A(n) = A(n-1) + B(n-1)$ $B(n) = A(n-1)$ $A(1) = 2\ ,\ B(1) = 1 $ Please help to find closed form of $C(n) = A(n) + B(n)?$
Ashot
  • 4,753
  • 3
  • 34
  • 61
3
votes
2 answers

Help in solving linear recurrence relation

I need to solve the following recurrence relation: $a_{n+2} + 2a_{n+1} + a_n = 1 + n$ My solution: Associated homogeneous recurrence relation is: $a_{n+2} + 2a_{n+1} + a_n = 0$ Characteristic equation: $r^2 + 2r + 1 = 0$ Solving the characteristic…
3
votes
1 answer

Existence and uniqueness of solutions to difference equations

I know about existence and uniqueness of solutions to differential equations, but when it comes to difference equations, I am struggling to find a reference. I am looking for conditions under which, for all $k >0$, the solutions of $$x(k+1) =…
Mr. Fegur
  • 862
3
votes
0 answers

How to solve a recursion relation on tensors including derivatives and traces?

NOTATION I'm a physicist studying higher-spin theory. In my research, we work with fully symmetric tensors using a notation which is implicit both in the dimension of space and the order of the tensor, i.e. an order-$s$ fully symmetric tensor is…
lel
  • 192
3
votes
4 answers

Solving $x_{n} - 3x_{n-1} = -8$ with $n\geq 1$ and $x_0 = 2$

I tried two methods which gave different answers: Method 1: $$x_{n} - 3x_{n-1} = -8 \\ x_n = 3(3x_{n-2} - 8) - 8 \\ = 3^2 x_{n-2} -8 ( 1+3) \\ = 3^3 x_{n-3} - 8(1+3+3^2) \\ = 3^n x_{0} - 8(1+3+3^2 + \ldots + 3^{n-1}) \\ = 2\times 3^n -…
Natash1
  • 1,379
3
votes
2 answers

If $a_0=1$, $a_1=5$, and $a_n=\frac{2a_{n-1}^2-3a_{n-1}-9}{2a_{n-2}}$, then every $a_n$ is an integer

Given that $a_0=1, a_1=5$, and $$a_n=\frac{2a_{n-1}^2-3a_{n-1}-9}{2a_{n-2}}$$ Show that all $a_n$ are integers. Factoring the numerator gives $$a_n=\frac{(2a_{n-1}+3)(a_{n-1}-3)}{2a_{n-2}}$$ First we notice that the numerator must be divisible by…
dcxt
  • 614
3
votes
4 answers

Recurrence relation $a_n = 11a_{n-1} - 40a_{n-2} + 48a_{n-3} + n2^n$

I didn't do a lot of maths in my career, and we asked me to solve the following recurrence relation: $$a_{n} = 11a_{n-1} - 40a_{n-2} + 48a_{n-3} + n2^n$$ with $a_0 = 2$, $a_1 = 3$ and $a_2 = 1$ What is the procedure to solve such relation? So far,…
3
votes
1 answer

An interesting partial recurrence equation

What is the closed form solution to the following partial recurrence relation? $$f(k,n) = \sum\limits_{t=0}^{m}f(k-t, n-1),$$ where $ m \geq 0$ is some fixed parameter. The boundary values are $f(k,n)=0$ for all $k < 0, n < 1$ except $f(0,0)=1$. I…
Dzmitry
  • 31