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

What are the polynomial solutions of the difference equation $W(x+h)=\frac{c(x+h)}{d(x+h)}W(x)$ for $W(x)$?

Let $d(x)=\prod_{s=1}^{n}(x-a_s)$ and $c(x)=\prod_{s=1}^{n}(x-a_s+b_s h)$ be polynomials, where $a_s, b_s$ are some complex numbers. What are the polynomial solutions of the difference equation $W(x+h)=\frac{c(x+h)}{d(x+h)}W(x)$ for $W(x)$? Thank…
LJR
  • 14,520
3
votes
4 answers

Solving a recursion relation: $a_{n+1}=-3a_n+4a_{n-1}+2$

I'm having trouble solving this recursion relation. I believe it's a non-homogeneous one. Here it is: $$a_{n+1}=-3a_n+4a_{n-1}+2$$ Really, I am just having trouble with the particular solution. The initial values are not specified. Thanks!
batch
  • 31
3
votes
1 answer

Solving a (non-linear?) recurrence relation in 2 variables

I'm not sure if this problem is linear or not. Anyway, let me state the problem first: $$ \begin{align} P_n(a) &= \left(1 - \frac{a}{n} \times \frac{a-1}{n-1}\right) \times P_{n-1}(a) + \left(\frac{a}{n} \times \frac{a-1}{n-1}\right) \times…
3
votes
4 answers

Solving Recurrence equation

I have a problem with this type of recurrence equation. Find the solution of recurrence equation: $$T(1)=2,$$ $$T(n+1)=T(n)+2n , \quad \forall n\geq 1$$ Indeed, I tired to Solving Recurrences Using…
Adam
  • 473
3
votes
3 answers

How to solve non-homogeneous recurrence relations?

I have been looking around for a general method to solve non-homogeneous recurrence relations. Solving non homogeneous recurrence relation seems to be having almost the same problem as me. There is one answer that I absolutely don't…
Saturn
  • 7,191
3
votes
2 answers

Build recurrence relation from a Combinatorial problem

$a_n$ is the number of sub sets of $A=[{-n,...,-1,1,...,n}]$. The sub sets doesn't contains: Two positive consecutive numbers. Opposite numbers. Note: $0\notin A$ Build recurrence relation and find initial conditions for $a_n$. How do I approach…
MichaelS
  • 823
3
votes
2 answers

Growth of a sequence satisfying a linear recurrence

A paper I am reading says that a sequence satisfying a linear recurrence grows either polynomially or exponentially. Is this easy to see?
3
votes
3 answers

Recurrence $f(a,b)=f(a,b-1)+2f(a-1,b-1)$

Consider the recurrence relation $$f(a,b)=f(a,b-1)+2f(a-1,b-1)$$ for integers $a,b\geq 2$, where $f(a,b)=1$ if $a=1$ or $b=1$. Is it possible to find a closed form for $f(a,b)$?
JJ Beck
  • 2,696
  • 17
  • 36
3
votes
2 answers

Solve a recurrence relation

The sequence x is defined as follows: $x_{0} = 1, x_{t} =\sqrt{0.2x_{t-1}+0.9x_{t-1}^{2}}$ I want to know what is t when $x_{t} = 2$. I use a spreadsheet to calculate it. When t is 104, $x_{t} = 2$, cor. to 2 d.p. But, is there a more mathematical…
3
votes
1 answer

How did wolfram alpha reduce this second order homogeneous recurrence relation?

I have a recurrence relation as follows: $$ d(n+2) = -(n+2)^2d(n) - (2n+5)d(n+1)$$ Setting n=0 and generating a few coefficients gives $ d(0) = a$ $ d(1) = b $ $ d(2) = - 4a - 5b $ $ d(3) = 28a + 26b $ $ d(4) = - 188a - 154b $ $ d(5) = 1368a + 1044b…
Burnsba
  • 1,015
3
votes
1 answer

Finding recurrence relation that do not contain GOAL

Find a recurrence relation and initial conditions for $c_n$, the number of sequences of length $n$ of upper case letters that do not contain GOAL.
3
votes
3 answers

Recurrence relation question. Homework.

A certain counting sequence $T(n)$ has generating function $$\frac{x}{1-3x}=\sum_{n=0}^{\infty}T(n)x^n.$$ (a) Derive a simple recurrence relation for $T(n)$. (b) Give a simple explicit formula for $T(n)$. I've only studied the fibonacci sequence in…
Ogen
  • 2,255
  • 8
  • 31
  • 44
3
votes
3 answers

Help me to solve this recurrence relation for a closed form: $a_n = 3a_{n-1}+2n+4$ and $a_1 = 4$

I've tried my best to solve this recurrence relation into a closed form formula for generality but I couldn't. So, is there someone to help me to solve this recurrence relation into a closed form solution. Can any one can help me? $a_n =…
Khuram
  • 139
3
votes
1 answer

Where can I find information on "Quadratic Maps"?

According to Wolfram, a quadratic recurrence relation uses a second degree polynomial to express $x_{n+1}$ as a function of $x_n$. A "quadratic map", then, is a recurrence relation: $$x_{n+1} = a (x_n)^2 + b x_n + c$$ Aside from Wolfram's Quadratic…
Matt Groff
  • 6,117
3
votes
2 answers

Solve the following non-homogeneous recurrence relation: $a_{n+2} - 4a_{n+1} + 4a_{n} = 2^n$ for $a_0=1, a_1 = 2$

Find the solution to the following non-homogenous recurrence relation: $a_{n+2} - 4a_{n+1} + 4a_{n} = 2^n$ for $a_0=1, a_1 = 2$. I have found from the characteristic polynomial the general homogenous solution is: $a_{n} = c_{1}2^n + c_{2}n2^n$ where…
yhu
  • 191