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

First Order Linear Difference Equations -- Can't understand how the equation is derived

For the case n > n0 + 1, I can't comprehend how Iterating \begin{equation} y[n] = \lambda y[n-1] \end{equation} yields \begin{equation} y[n] = \left(\lambda\right)^{n-n_0}\frac{b \;}{\lambda} \;\;\; n > n_0. \end{equation} For the entire…
1
vote
2 answers

2nd Order recurrence relation with constant term

Given that $$a_n = 2a_{n-1} - a_{n-2} - 2$$ for $1
Pooty Lim
  • 101
1
vote
0 answers

Minimal recursive formula for a finite sequence over $\{0,1\}$

Given a finite sequence $a_1, \dots , a_n$ over $\{0,1\}$ define a recursive formula of the sequence as a set of initial conditions and general recursion formula, e.g. $a_n = 2a_{n-1} + (1+n)^n \pmod 2$, which is allowed to use the operations…
1
vote
2 answers

Fixed points for $k_{t+1}=\sqrt{k_t}-\frac{k_t}{2}$

For the difference equation $k_{t+1}=\sqrt{k_t}-\frac{k_t}{2}$ one has to find all "fixed points" and determine whether they are locally or globally asymptotically stable. Now I'm not quite sure what "fixed point" means in this context. Is it the…
bonifaz
  • 795
  • 8
  • 19
1
vote
1 answer

How to find the recurrence relationship from an equation?

I have the restriction $8n^2-8n+1 = m^2$ and I want to find the recurrence relationship of all integers n that satisfy this equation. I have figured out a recurrence relationship of $A_n$ = $6A_{n-1}$ - $A_{n-2}$ + 2, but I don't know how to prove…
1
vote
1 answer

Show $T(n)=O(n^2)$ given $T(n) \leq 9T(\frac{n}{3})+n$ using recursion

Given $T(n)$ is non-decreasing and $T(1)=7$, $$T(n) \leq 9T\left(\left\lfloor\frac{n}{3}\right\rfloor\right)+n$$ I am trying to show $$T(n) = O(n^2)$$ First, I used $$T\left(\frac{n}{3}\right) \leq…
1
vote
0 answers

Solving recurrence relations with $a_m$ and $b_m$

Given $a_0=1$, $b_0=1$, and the recurrence relations for $m\geq1$: $$b_m = \frac{1}{m} \sum_{k=1}^m (6k-m) a_k b_{m-k}$$ $$a_{m-1}=-b_m$$ The first few terms of $a_m$ can be calculated using Mathematica (code…
zytsang
  • 1,523
  • 1
  • 15
  • 16
1
vote
0 answers

How to solve this Quadratic recurrence equation?

Suppose $S_n=\sum_{i=1}^{n}\sqrt{a_n}$,and $a_{n+1}+S_n=1+(S_n)^2$,How to solve $a_n$? I know $a_{n+1}$ could be replaced with $(S_{n+1}-S_n)^2$, so that $S_{n+1}^2 -2S_{n+1}S_n+S_n-1=0$ but I still wondering how to solve this equation?
user61028
  • 11
  • 1
1
vote
1 answer

Solving a recurrence relation (homework)

Solve the following recurrence relation: $$l(n+1)=l(n)+π(4+2cn), \quad n=0,1,2,3,\ldots$$
1
vote
0 answers

Help needed defining closed form of recursive formula

The recursive formula is $a_n$ = 1.28($a_{n-1}$ ) - (.28$a_{n-1}$)^2 I would like to transform this into one side of the equation being $a_n$ such that the equation requires no recursion (allowing me to solve for large values of n) $a_0$ = 0.12
1
vote
0 answers

Recurrence relation similar to weighted Pascal's triangle

Consider $\mathbb C \langle x, y \rangle / \langle x y - \lambda y x - \mu \rangle$ for some constants $\lambda, \mu \in \mathbb C$. I am trying to obtain a closed formula for $x^m y^n$, for general $m, n \in \mathbb N$, in terms of monomials of the…
Earthliŋ
  • 2,490
1
vote
1 answer

How to find the particular solution of homogenous recurrence relation with polynomial-exponential term?

Non Homogenous Recurrence Relation: $$a_n=5a_{n-1}-6a_{n-2}+(13+6n)5^{n-2}$$ Most problems I've solved are of the form $a_n+a_{n-1}+a_{n-2}+F(N)$ I have never seen anything of this form its super weird.
user917652
1
vote
1 answer

Evaluate Sum - Recurrence Relation

Simple question really that I should be able to solve. I should probably note that the question is the final part of a series of questions involving the difference operator and in the previous part we are asked to find the sum $\sum\limits_{k=1}^n…
1
vote
1 answer

Solve the Recurrence : $T(n) = 2T(\frac{n}{2}) + n + \log n$

I have tried Akra-Bazzi, which gave me O(n logn), but I am unsure if that can be applied here, or even if it can be applied, if my final answer is correct or not. How can I try solving this?
Alzebrian
  • 61
  • 5
1
vote
2 answers

Recurrence relations: How many numbers between 1 and 10,000,000 don't have the string 12 or 21

so the question is (to be solved with recurrence relations: How many numbers between 1 and 10,000,000 don't have the string 12 or 21? So my solution: $a_n=10a_{n-1}-2a_{n-2}$. The $10a_{n-1}$ represents the number of strings of n length of digits…
ohad
  • 633