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

How to solve $y=\int_{-w/2}^{w/2} \log|x-x'|\frac{d^2y}{dx'^2}$?

I'm now stucking how to solve $$f(x)=\int_{-w/2}^{w/2} \log(|x-x'|)\frac{d^2 f(x')}{dx'^2}$$ ($w$>0) for $f(x)$. I get this self-consistent equation solving Maxwell-equation. From symmetry, $f(x)$ can be devided into 2 region, $$-w/2≦x≦w/2$$ and…
ueir
  • 1,211
  • 5
  • 11
0
votes
1 answer

Why do I get the wrong solution? Difference equation

Can you help me solve this? $a_{n} + 2a_{n-1} + a_{n-2} = 0$ where $a_0 = 0$ and $a_1 = 4$ I tried the following: $$\lambda^{2} + 2\lambda + 1 = 0 \iff (\lambda + 1)^2$$ Double root: $\lambda = -1$ $$a_n = (A + Bn)(-1)^n$$ Inserting initial…
user644361
  • 345
  • 1
  • 8
0
votes
1 answer

Help with difference equations?

I'm reading a book on time series and in the book there is a chapter on difference equations and one part has got the following derivations which is unclear to me: Now suppose that the sequence satisfies $$u_n-\alpha_1u_{n-1}-\alpha_2u_{n-2}=0,…
jjepsuomi
  • 8,619
0
votes
2 answers

Second order difference equation with initial conditions

I have been given this difference equation and asked to solve it: $$y_{n+2} + 2y_{n+1} -3y_{n} = 5 \cdot 2^n + 12$$ where $y_{0} = 7$ and $y_{1} = -9$ I know it sounds weird but we have never actually been taught difference equations. I've looked on…
0
votes
0 answers

If sequences $\{a_k\}$ and $\{b_k\}$ are related by $a_k = \sum_{r=0}^k \binom{k}{r} b_r$, can I compute $b_k$s in $O(1)$ time?

I have two series, say $\{a_k\}$ and $\{b_k\}$ for $k=0, 1, \ldots$. They are related to each other as $$\sum_{r=0}^k \binom{k}{r} b_r = a_k.$$ I want to compute $b_k$'s. Of course, I can do this using the following recurrence relation $$b_k =…
0
votes
1 answer

Solving 2-d recurrence relation with two expressions

I am trying to solve the following recurrence relations: $$c(n_1-N,n_2)=c(n_1,n_2)$$ and $$c(n_1,n_2-N)=c(n_1,n_2)\mathrm{e}^{-\frac{2\pi i Mn_1}{N^2}-\frac{\alpha_xMi}{N}},$$ where $N$ and $M$ are integers and $\alpha_x$ is a constant. Now, from…
0
votes
1 answer

nth term for recurrence equation

I have been able to classify the recurrence relationship implied by a model I am studying with the following equation: $E_{n+1}=Xrf+f(r+1)E_n$ where $E_0 = 0$ and thus $E_1 = Xrf$. I would like to know whether a closed-form solution in $X,r,f$ can…
0
votes
1 answer

Express $a_n$ and $b_n$

Let $$a_{n+1} = \frac{a_n + b_n}2,\quad b_{n+1} = \frac{a_{n+1} + b_n}2.$$ Express $a_n$ and $b_n$ in terms of $a_1$, $b_1$ and $n$
0
votes
1 answer

Linear non-homogeneous recurrence solution?

I have the following equation: $$A_{n}=A_{n-1}+\frac{1}{\sqrt{2n-1}}$$ with the inital conditions $A_1=1$ and $A_2= 1 +\frac{1}{\sqrt{3}}$ Does anyone know how to find the closed form expression?
0
votes
1 answer

Polynomial summation to zero

I have a polynomial $f(n)$ defined by $f(n) = n^2 * (n + 1)$ where $n \in W$ (whole number 0,1,2 ..) I have to somehow manipulate its term to zero i.e. $a * f(n) + b * f(n-1) + c * f(n-3) \cdots + i * f(n-k) = 0$ How to find $a, b, c \cdots i$ in…
0
votes
1 answer

General solution to a recursive rational equation

I have this problem which states that: $$a_n = \frac{a_{n-1}}{4}\left(1-\frac{63}{a_{n-1}^3+7}\right),\text{ and }a_1=c$$ I have tried numerous ways to solve it by hand, as well as Wolfram Mathematica's RSolve function, with no success. The…
zzz
  • 1
0
votes
1 answer

find the recurrence relation of a string

So I got this problem: compute the number of n bit string that do not contain pattern 010 that have no leading 0, one leading zero, two leading zero, and so on. So far, I got the expression: Sn = Sn-1 + Sn-3 + Sn-4...+ S1 However the solution…
0
votes
0 answers

Is it possible for two recursive sequences to have the same characteristic equations

If I have a sequence, $\{t_1, \,t_2, \,t_1+t_2,\, t_1+2t_2,\cdots\}$ I know that the formula for it is: $T_1=t_1, T_2=t_2, T_{n+2}=T_{n+1}+T_n.$ If there are two sequences, $A_n, B_n$ such that $A_1=1, A_2=0, A_{n+1}+A_n =A_{n+2}, B_1=0, B_2=1,…
user130306
  • 1,890
0
votes
1 answer

Is this recurrence relation correct?

from here Consider the sequence $5, 0, -8, -17, -25, -30, \dots$ given by the recursion shown. $$a_0 = 5 \\ a_n = a_{n - 1} + n^2 - 6$$ Is this correct? I can calculate $a_1$: $$a_1 = 5 + 1^2 - 6 = 0$$ But i can't calculate $a_2$: $$a_2 = 0 +…
0
votes
3 answers

particular solution of non homogenous difference equation

I have a difference equation and I am struggling to find the particular solution for it. $$ y_n-y_{n-1}=n^2 $$ I have already found the yc and I need to find yp to find out the total solution of this difference equation