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

Solving recurrence relation of form $T(n/2 + c)$

It is obvious that the Master Theorem cannot be applied to the recurrences of the following form: $T(n) = 4T(n/2 + 2) + n$ Since I am only interested in the $\theta$ bound of the recurrence and not the exact solution, what is the best way to…
MintUser
  • 157
7
votes
0 answers

Shortcut to find the expression of $(a_n)$ that satisfies the recurrence relation $a_n=5a_{n-1}-6a_{n-2}+2^n+9n^2+7n$

Find the expression of the sequence $(a_n)$ that satisfies the recurrence relation $$a_n=5a_{n-1}-6a_{n-2}+2^n+9n^2+7n,$$ with the initial condition $a_0=0,\ a_1=4$. My solution: First, find the expression $b_n$ for the corresponding…
R.C
  • 265
  • 2
  • 9
7
votes
4 answers

Finding the general term of two related recurrence relations

I'm trying to find the general term of the recurrence relations $\quad a_{n+1}=a_n+\text hb_n$ $\quad b_{n+1}=b_n-\text ha_n $ $\quad a_0=0, \quad b_0=1$ I tried finding the terms, $a_1, \space a_2, \cdots$ so I can find a formula for the general…
user31280
7
votes
1 answer

Explicit Form for $a_{n+1}=\sqrt{ka_n+l}$?

I found the explicit form for the case $k=1, l=2, a_1=\sqrt{2}$ (because it was on my midterm test...) Here's how: First, let us consider the first few terms to find a pattern.…
7
votes
1 answer

Need refresher on z-transforms and difference equations

I recently tried showing someone else how to solve a difference equation using z-transforms, but it's been a long time and what I was getting didn't look right. I was trying to solve the recurrence we all know and…
Mike
  • 13,318
7
votes
3 answers

Proving a solution to a double recurrence is exhaustive

The equation $$ b^2 = \frac{a(a+1)}{2} + 1 $$ where $a$ and $b$ are integers, has the following smallish-integer solutions: b a 23 -33 11 -16 4 -6 2 -3 1 -1 1 0 2 2 4 5 <--- the…
John Hughes
  • 93,729
6
votes
2 answers

What is the intuitive idea behind looking for a solution of the form an=r^n for a linear homogeneous recurrence relation?

In my textbook, under solving linear homogeneous recurrence relations, it says that the basic approach for solving them is to look for a solution of the form an = rn, which yields the characteristic equation. Then there is a proof that the solution…
6
votes
2 answers

Characteristic equation of a recurrence relation

Yesterday there was a question here based on solving a recurrence relation and then when I tried to google for methods of solving recurrence relations, I found this, which gave different ways of solving simple recurrence relations. My question is…
Bhargav
  • 2,969
6
votes
4 answers

Homework | Find the general solution to the recurrence relation

A question I have been stuck on for quite a while is the following Find the general solution to the recurrence relation $$a_n = ba_{n-1} - b^2a_{n-2}$$ Where $b \gt 0$ is a constant. I don't understand how the general solution can be found with $b$…
6
votes
5 answers

Recurrence of the form $2f(n) = f(n+1)+f(n-1)+3$

Can anyone suggest a shortcut to solving recurrences of the form, for example: $2f(n) = f(n+1)+f(n-1)+3$, with $f(1)=f(-1)=0$ Sure, the homogenous solution can be solved by looking at the characteristic polynomial $r^2-2x+1$, so that in general a…
6
votes
3 answers

Let $x_{n+1} = x_n + 1/(x_1 + x_2 +\ldots + x_n)$ with $x_1 = 1$. Show that $x_n\sim\sqrt{2\log(n)}$.

As the title states we have a sequence defined by $$x_{n+1} = x_n + \dfrac{1}{x_1 + x_2 + \cdots + x_n}$$ with $x_1 = 1$. The first few terms are: $1, 2, \frac{7}{3}, \frac{121}{48} \cdots$ Any ideas would be appreciated.
Brad
  • 5,156
  • 2
  • 19
  • 50
6
votes
3 answers

Please solve this recurrence relation question for $8a_na_{n+1}-16a_{n+1}+2a_n+5=0$

Suppose $a_1=1$ and $$8a_na_{n+1}-16a_{n+1}+2a_n+5=0,\forall n\geq1,$$Please help to sort out the general form of $a_n$. Here are the first a few values of the series. Not sure if they are useful as they seem quite random to…
1111111
  • 83
6
votes
1 answer

Recurrence $a_n = \sum_{k=1}^{n-1}a^2_{k}, a_1=1$

This seems like a really straightforward recurrence. I wrote out the first few terms: $1,1,2,6,42,1806$... It seems to grow faster than $n!$ but slower than $n^n$. Any suggestions about the closed form or the rate of growth are very welcome.
Alex
  • 19,262
6
votes
4 answers

How to solve this recurrence relation?

There's a frog who could climb either 1 stair or 3 stairs in one shot. In how many ways he could reach at 100th stair? I came up with the solution $g(n) = g(n-3) + g(n-1)$, where $g(0)=g(1)=g(2)=1$ and $g(3)=2$. But to solve $g(100)$ is quite…
6
votes
1 answer

Solve the recurrence relation $a_{n+1}=\frac{2a_n^2}{1-2a_n^2}$

How do we solve the recurrence relation $a_{n+1}=\frac{2a_n^2}{1-2a_n^2}$? I found this problem on page 56 of Carl M. Bender and Steven A. Orszag's book Advanced Mathematical Methods for Scientists and Engineers, in the section that deals with…
Joseph
  • 560
1 2
3
96 97